/* Les Chamades — the journal's print look carried to the web.
   Layout: one column at the journal's measure; double ink rule under the masthead,
   grey small-caps heads with a hairline above, as on the printed page. */
:root {
  --paper: #f8f5ee;
  --ink: #1a1a1a;
  --mute: #555555;
  --rule: #8a8a8a;
  --hair: #cfc9bc;
  --todo: #9a3b12;
  --serif: "EB Garamond", Garamond, "Garamond Premier Pro", "Times New Roman", serif;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16140f; --ink: #ece6d8; --mute: #a9a191; --rule: #7a7366; --hair: #3a362e; --todo: #e39a6f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16140f; --ink: #ece6d8; --mute: #a9a191; --rule: #7a7366; --hair: #3a362e; --todo: #e39a6f;
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  font-variant-numeric: oldstyle-nums proportional-nums;
}
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding-block: 2.25rem 3rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Masthead */
.mast { text-align: center; }
.mast .rule { border: 0; border-top: 1.5px solid var(--ink); margin: 0; }
.mast h1, .mast .title {
  font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 3.7rem); line-height: 1;
  margin: 1.4rem 0 0.55rem; letter-spacing: -0.005em;
}
.mast .title a { text-decoration: none; }
.mast .strap { font-style: italic; font-size: 0.86rem; color: var(--ink); margin: 0 0 0.75rem; }
.nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.35rem 1.4rem;
  margin: 0.9rem 0 0; font-size: 0.82rem;
  font-variant-caps: all-small-caps; letter-spacing: 0.09em; color: var(--mute);
}
.nav a { text-decoration: none; color: var(--mute); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover { color: var(--ink); }

/* Section heads: grey small caps with a hairline above */
.head {
  font-weight: 400; font-size: 0.95rem; color: var(--mute);
  font-variant-caps: all-small-caps; letter-spacing: 0.11em;
  border-top: 0.6px solid var(--rule); padding-top: 0.5rem; margin: 2.2rem 0 0.4rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.head .count { font-variant-numeric: lining-nums tabular-nums; }

.stand { font-style: italic; font-size: 1.28rem; line-height: 1.42; margin: 1.6rem 0 0; text-wrap: pretty; }
p { margin: 0 0 0.8rem; text-wrap: pretty; }
.meta { color: var(--mute); font-size: 0.92rem; }

/* Placeholders still to be filled before launch */
.todo {
  color: var(--todo); border-bottom: 1px dashed var(--todo);
  font-style: normal; white-space: normal;
}

/* Colophon */
.foot {
  margin-top: 3rem; border-top: 0.6px solid var(--rule); padding-top: 0.8rem;
  text-align: center; font-style: italic; font-size: 0.86rem; color: var(--mute);
}
.foot p { margin: 0 0 0.35rem; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: text-decoration-thickness 0.15s; }
}
