/* nchanted.eu — shared styles for index.html and contact.html */

:root {
  /* The app's own palette, not an approximation of it.
     --teal is MenuUi/Hud ACCENT, Color(0.15, 0.75, 0.72).
     --mint, --deep and the background come off the logo's water gradient
     (#8fd8d4 → #125a63 → #04202a); --text is the logo white.
     --rope is the app's WARN colour, kept for warnings only. */
  --ink: #052029;
  --ink-2: #0a2c37;
  --surface: #0e3540;
  --line: #14434e;
  --text: #eef6f6;
  --muted: #8fb0b3;
  --teal: #26bfb8;
  --mint: #8fd8d4;
  --deep: #125a63;
  --rope: #f28c40;
  --paper: #e6efec;  /* for the one section that inverts */
  --paper-ink: #052029;
  --measure: 34rem;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, .serif {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: var(--measure); }

/* Nav ------------------------------------------------------------------ */
nav { border-bottom: 1px solid var(--line); background: var(--ink); }
nav .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 18px; }
.brand { font-family: Fraunces, Georgia, serif; font-size: 1.22rem; font-weight: 600; text-decoration: none; }
.brand span { color: var(--teal); }
.nav-links { display: flex; gap: 22px; font-size: 0.92rem; color: var(--muted); }
.nav-links a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--text); border-bottom-color: var(--teal); }
.nav-links a[aria-current] { color: var(--text); border-bottom-color: var(--teal); }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 3px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-solid { background: var(--teal); color: #04202a; }
.btn-solid:hover { background: var(--mint); }
.btn-line { border-color: #2c6a72; color: var(--text); }
.btn-line:hover { border-color: var(--text); }

/* Type ----------------------------------------------------------------- */
p { max-width: var(--measure); }
p + p { margin-top: 1em; }
.lede { font-size: 1.12rem; }
.small { font-size: 0.9rem; color: var(--muted); }

section { padding: 76px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.22rem; margin-bottom: 10px; }

/* Numbered section heads. The figure sits in the left margin on a wide screen
   and above the heading on a narrow one. Ornament that also tells you where
   you are, which an uppercase "WHAT IT IS" label never did. */
.numbered { display: grid; gap: 6px 30px; align-items: baseline; }
@media (min-width: 900px) { .numbered { grid-template-columns: 4.5rem 1fr; } }
.numbered .n {
  font-family: Fraunces, Georgia, serif; font-size: 1.5rem; font-weight: 600;
  color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1;
}
.numbered .n::after { content: ""; display: block; width: 2.4rem; height: 1px; background: var(--line); margin-top: 12px; }
@media (max-width: 899px) { .numbered .n::after { display: none; } }

/* Break the page out of its column, edge to edge. */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* One section inverts, so the eye has somewhere to land. */
.invert { background: var(--paper); color: var(--paper-ink); border-top: none; }
.invert p, .invert li, .invert dd { color: #3f5a5c; }
.invert b, .invert strong { color: var(--paper-ink); }
.invert a { color: #0e6a68; }
.invert .numbered .n::after { background: rgba(22,28,31,0.18); }
.invert ul.plain li::before { background: #0e6a68; }

ul.plain { list-style: none; max-width: var(--measure); }
ul.plain li { position: relative; padding-left: 20px; margin: 7px 0; color: var(--muted); }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 1px; background: var(--teal); }

figure { margin: 0; }
figure img { border: 1px solid var(--line); }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 9px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer a { color: var(--muted); }
