/* mankial.com
   Layout: an offset editorial grid. Section titles sit in a narrow left column,
   content in a wider right column, everything left-aligned. One full-width deep
   green band opens the home page and carries the only large type on the site.
   The circular company seal is the single bold element; all else stays quiet. */

:root {
  --linen: #ECEDE6;        /* page ground, pale grey-green */
  --ink: #15302A;          /* deep bottle green, hero band and dark ground */
  --moss: #2F6B55;         /* links, interactive */
  --brass: #A47A1E;        /* focus rings and the seal, used sparingly */
  --text: #1D221F;
  --muted: #5C665F;
  --rule: #C7CCC1;
  --on-ink: #E9ECE3;       /* type on the green band */
  --on-ink-muted: #B9C4BB;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --measure: 62ch;
  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --linen: #10211D; --ink: #0A1512; --moss: #8CC2A5; --brass: #D1A64A;
    --text: #E4E7DF; --muted: #9AA59D; --rule: #2B3B35;
    --on-ink: #E9ECE3; --on-ink-muted: #AAB7AE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --linen: #10211D; --ink: #0A1512; --moss: #8CC2A5; --brass: #D1A64A;
  --text: #E4E7DF; --muted: #9AA59D; --rule: #2B3B35;
  --on-ink: #E9ECE3; --on-ink-muted: #AAB7AE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
}
img, svg { max-width: 100%; }
a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 600; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Header ------------------------------------------------------------- */
.top { border-bottom: 1px solid var(--rule); }
.top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; }
.brand .seal { width: 2.6rem; height: 2.6rem; flex: none; }
.wordmark { font-family: var(--display); font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--text); }

/* Seal --------------------------------------------------------------- */
.seal { display: block; color: currentColor; }
.seal-m { font-family: var(--display); font-style: italic; font-size: 118px; font-weight: 400; fill: currentColor; font-variation-settings: "opsz" 72; }

/* Hero --------------------------------------------------------------- */
.hero { background: var(--ink); color: var(--on-ink); }
.hero-inner {
  display: grid; gap: 1.75rem;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero-text { display: grid; gap: 1.75rem; min-width: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 15ch;
  font-variation-settings: "opsz" 72;
}
.hero .lede { color: var(--on-ink); max-width: var(--measure); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.hero-links { display: flex; gap: 2rem; flex-wrap: wrap; font-family: var(--display); font-size: 1.25rem; }
.hero-links a { color: var(--on-ink); text-decoration-color: var(--on-ink-muted); }
.hero-links a:hover { text-decoration-color: var(--on-ink); }

/* Sections ----------------------------------------------------------- */
.band { border-bottom: 1px solid var(--rule); }
.band:last-of-type { border-bottom: 0; }
.split {
  display: grid; gap: 1.25rem 3rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 48rem) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
}
.split > h1, .split > h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.split > h2 { color: var(--text); }
.page-head .split { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; }
.lede { max-width: var(--measure); font-size: 1.15rem; line-height: 1.55; color: var(--text); }
.prose { max-width: var(--measure); display: grid; gap: 1rem; min-width: 0; }
.aside { margin-top: 1.5rem; font-size: 0.95rem; }

/* Entries (definition lists with rules) ------------------------------- */
.entries { margin: 0; display: grid; min-width: 0; }
.entries > div { padding-block: 1.25rem; border-top: 1px solid var(--rule); display: grid; gap: 0.35rem; }
.entries > div:first-child { border-top: 0; padding-top: 0; }
.entries dt { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.entries dd { margin: 0; color: var(--muted); max-width: var(--measure); }

/* Facts (the registration card) --------------------------------------- */
.facts { margin: 0; display: grid; min-width: 0; }
.facts > div {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.25rem 1.5rem;
  padding-block: 0.7rem; border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts > div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* Steps (a real sequence) -------------------------------------------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; min-width: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--rule); max-width: var(--measure); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--muted); }

/* Contact -------------------------------------------------------------- */
.email a { font-family: var(--display); font-size: 1.5rem; word-break: break-word; }
.email.big { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.email.big a { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
.copy-btn {
  font: inherit; font-size: 0.9rem; color: var(--text); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer;
}
.copy-btn:hover { border-color: var(--text); }
.contact-strip .email a { color: var(--text); }

/* Footer --------------------------------------------------------------- */
.foot { background: var(--ink); color: var(--on-ink-muted); }
.foot-inner { display: grid; gap: 1.25rem; padding-block: 2.5rem 2rem; font-size: 0.9rem; }
.foot-mark { width: 3.25rem; color: var(--on-ink); margin-bottom: 0.5rem; }
.foot a { color: var(--on-ink); text-decoration-color: var(--on-ink-muted); }
.legal { max-width: var(--measure); }
.foot-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.copy { margin: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
