/* Palette sampled from the app icon: vermilion #EB3D24, mustard #F8AE35,
   navy #092E41. Uncoated cream paper for reading. No external loads. */

:root {
  --vermilion: #EB3D24;
  --mustard: #F8AE35;
  --navy: #092E41;
  --paper: #F5EFE1;
  --ink: #26211A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

header {
  background: var(--vermilion);
  padding: 2.6rem 1.5rem 2.2rem;
  text-align: center;
}

.hexagram {
  width: 84px;
  margin: 0 auto 1.4rem;
}

.hexagram .line {
  height: 9px;
  background: var(--mustard);
  margin-bottom: 7px;
}

.hexagram .line:last-child { margin-bottom: 0; }

.hexagram .line.broken {
  background: none;
  display: flex;
  justify-content: space-between;
}

.hexagram .line.broken span {
  width: 42%;
  background: var(--mustard);
}

header h1 {
  color: var(--paper);
  font-weight: normal;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

header .label {
  color: var(--mustard);
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 3.4rem;
}

main h2 {
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 2.4rem 0 0.8rem;
}

main h2:first-child { margin-top: 0; }

main p { margin-bottom: 1rem; }

main a { color: var(--vermilion); }

footer {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  padding: 1.6rem 1.5rem;
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer a { color: var(--mustard); text-decoration: none; }
