/* ==========================================================================
   Tokens. One typeface (IBM Plex Mono), paper and ink, one accent, and the
   amber that only the water uses.
   ========================================================================== */

:root {
  --paper: #edebe5;
  --paper-2: #e3e0d8;
  --ink: #15191b;
  --ink-2: #3d4447;
  --ink-3: #5f676a;
  --line: #cfcbc1;
  --line-2: #b5b0a4;
  --accent: #1e6b60;
  --accent-ink: #15524a;
  --accent-soft: #d6e5df;
  --amber: #a8722a;
  --code-bg: #e6e3dc;

  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --text: 0.875rem; /* 14px */
  --small: 0.78125rem; /* 12.5px */
  --h1: 1.375rem;
  --h2: 1rem;

  --col: 40rem; /* the reading column */
  --wide: 64rem;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 60px;
  --pond-bg-opacity: 0.38;

  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #0e1517;
  --paper-2: #141d20;
  --ink: #e4e1d7;
  --ink-2: #a7ada6;
  --ink-3: #737b76;
  --line: #22302f;
  --line-2: #2f3f40;
  --accent: #62c4ac;
  --accent-ink: #8fd9c6;
  --accent-soft: #143430;
  --amber: #d4ac62;
  --code-bg: #121b1d;
  --pond-bg-opacity: 0.5;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1517;
    --paper-2: #141d20;
    --ink: #e4e1d7;
    --ink-2: #a7ada6;
    --ink-3: #737b76;
    --line: #22302f;
    --line-2: #2f3f40;
    --accent: #62c4ac;
    --accent-ink: #8fd9c6;
    --accent-soft: #143430;
    --amber: #d4ac62;
    --code-bg: #121b1d;
    --pond-bg-opacity: 0.5;
    color-scheme: dark;
  }
}

/* Service pages (mentoring, booking, newsletter) sit on a deeper shade of the
   same paper (light) and a lifted shade of the same slate (dark), so they read
   as "something I offer" next to the pages about me. Same hue, type, ink and
   accent; only the surfaces shift. */
:root.tone-service {
  --paper: #e4e1d8;
  --paper-2: #dad6cc;
  --line: #c7c2b6;
  --line-2: #aca698;
  --code-bg: #ddd9cf;
}

:root.tone-service[data-theme="dark"] {
  --paper: #162024;
  --paper-2: #1c282c;
  --line: #2a393b;
  --line-2: #37484a;
  --accent-soft: #173935;
  --code-bg: #192427;
}

@media (prefers-color-scheme: dark) {
  :root.tone-service:not([data-theme="light"]) {
    --paper: #162024;
    --paper-2: #1c282c;
    --line: #2a393b;
    --line-2: #37484a;
    --accent-soft: #173935;
    --code-bg: #192427;
  }
}

/* Moving between pages fades one into the next, so the shade change between
   the pages about me and the service pages is gradual rather than a jump.
   Browsers without cross-page view transitions just change page as before. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Fonts (self-hosted, see /public/fonts/LICENSE-IBM-Plex.txt) */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-Italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: var(--text); line-height: 1.8;
  font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color 0.15s ease, color 0.15s ease; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, h4 { font-size: var(--text); font-weight: 500; line-height: 1.6; margin: 0; }
h1 { font-size: var(--h1); line-height: 1.35; letter-spacing: -0.01em; }
h2 { font-size: var(--h2); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--paper); border-radius: 4px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-2); }
.quiet { color: var(--ink-3); }
.small { font-size: var(--small); }

/* The reading column: everything that is not the water lives here. */
.col { max-width: var(--col); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.col.wide { max-width: var(--wide); }

/* Buttons are text with a box, nothing more. */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; color: var(--ink); background: var(--paper); transition: background-color 0.15s ease, color 0.15s ease; }
.button:hover { background: var(--ink); color: var(--paper); }
.button svg { flex: none; }
.link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2); }
.link:hover { color: var(--ink); text-decoration: underline; }
.pill { display: inline-flex; align-items: baseline; gap: 5px; font-size: var(--small); line-height: 1.5; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; background: var(--paper); }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-current="page"] { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.pill .count { color: var(--ink-3); }
.pill[aria-current="page"] .count { color: var(--accent-ink); }

/* ==========================================================================
   Header: one centred row of words. The name is the way home.
   ========================================================================== */

.site-header { position: sticky; top: 0; z-index: 50; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 32px); height: var(--header-h); padding: 0 var(--gutter); }
.site-nav a { text-decoration: none; color: var(--ink-2); position: relative; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
/* The greeting changes length; it gets a fixed slot so the other links stay put, and the
   current-page underline follows the word rather than the slot. */
.site-nav .home { font-weight: 500; display: inline-block; min-width: 7ch; text-align: center; }
.site-nav .home[aria-current="page"]::after { display: none; }
.site-nav .home span { position: relative; display: inline-block; padding: 4px 0; transition: opacity 0.25s ease; }
.site-nav .home[aria-current="page"] span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.site-nav .home.is-swapping span { opacity: 0; }
@media (max-width: 480px) {
  .site-nav { gap: 12px; font-size: 0.875rem; }
  .site-nav .home { min-width: 0; }
}
.site-nav .nav-icon { display: none; }
@media (max-width: 480px) {
  .site-nav .has-icon .nav-label { display: none; }
  .site-nav .has-icon .nav-icon { display: inline-grid; place-items: center; height: 32px; }
}
@media (max-width: 400px) {
  .site-nav { gap: 8px; padding: 0 8px; font-size: 0.8125rem; }
  .theme-toggle { width: 28px; }
}
@media (max-width: 340px) {
  .site-nav { gap: 5px; padding: 0 4px; font-size: 0.75rem; }
  .theme-toggle { width: 26px; }
}
.theme-toggle { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ==========================================================================
   The water
   Home: the whole screen, interactive. Every other page: the same ocean,
   dimmed, behind the reading column, not interactive.
   ========================================================================== */

/* The home page is one screen of water. It fills whatever viewport it gets; only when the
   viewport is shorter than the water's minimum (very short panes, landscape phones with
   the keyboard up) does the page scroll. */
body.home-single { min-height: 100svh; overscroll-behavior: none; }
body.home-single main { height: calc(100svh - var(--header-h)); min-height: 240px; }
@media (min-height: 301px) { body.home-single { height: 100svh; overflow: hidden; } }
.pond { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; isolation: isolate; }
.pond canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; font-family: var(--mono); }
/* The words sit low and left, like a caption on the water, with the left third kept clear. */
.pond-intro { position: absolute; z-index: 1; left: clamp(var(--gutter), 20vw, 400px); right: var(--gutter); bottom: clamp(32px, 9vh, 96px); text-align: left; }
.pond-intro > div { max-width: 50rem; }
.pond-intro .motto { margin: 0 0 18px; color: var(--ink-3); font-size: var(--small); white-space: pre-line; }
.pond-intro .line { margin: 0 0 6px; color: var(--ink); font-size: 1rem; }
.pond-intro .line.greet { margin-bottom: 8px; }
.pond-intro .line a { color: var(--ink); }
.pond-intro .links { margin: 14px 0 0; color: var(--ink-2); font-size: var(--small); }
.pond-intro .links a { text-decoration: none; color: var(--ink-2); }
.pond-intro .links a:hover { color: var(--ink); text-decoration: underline; }
.pond-intro .links .sep { margin: 0 8px; color: var(--ink-3); }
.pond-intro .links a.cta { color: var(--accent-ink); }
.pond-hint { position: absolute; z-index: 1; right: var(--gutter); bottom: 22px; margin: 0; font-size: var(--small); color: var(--ink-3); }
.pond-hint .coarse { display: none; }
@media (pointer: coarse) { .pond-hint .fine { display: none; } .pond-hint .coarse { display: inline; } }
/* Wide and short (a landscape phone, a small window, an embedded preview): keep the words to the
   left half so the water stays the picture, and drop the hint. */
@media (max-height: 600px) and (min-width: 700px) {
  .pond-intro { bottom: 18px; }
  .pond-intro > div { max-width: min(40rem, 60%); }
  .pond-hint { display: none; }
}
@media (max-width: 600px) {
  .pond-intro { left: var(--gutter); bottom: 28px; }
  .pond-intro .motto { margin-bottom: 12px; }
  .pond-hint { top: 12px; bottom: auto; }
}
@media (max-height: 420px) {
  .pond-intro .motto { display: none; }
  .pond-intro .links { margin-top: 6px; }
}

/* the one page-load moment */
.pond-intro > div > * { opacity: 0; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.pond-intro > div > :nth-child(2) { animation-delay: 0.1s; }
.pond-intro > div > :nth-child(3) { animation-delay: 0.2s; }
.pond-intro > div > :nth-child(4) { animation-delay: 0.3s; }
.pond-intro > div > :nth-child(5) { animation-delay: 0.4s; }
.pond-intro > div > :nth-child(6) { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pond-intro > div > * { animation: none; opacity: 1; } }

/* The water sits at z 0 and every piece of page content at z 1, so no browser can paint it over the words. */
.pond-bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: var(--pond-bg-opacity); font-family: var(--mono); pointer-events: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ==========================================================================
   Pages: a head, then a column of plain lists
   ========================================================================== */

.page-head { padding-top: clamp(32px, 7vw, 72px); padding-bottom: clamp(20px, 3vw, 32px); }
.page-head .kicker { color: var(--ink-3); margin: 0 0 8px; font-size: var(--small); }
.page-head h1 { margin: 0 0 8px; }
.page-head .lead { color: var(--ink-2); margin: 0; max-width: 60ch; }
/* A page title with its logo beside it (the newsletter page). */
.page-head .brand-head { display: flex; align-items: center; gap: clamp(14px, 3vw, 22px); margin: 0 0 12px; }
.page-head .brand-head img { width: clamp(64px, 14vw, 88px); height: auto; flex: none; }
.page-head .brand-head h1 { margin: 0; }
.page-body { padding-bottom: clamp(48px, 8vw, 96px); }
.page-body > * + * { margin-top: clamp(32px, 5vw, 56px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-head h2 { color: var(--ink); }
.section-head p { margin: 2px 0 0; color: var(--ink-3); font-size: var(--small); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: var(--small); }
.back:hover { color: var(--ink); }
.back svg { transform: rotate(180deg); }

/* Rows: the list everything on the site is made of. */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; text-decoration: none; align-items: baseline; }
.row .when { color: var(--ink-3); font-size: var(--small); }
.row .title { color: var(--ink); font-weight: 500; }
.row .desc { color: var(--ink-2); margin: 0; }
.row .meta { color: var(--ink-3); font-size: var(--small); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
a.row:hover .title { color: var(--accent-ink); }
.rows > li.featured { border-bottom-color: var(--accent); }
.rows .note { color: var(--accent-ink); font-size: var(--small); }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; gap: 0; } }

/* Tags and search on the writing page */
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 10px; background: var(--paper); max-width: 24rem; }
.search svg { color: var(--ink-3); flex: none; }
.search input { flex: 1; border: 0; background: none; padding: 8px 0; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; }
.empty { padding: 24px 0; color: var(--ink-3); }

/* The rail: a line with nodes, like the markers under the water. */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 24px; }
.rail li { position: relative; padding-top: 22px; }
.rail li::after { content: ""; position: absolute; left: 0; right: -24px; top: 5px; height: 1px; background: var(--line-2); }
.rail li:last-child::after { right: 0; background: linear-gradient(to right, var(--line-2), transparent); }
.rail li::before { content: ""; position: absolute; left: 0; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink-2); z-index: 1; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.rail li:hover::before, .rail li.now::before { background: var(--accent); border-color: var(--accent); }
.rail li:hover::before { transform: scale(1.3); }
.rail .when { display: block; color: var(--ink-3); font-size: var(--small); }
.rail li.now .when { color: var(--accent-ink); }
.rail strong { display: block; font-weight: 500; color: var(--ink); }
.rail p { margin: 0; color: var(--ink-2); font-size: var(--small); line-height: 1.6; }
@media (max-width: 720px) {
  .rail { grid-template-columns: 1fr; gap: 0; }
  .rail li { padding: 0 0 20px 22px; }
  .rail li::after { left: 3px; right: auto; top: 10px; bottom: -8px; width: 1px; height: auto; }
  .rail li:last-child::after { background: linear-gradient(to bottom, var(--line-2), transparent); }
  .rail li::before { top: 8px; }
}
.stack-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }

/* Facts: label over value, like a readout. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 14px 24px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: var(--small); }
.facts > div { min-width: 0; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }

/* Long-form reading (posts, project pages, legal) */
.prose { max-width: 66ch; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose .table-wrap { margin: 1.1em 0 0; }
.prose h2 { margin: 2.2em 0 0; color: var(--ink); }
.prose h3 { margin: 1.6em 0 0; color: var(--ink-2); }
.prose h2 + *, .prose h3 + * { margin-top: 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.3em; }
.prose blockquote { padding: 0 0 0 16px; border-left: 2px solid var(--accent); color: var(--ink-2); }
.prose figcaption { color: var(--ink-3); font-size: var(--small); margin-top: 6px; }
.prose img { border: 1px solid var(--line); border-radius: 4px; }
.prose code { font-size: 0.95em; background: var(--code-bg); padding: 0.1em 0.4em; border-radius: 3px; }
.prose pre code { background: none; padding: 0; font-size: var(--small); }
.prose .heading-anchor { text-decoration: none; }
.prose .heading-anchor:hover::after { content: " #"; color: var(--ink-3); }
.prose strong { font-weight: 500; }
.prose a { color: var(--accent-ink); }
figure.code { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--code-bg); }
figure.code .code-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px; border-bottom: 1px solid var(--line); font-size: var(--small); color: var(--ink-3); }
figure.code .copy { font-size: var(--small); color: var(--ink-2); }
figure.code .copy:hover { color: var(--ink); }
figure.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; line-height: 1.6; }
.tok-comment { color: var(--ink-3); font-style: italic; }
.tok-string { color: var(--amber); }
.tok-number, .tok-keyword { color: var(--accent-ink); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-2); font-weight: 500; font-size: var(--small); }

/* Post page */
.post-meta { color: var(--ink-3); font-size: var(--small); display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; }
.toc { margin: 0 0 32px; padding: 0; font-size: var(--small); }
.toc p { color: var(--ink-3); margin: 0 0 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 3px 0 3px 12px; text-decoration: none; color: var(--ink-2); margin-left: -1px; border-left: 1px solid transparent; }
.toc li.depth-3 a { padding-left: 24px; }
.toc li a:hover, .toc li a.active { color: var(--ink); border-left-color: var(--accent); }
.post-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink-3); font-size: var(--small); }
.share .link { font-size: var(--small); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.post-nav a { display: block; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; }
.post-nav a:hover { border-color: var(--line-2); }
.post-nav .dir { display: block; color: var(--ink-3); font-size: var(--small); margin-bottom: 2px; }
.post-nav a.next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }

/* Coaching */
.readout { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2px 24px; }
.readout dt { color: var(--ink-3); font-size: var(--small); }
.readout dd { margin: 0; }
@media (max-width: 600px) { .readout { grid-template-columns: 1fr; } .readout dt { margin-top: 6px; } }
.quote { color: var(--ink-3); margin: 0 0 18px; }
.quote .cursor { display: inline-block; width: 0.55em; height: 1em; margin-left: 4px; vertical-align: -0.15em; background: var(--ink-2); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .quote .cursor { animation: none; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.fold summary { cursor: pointer; list-style: none; padding: 10px 0; color: var(--ink-3); font-size: var(--small); display: flex; align-items: center; gap: 8px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "+"; }
.fold[open] summary::before { content: "–"; }
.fold summary:hover { color: var(--ink); }
.fold .rows { margin-bottom: 4px; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cta-line .aside { color: var(--ink-3); font-size: var(--small); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.quotes blockquote { margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--accent); }
.quotes p { margin: 0 0 4px; }
.quotes cite { color: var(--ink-3); font-size: var(--small); font-style: normal; }

/* Booking */
.cal-frame { min-height: 620px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); position: relative; }
.cal-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--ink-2); }
.cal-placeholder code { background: var(--code-bg); padding: 2px 6px; border-radius: 3px; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 32rem; }
.form label { display: grid; gap: 4px; color: var(--ink-2); font-size: var(--small); }
.form input, .form textarea, .form select { font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { min-height: 140px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .hp { position: absolute; left: -9999px; }
.form .status { color: var(--ink-2); min-height: 1.4em; font-size: var(--small); }
.form .status.error { color: #b4462e; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; }
.form .consent input { width: auto; margin-top: 5px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }
.newsletter { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 32rem; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.newsletter p { margin: 0; color: var(--ink-2); font-size: var(--small); }
.newsletter .newsletter-label { display: inline-flex; align-items: center; gap: 8px; }
.newsletter .newsletter-label img { width: 24px; height: 24px; flex: none; }

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; gap: 12px; }

/* ==========================================================================
   Footer: one line
   ========================================================================== */

.site-footer { padding: 24px var(--gutter) 28px; font-size: var(--small); color: var(--ink-3); text-align: center; }
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .sep { margin: 0 8px; }
body.home-single .site-footer { display: none; }
