/* Newsreader (Production Type, SIL Open Font License), variable weight, subset to French characters, self-hosted */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-fr-v1.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Field-journal design after the Oura analysis (DESIGN.md): warm paper canvas, light serif headlines, earth tones as data. */
:root {
  --canvas: #f7f1e8; --surface: #ffffff; --hairline: #e1dcd3; --ink: #1c1b1a; --stone: #4a4741; --ash: #6f6c68; --mute: #a8a5a0;
  --action: #224228; --action-2: #2f5a37; --ink-band: #19191c;
  --racine: #6b443d; --racine-bg: #e8d7c1; --racine-ink: #4a2c26;
  --feuille: #5c6f5d; --feuille-bg: #d9dfc6; --feuille-ink: #2f4030;
  --fleur: #7d6a92; --fleur-bg: #e4dcec; --fleur-ink: #4e3f60;
  --fruit: #af751b; --fruit-bg: #efdcae; --fruit-ink: #5c410a;
  --alert: #b5482f; --alert-bg: #f6e4dc; --moon-lit: #efe3c6; --moon-dark: #4a4741;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-card: 24px; --r-sm: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.6 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--stone); text-decoration-color: rgba(74,71,65,.4); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); margin: 22px 0 14px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); margin: 52px 0 12px; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 400; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 2.4vw, 1.42rem); line-height: 1.45; color: var(--stone); max-width: 52em; }
small, .muted, .meta { color: var(--ash); }
.meta { font-size: .84rem; margin-top: 10px; }

/* header: cream, always visible (house rule) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,241,232,.96); backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--hairline); }
.hd-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.28rem; font-weight: 400; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--stone); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: .9rem; border: 1px solid transparent; }
.nav a:hover { border-color: var(--hairline); color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--stone); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: transparent; color: var(--stone); border: 1px solid var(--stone); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--canvas); flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--hairline); box-shadow: 0 10px 20px rgba(28,27,26,.06); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .logo { font-size: 1.12rem; }
}
.crumbs ol { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ash); }
.crumbs a { color: var(--ash); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mute); }

/* eyebrow labels */
.today-box .k, .advice .k, thead th, .cal-hd span, .hair-ctl label, .pa .rule .months { font-family: var(--sans); }
.today-box .k, .advice .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ash); margin: 0 0 6px; }

/* widgets */
.w { margin: 22px 0 30px; }
.today { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px; }
.today-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.today-date { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; margin: 0; }
.today-sub { margin: 4px 0 0; color: var(--ash); }
.today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .today { padding: 18px 16px; } .today-grid { grid-template-columns: 1fr; } }
.today-box { border-radius: 18px; padding: 16px 18px; background: var(--canvas); }
.today-box .v { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 0; }
.today-box .s { font-size: .9rem; margin: 6px 0 0; color: var(--stone); }
.today-box.t-racine { background: var(--racine-bg); } .today-box.t-racine .v { color: var(--racine-ink); }
.today-box.t-feuille { background: var(--feuille-bg); } .today-box.t-feuille .v { color: var(--feuille-ink); }
.today-box.t-fleur { background: var(--fleur-bg); } .today-box.t-fleur .v { color: var(--fleur-ink); }
.today-box.t-fruit { background: var(--fruit-bg); } .today-box.t-fruit .v { color: var(--fruit-ink); }
.alert { background: var(--alert-bg); border-radius: 16px; padding: 12px 16px; margin: 14px 0 0; color: #5a2416; }
.alert strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.advice { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); } .advice ul { padding-left: 20px; margin: 4px 0 0; }
.note-small { font-size: .86rem; color: var(--ash); margin: 10px 0 0; }
.moon-lit { fill: var(--moon-lit); } .moon-dark { fill: var(--moon-dark); }
.moon { vertical-align: middle; flex: none; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.chip.t-racine { background: var(--racine-bg); color: var(--racine-ink); } .chip.t-feuille { background: var(--feuille-bg); color: var(--feuille-ink); }
.chip.t-fleur { background: var(--fleur-bg); color: var(--fleur-ink); } .chip.t-fruit { background: var(--fruit-bg); color: var(--fruit-ink); }
.tr { font-weight: 700; } .tr-up { color: var(--feuille-ink); } .tr-down { color: var(--racine); }
.av { font-style: normal; color: var(--alert); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
@media (max-width: 780px) { .week { grid-template-columns: repeat(7, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; } .wd { scroll-snap-align: start; } }
.wd { border-radius: 18px; padding: 12px 8px 10px; text-align: center; font-size: .84rem; background: var(--surface); border: 1px solid var(--hairline); }
.wd.t-racine { background: var(--racine-bg); border-color: transparent; } .wd.t-feuille { background: var(--feuille-bg); border-color: transparent; }
.wd.t-fleur { background: var(--fleur-bg); border-color: transparent; } .wd.t-fruit { background: var(--fruit-bg); border-color: transparent; }
.wd p { margin: 3px 0; } .wd-d { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; } .wd-av { color: var(--alert); font-weight: 600; }

.month { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-nav .month-title { margin: 0; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 300; }
.month-nav button { font: inherit; font-size: 1.3rem; line-height: 1; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--stone); background: transparent; cursor: pointer; color: var(--stone); }
.month-nav button:hover { background: var(--action); border-color: var(--action); color: #fff; }
.cal { display: grid; gap: 5px; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-hd span { text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ash); padding: 4px 0; }
.cd { position: relative; min-height: 70px; border-radius: 14px; padding: 6px 7px 14px; font-size: .8rem; background: var(--canvas); display: flex; flex-wrap: wrap; gap: 2px; align-items: flex-start; align-content: flex-start; }
.cd b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1; margin-right: auto; }
.cd.t-racine { background: var(--racine-bg); } .cd.t-feuille { background: var(--feuille-bg); } .cd.t-fleur { background: var(--fleur-bg); } .cd.t-fruit { background: var(--fruit-bg); }
.cd-empty { background: transparent; }
.cd-av { box-shadow: inset 0 0 0 2px rgba(181,72,47,.6); }
.bars { position: absolute; left: 7px; right: 7px; bottom: 6px; height: 4px; display: flex; border-radius: 3px; overflow: hidden; gap: 1px; }
.bar.t-racine { background: var(--racine); } .bar.t-feuille { background: var(--feuille); } .bar.t-fleur { background: var(--fleur); } .bar.t-fruit { background: var(--fruit); }
@media (max-width: 520px) { .month { padding: 12px 10px; } .cd { min-height: 56px; padding: 4px 4px 11px; font-size: .7rem; border-radius: 10px; } .cd b { font-size: .95rem; } .cd .moon { width: 11px; height: 11px; } .cal, .cal-row { gap: 3px; } }

.tbl-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ash); position: sticky; top: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
tr.row-av td, tr.row-av th { background: #fbf1ec; }
table.days td:nth-child(2) { min-width: 220px; }

.year { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ym { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 14px; }
.ym .ym-t { margin: 0 0 10px; font-size: 1.2rem; font-weight: 300; }
.ym .ym-t a { text-decoration: none; color: var(--ink); } .ym .ym-t a:hover { text-decoration: underline; }
.ym-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ym-grid i { font-style: normal; font-size: .72rem; text-align: center; border-radius: 6px; padding: 4px 0; color: var(--stone); }
.ym-grid i.t-racine { background: var(--racine-bg); } .ym-grid i.t-feuille { background: var(--feuille-bg); } .ym-grid i.t-fleur { background: var(--fleur-bg); } .ym-grid i.t-fruit { background: var(--fruit-bg); }
.ym-grid i.av { box-shadow: inset 0 0 0 1.5px rgba(181,72,47,.65); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--stone); }
.lg { white-space: nowrap; border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 10px; background: var(--surface); }

.plant .pa { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 18px 20px; margin-bottom: 14px; }
.plant .pa .pa-t { margin: 0 0 8px; font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 400; }
.rule { font-size: .9rem; } .months { color: var(--ash); }
.wins { padding-left: 20px; margin: 8px 0 0; }
.hair-ctl { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.hair-ctl label { display: flex; flex-direction: column; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ash); gap: 6px; }
select { font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; padding: 9px 38px 9px 16px; border-radius: 999px; border: 1px solid var(--stone); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a4741' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); min-height: 44px; -webkit-appearance: none; appearance: none; max-width: 100%; }
.hv-good td:nth-child(2) { color: var(--feuille-ink); font-weight: 700; } .hv-bad td:nth-child(2) { color: var(--alert); font-weight: 700; } .hv-no td:nth-child(2) { color: var(--ash); }
.goal-note { font-size: .92rem; color: var(--stone); }
.btn { display: inline-block; background: var(--action); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; margin: 4px 8px 4px 0; }
.btn:hover { background: var(--action-2); color: #fff; }

aside.note { background: transparent; border: 1px solid var(--hairline); border-radius: 18px; padding: 14px 18px; margin: 26px 0; font-size: .94rem; color: var(--stone); }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--stone); }
.related ul { columns: 2; padding-left: 18px; } @media (max-width: 600px) { .related ul { columns: 1; } }
.site-footer { margin-top: 64px; background: var(--ink-band); padding: 34px 0; font-size: .9rem; color: #d8d4cd; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: #fff; }
img { max-width: 100%; height: auto; }

@media print {
  .site-header, .site-footer, .menu-btn, .month-nav button, .skip, .related, .faq { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .cd, .ym-grid i, .chip, .today-box, .wd { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 16px 18px; box-shadow: 0 12px 32px rgba(28,27,26,.14); font-size: .92rem; }
.consent p { margin: 0 0 12px; } .consent-btns { display: flex; gap: 8px; justify-content: flex-end; }
.btn-ghost { background: transparent; color: var(--stone); border: 1px solid var(--stone); } .btn-ghost:hover { background: var(--canvas); color: var(--ink); }
@media print { .consent { display: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hair td:last-child { text-align: center; }
.hair th, .hair td { padding: 10px 9px; } @media (max-width: 420px) { .hair thead th { letter-spacing: .04em; font-size: .64rem; } }
.tz { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: #d8d4cd; }
.site-footer select { background-color: #2a2a2e; color: #fff; border-color: #6d6a64; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E"); min-height: 40px; font-size: .9rem; }
.ics { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 6px 0 0; font-size: .9rem; }
.ics .btn { margin: 0; }
button.btn { font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent; }
button.btn-ghost { border-color: var(--stone); }
.pick { border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface); padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; margin: 0 0 12px; }
.pick legend { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ash); padding: 0 6px; }
.pick label { display: flex; gap: 8px; align-items: center; min-height: 36px; cursor: pointer; }
.pick input { width: 18px; height: 18px; flex: none; accent-color: var(--action); }
.garden { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.garden li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 10px 14px; }
.garden .when { color: var(--stone); font-size: .9rem; }
.pg-h { margin-top: 24px; }
.rs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--stone); margin: 14px 0 0; }
.byline { font-size: .86rem; color: var(--ash); margin: -4px 0 18px; } .byline a { color: var(--ash); } .stamp { font-size: .8rem; color: #a8a5a0; }
.answer { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--ink); margin: 0 0 16px; }
.today .answer { padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.adv b { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ash); font-weight: 700; }
.print-line { margin: 12px 0 0; text-align: right; }
@media print { body.print-one main > *:not(.print-target):not(h1) { display: none !important; } body.print-one .print-target { margin: 0; } .print-line { display: none; } }
.journal { margin-top: 36px; } .journal h2 { margin-top: 0; }
.jr-l { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ash); }
.jr-l textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); border: 1px solid var(--stone); border-radius: 16px; padding: 10px 14px; background: var(--surface); }
.jr-del { font: inherit; font-size: .8rem; background: none; border: 0; color: var(--alert); cursor: pointer; text-decoration: underline; padding: 4px; }
body.embed { padding: 10px; background: var(--canvas); } body.embed .today { padding: 16px; } .embed-by { font-size: .8rem; text-align: center; margin: 8px 0 0; color: var(--ash); }
.code { background: var(--ink-band); color: #efe3c6; border-radius: 16px; padding: 14px 16px; overflow-x: auto; font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
