/* Dan Muresan. shell v1 — built on the design system board (review/site-design.html), tokens from
   TEXT-DESIGN.md §7. One token layer at the top; every size, colour and measure below references it,
   so a change to the scale is one line and page rules never carry their own numbers.
   Editorial, no dependencies, no external fonts. */
:root{
  /* colour: five neutrals, one accent, one rule. no gradients, no tints beyond the hover wash */
  --ink:#15171b;      /* 17.2:1 on paper */
  --second:#3a3d42;   /* 10.5:1 */
  --muted:#6b6a66;    /* 5.2:1  */
  --accent:#7a3b2e;   /* 8.1:1  */
  --paper:#fbfaf7;
  --card:#ffffff;
  --rule:#e2ded6;
  --note:#f4f1ea;
  /* the one colour outside the neutral system: the thanks-page form's sent state (25.11.2026).
     7.1:1 on --paper, 5.6:1 on its own wash. Used nowhere else, so a green block on this site
     always means "the brief is sent" and never decoration. */
  --ok:#256046;
  --ok-wash:#edf2ee;
  /* the page is a panel on a tinted surround (shell v2, 23.11.2026, Dan's call after seeing the
     live site: "white page panel on a tinted surround, so the column has a visible edge"). --canvas
     is paper darkened far enough to read as a different surface; --edge is the hairline that bounds
     the panel, deliberately darker than --rule so the edge is visible without becoming a frame.
     --panel is 68rem: 46rem of column plus 176 px of air each side, which is what the design
     board's own mock shows. Below 68rem the panel fills the window and both borders drop away. */
  --canvas:#efece4;
  --edge:#d0c9bc;
  --panel:68rem;
  /* type: five sizes plus label and small, fluid so one scale serves 390→1920 without breakpoints */
  --t-h1:clamp(2rem,1.4rem + 2.4vw,2.75rem);      /* 32 → 44 px, line-height 1.15 */
  --t-h2:clamp(1.5rem,1.3rem + .8vw,1.75rem);     /* 24 → 28 px, 1.3 */
  --t-lede:clamp(1.25rem,1.14rem + .45vw,1.36rem);/* 20 → 21.76 px, 1.5 */
  --t-body:clamp(1.125rem,1.05rem + .35vw,1.25rem);/* 18 → 20 px, 1.6 */
  --t-h3:1.063rem;    /* 17 px sans */
  --t-small:.875rem;  /* 14 px sans */
  --t-label:.781rem;  /* 12.5 px caps, .08em */
  /* measure: declared in ch so a font fallback cannot reflow the page. NOT applied to .wrap — the
     board's own render sets the prose at the 46rem column's inner width (≈688 px), and 53ch at 20 px
     measures ≈530 px. Set on a .prose wrapper only when Dan calls which of the two governs. */
  --measure:53ch;
  --serif:Charter,"Bitstream Charter","Sitka Text",Cambria,Georgia,serif;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--canvas)}
body{
  margin:0 auto; max-width:var(--panel); min-height:100vh;
  background:var(--paper); color:var(--ink);
  font:400 var(--t-body)/1.6 var(--serif);
  /* the footer's own bottom margin collapses out through the body (no bottom border or padding),
     so paper under the footer text is set here instead. 24.11.2026: first set to 4rem, Dan said the
     gap read as too big, so 2rem — 44 px of paper under the line including the <p>'s own margin. */
  padding-bottom:2rem;
  border-left:1px solid var(--edge); border-right:1px solid var(--edge);
  box-shadow:0 1px 2px rgba(21,23,27,.05);
}
/* one column for everything: nav, prose, forms, footer */
.wrap{max-width:46rem;margin:0 auto;padding:0 1.5rem}
a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--accent)}
a:hover{background:rgba(122,59,46,.07)}

nav{border-bottom:1px solid var(--rule);background:var(--paper);position:sticky;top:0;z-index:5}
nav .wrap{display:flex;gap:1.3rem;align-items:baseline;padding:.95rem 1.5rem;flex-wrap:wrap}
nav .brand{font:600 .82rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;
  border:0;margin-right:auto;color:var(--ink)}
nav a:not(.brand){font:400 .8rem/1 var(--sans);letter-spacing:.06em;border:0;color:var(--muted)}
nav a[aria-current]{color:var(--ink);border-bottom:1px solid var(--ink)}

/* hero: the 2px ink rule under it is the page's heavy line; everything below is hairline */
header.hero{padding:clamp(2.6rem,5vw,4.2rem) 0 2.2rem;border-bottom:2px solid var(--ink)}
.kicker{display:block;font:500 var(--t-label)/1.4 var(--sans);
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin:0 0 1.1rem}
h1{font-size:var(--t-h1);line-height:1.15;letter-spacing:-.015em;margin:0 0 1rem;font-weight:600}
h2{font-size:var(--t-h2);line-height:1.3;margin:3rem 0 .7rem;font-weight:600}
h3{font:600 var(--t-h3)/1.4 var(--sans);margin:1.8rem 0 .4rem}
p{margin:0 0 .85em}
/* a paragraph straight under the hero's 2px rule. The rule has 2.2rem of air above it, and p
   carries no top margin, so the first line was left 8px off the line while the headline sat 62px
   above it (measured 24.11.2026, Dan's catch). 1.4rem puts 30px of paper under the rule: clearly
   more than a paragraph gap, still less than an h2's 48, so the text does not compete with a
   heading. Only About and Notes hit this case; the other pages open on an h2 or a section. */
.hero + p{margin-top:1.4rem}
.lede{font-size:var(--t-lede);line-height:1.5;color:var(--second);margin:0 0 1.6rem}
.muted{color:var(--muted)}
small{font-size:var(--t-small)}

/* proof rows — a ledger with the label in the margin */
.proofs{margin:2rem 0 0}
.proof{display:grid;grid-template-columns:8.5rem 1fr;gap:1.4rem;padding:1.4rem 0;
  border-top:1px solid var(--rule)}
/* No border-bottom on :last-child; the .cta's own top rule closes the ledger. Both rules
   fired at the same boundary and drew an empty 51px band boxed by two identical hairlines. */
/* Same fault at the top: the hero's 2px ink rule and the first row's hairline sit 30px apart
   and box an empty band (24.11.2026, Dan caught it above "Work"). The heavy rule is the hero's
   terminator, so the ledger opens without a second one. */
.proof:first-child{border-top:0}
.proof .tag{font:500 var(--t-label)/1.5 var(--sans);
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent);padding-top:.3rem}
.proof p{margin:0;color:var(--second)}

.cta{margin:2.4rem 0 0;padding-top:1.8rem;border-top:1px solid var(--rule)}

/* The book lives inside the capture block, not as a section of its own: intro, promise, field. */
/* The capture block is a letter panel: a card with one hairline, not a rule-striped section. */
form.capture{margin:3rem 0 0;padding:1.8rem 1.6rem 1.5rem;border:1px solid var(--rule);background:var(--card)}
form.capture .kicker{margin-bottom:.8rem}
.bookintro{margin:0 0 1rem;color:var(--second)}
.actions{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;margin:1.2rem 0 .4rem}
.btn{display:inline-block;padding:.8rem 1.3rem;border:1px solid var(--ink);border-radius:2px;
  font:500 .88rem/1 var(--sans);letter-spacing:.02em;background:transparent;color:var(--ink)}
.btn.solid{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.btn.solid:hover{background:#000;color:#fff}
/* .btn.quiet is kept but unused since 19.11.2026: the About page's address is a sentence
   (.contact-note), not a second button competing with the booking CTA. */
.btn.quiet{border-color:var(--rule);color:var(--ink)}
.btn.quiet:hover{border-color:var(--ink)}
/* The contact sentence under the About CTA: prose size, muted, no box. */
.contact-note{color:var(--second);margin:.1rem 0 0;max-width:34rem}
/* A button with nowhere to go must not look clickable: the session CTA renders disabled
   until BOOKING_URL is set (see BOOKING.md). */
.btn:disabled,.btn[aria-disabled="true"]{opacity:.4;cursor:not-allowed;background:none;color:var(--ink)}
.btn:disabled:hover,.btn[aria-disabled="true"]:hover{background:none;color:var(--ink)}
.price{font:400 var(--t-small)/1.6 var(--sans);color:var(--muted)}

/* The promise, in prose. it used to be the <label>, set in uppercase micro-caps. */
form.capture .promise{margin:0 0 1.1rem;color:var(--second)}
/* The status slot under the button: it holds the promise's closing line and is where the script writes
   "Sending…" or the failure notice. With no resting line (19.11.2026) it must not reserve a blank one. */
form.capture .form-msg:empty{display:none}
form.capture label{display:block;font:500 var(--t-label)/1.5 var(--sans);
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:.6rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* The capture form's field, privacy line and button (Infomaniak's double opt-in form, our skin, 26.11.2026).
   Stacked rather than the old field-plus-button row: the privacy line has to be read before the click, not
   beside it, and the captcha needs its own space under the field. */
form.capture .inf-input input[type=email]{width:100%;box-sizing:border-box;padding:.8rem .9rem;
  border:1px solid var(--rule);background:var(--paper);color:var(--ink);
  font:400 1rem/1 var(--sans);border-radius:2px}
form.capture .inf-input input[type=email]:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
form.capture .inf-rgpd{margin:.75rem 0 1.2rem;font:400 var(--t-small)/1.55 var(--sans);color:var(--muted)}
form.capture .inf-submit input{appearance:none;-webkit-appearance:none;cursor:pointer}
/* Their script marks the submit disabled while a request is open, so a double click cannot post twice. */
form.capture .inf-submit input.disabled{opacity:.4;cursor:not-allowed}
form.capture .inf-input.inf-error input[type=email]{border-color:var(--accent)}
form.capture .inf-message{display:block;margin:.45rem 0 0;font:400 var(--t-small)/1.4 var(--sans);color:var(--accent)}
/* Their proof-of-work captcha sits between the privacy line and the button. It stays in the flow so it can
   never overlap the button; `floating` renders a fixed badge, which is why this rule pins it down. */
form.capture altcha-widget{display:block;margin:0 0 .9rem}
/* The sentence that stands in for the form when scripts are off (base has no JS state): prose size,
   second colour, and it carries the only path left. */
form.capture .ns-note{margin:.9rem 0 0;color:var(--second)}
/* The confirmation shown in place of the field, and the card stepping aside behind it. Their script reveals
   `.inf-success` and hides `.inf-content`; without the second rule the promise above would still be selling a
   list the reader has just joined. app.js marks the form `.sent` when that box appears.
   Green here since 26.11.2026 (Dan: "can we make a bit green the success message in the form when we say check
   your inbox"). That reverses the earlier note that green meant only the brief: green on the site now means the
   same thing in both places, a thing of the reader's has been handed over and there is nothing left for them to
   do. The treatment is the brief's, token for token: bar, wash, border-drawn tick, and text one step under
   body size (--t-h3 since 26.11.2026, Dan: "make it smaller, no need to be so big"). */
form.capture .inf-success{
  margin:1.2rem 0 .2rem;padding:1rem 1.1rem 1.05rem 3rem;position:relative;
  border-left:3px solid var(--ok);background:var(--ok-wash);border-radius:0 2px 2px 0}
form.capture .inf-success::before{
  content:"";position:absolute;left:1.05rem;top:1.35rem;width:.62rem;height:.35rem;
  border-left:2px solid var(--ok);border-bottom:2px solid var(--ok);transform:rotate(-45deg)}
form.capture .inf-success p{margin:0;color:var(--ink);font:400 var(--t-h3)/1.55 var(--sans)}
form.capture.sent .kicker,
form.capture.sent .bookintro,
form.capture.sent .promise{display:none}
/* Once sent the green panel is the card: the form's own frame and padding step aside, so the bar sits on the
   card's edge instead of inside another box, and there is no hollow shell around the one thing left to read. */
form.capture.sent{padding:0;border:0;background:none}
form.capture.sent .inf-success{margin:0;padding:1.1rem 1.2rem 1.15rem 3.1rem}
button{font:inherit;cursor:pointer}

/* Thanks-page brief form: one column, labels above, nothing clever.
   No border-top since 25.11.2026: the hero above already closes with its own 2 px ink rule, and the
   form's hairline 28 px below it read as two lines of different weights on one page. */
form.brief{margin:1.8rem 0 2.2rem;padding:1.4rem 0 0}
form.brief .field{margin:0 0 1.1rem}
form.brief label{display:block;font:500 var(--t-label)/1.5 var(--sans);
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:.35rem}
form.brief input[type=text]:not(.sr-only),form.brief input[type=email]:not(.sr-only),form.brief textarea{
  width:100%;padding:.7rem .8rem;border:1px solid var(--rule);background:var(--card);border-radius:2px;
  font:400 1rem/1.45 var(--sans)}
form.brief textarea{resize:vertical}
form.brief input:focus,form.brief textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
form.brief .hint{margin:.4rem 0 0;font-size:var(--t-small);line-height:1.5;color:var(--muted)}
form.brief :disabled{opacity:.55}

/* Sent state (25.11.2026, Dan: "make the five line confirmation more visible… and hide the five
   line fields once form is submitted"). The form is spent once the brief is delivered, so the
   fields and the button leave and the confirmation takes their place: a green bar, its own wash,
   and body-size text instead of the 14 px muted note a status line defaults to. The check is a
   border-drawn tick, not a glyph, so nothing in the stylesheet is copy. */
form.brief.done .field,form.brief.done .actions{display:none}
form.brief.done{margin-bottom:1.6rem}
form.brief .form-msg.ok{
  margin:1.4rem 0 .2rem;padding:1rem 1.1rem 1.05rem 3rem;position:relative;
  border-left:3px solid var(--ok);background:var(--ok-wash);color:var(--ink);
  font:500 var(--t-body)/1.5 var(--sans);border-radius:0 2px 2px 0}
form.brief .form-msg.ok::before{
  content:"";position:absolute;left:1.05rem;top:1.35rem;width:.62rem;height:.35rem;
  border-left:2px solid var(--ok);border-bottom:2px solid var(--ok);transform:rotate(-45deg)}
input[type=email],form.brief input[type=text]{color:var(--ink)}

table{width:100%;border-collapse:collapse;margin:1rem 0 1.4rem;
  font:400 .95rem/1.5 var(--sans)}
th,td{text-align:left;padding:.6rem .4rem;border-bottom:1px solid var(--rule)}
th{font-weight:600;font-size:var(--t-label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
td.num{text-align:right;font-variant-numeric:tabular-nums}

/* ledger: the figures are the page. gutters are the rule colour showing through a 1px gap */
.ledger{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:1px;
  background:var(--rule);border:1px solid var(--rule);margin:1.5rem 0 1rem}
.ledger div{background:var(--card);padding:1.05rem 1rem;display:flex;flex-direction:column}
.ledger .k{display:block;font:500 var(--t-label)/1.4 var(--sans);
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:.4rem}
/* value sits on the cell's bottom edge, so a label that wraps to two lines does not
   push its own figure out of line with the ones beside it */
.ledger .v{display:block;font:600 1.5rem/1 var(--serif);font-variant-numeric:tabular-nums;
  color:var(--ink);margin-top:auto}
.ledger.big .v{font-size:2.1rem}

.note{background:var(--note);border-left:3px solid var(--accent);padding:1rem 1.1rem;margin:1.6rem 0;
  font-size:.95rem;color:var(--second)}

/* Bottom air is body's padding-bottom, not a margin here: a footer margin-bottom collapses out
   through the panel and shows tinted canvas, not paper. */
footer{margin:4rem 0 0;padding-top:1.3rem;border-top:1px solid var(--rule);
  font:400 var(--t-small)/1.6 var(--sans);color:var(--muted)}
footer a{border-bottom:1px solid var(--rule)}

/* draft mode: ?draft=1 outlines every block still waiting on Dan */
.draft [data-dan]{outline:1px dashed var(--accent);outline-offset:6px;background:rgba(122,59,46,.035)}

/* lists standing in for prose. the session and about bullets */
ul.blocks,ol.blocks{margin:1.2rem 0 1.6rem;padding:0;list-style:none;
  line-height:1.6;color:var(--second)}
ul.blocks>li,ol.blocks>li{position:relative;padding:0 0 0 1.4rem;margin:0 0 .9rem;border:0}
ul.blocks>li::before{content:"·";position:absolute;left:0;color:var(--accent)}
ol.blocks{counter-reset:step}
ol.blocks>li{counter-increment:step}
ol.blocks>li::before{content:counter(step) ".";position:absolute;left:0;
  font:600 .85rem/1.7 var(--sans);color:var(--accent)}

/* the about portrait. Dan's CV headshot */
.portrait{float:right;width:11rem;height:11rem;margin:.4rem 0 1.2rem 1.6rem;
  border-radius:8px;object-fit:cover;border:1px solid var(--rule);background:var(--note)}

/* the figures-on-this-page date stamp */
.dateline{font:400 var(--t-small)/1.5 var(--sans);color:var(--muted);font-style:italic;
  margin:1.2rem 0 2rem}

/* the imprint block */
address.plain{font-style:normal;margin:0 0 1.1rem;line-height:1.7}

/* FAQ. the question is the heading, so trim the gap above each one */
.faq h3{margin:1.9rem 0 .35rem}
.faq p{margin:0 0 .9rem}

@media (max-width:640px){
  /* the type scale is fluid (--t-h1 bottoms out at 32px, --t-body at 18px); only layout switches here */
  header.hero{padding:2.6rem 0 2rem}
  .proof{grid-template-columns:1fr;gap:.4rem}
  .ledger{grid-template-columns:repeat(2,1fr)}
  /* A one-cell ledger (the delivered counter) must span the row: the second track under
     repeat(2,1fr) is empty, and the container's rule-coloured background shows through it
     as a solid grey block on phones. */
  .ledger>div:only-child{grid-column:1/-1}
  .portrait{float:none;width:8rem;height:8rem;margin:0 0 1.4rem}
}

/* The panel below its own width: at 68rem or less the page fills the window, so the surround has
   nowhere to show and the two edge hairlines would sit on the window border. Drop them rather than
   draw a frame around the whole screen. */
@media (max-width:68rem){
  html{background:var(--paper)}
  body{border-left:0;border-right:0;box-shadow:none}
}

/* The nav is at its width limit on phones: with "The book" in it, the last item no longer fits
   beside the brand under 420px and wrapped alone on a line of its own. Stack it on purpose there:
   brand on the first line, the four links left-aligned under it, instead of letting flex-wrap
   orphan one item. (19.11.2026, with the label change from "Book".) */
@media (max-width:430px){
  nav .wrap{gap:.5rem 1.15rem;padding:.8rem 1.5rem}
  nav .brand{flex:1 0 100%;margin-right:0}
}

@media print{
  @page{size:A4;margin:14mm 12mm}
  nav{position:static;border-bottom:1px solid #ddd}
  nav a:not(.brand){color:#666}
  a{color:#000}
  header.hero{padding:1.2rem 0 1rem;border-bottom:1px solid #000}
  footer{margin:2rem 0 0}
  .frame{box-shadow:none}
}
