/* ===========================================================================
   skin-warm.css  —  "Warm & Inviting" site skin (Settings ▸ Site look)
   ---------------------------------------------------------------------------
   Loaded AFTER styles.css (see includes/header.php) only when the owner has
   picked this skin — plain overrides, no [data-skin] scoping needed. Site
   Colors / Visual Style overrides load AFTER this file, so an owner's manual
   color/font picks still win over the skin defaults.

   Direction: editorial craft-studio — and, like Bold, this pass goes past
   surface polish into real STRUCTURE, deliberately a DIFFERENT structural
   move than Bold's sidebar: the top bar becomes a floating rounded "island"
   pill (margin on all sides, not edge-to-edge), the hero goes asymmetric
   with an oversized tilted portrait swapped to the visual front, and the
   page moves through a warm tonal PROGRESSION — cream → deeper sand → clay
   terracotta → dark espresso footer — instead of one flat background color
   for the whole page. The work list becomes a grid of category columns with
   a gentle scrapbook tilt on each card, the same underlying markup as every
   other skin (only flex/grid direction and a rotate() change).

   Soft blurred warm-toned shadows throughout, never a hard offset one.
   Shadow/glow color is drawn from var(--ink) via color-mix() rather than a
   fixed hex, so light mode gets a soft warm dark shadow and dark mode gets a
   soft cream glow — one rule set, both themes.

   Scope: the owner-only Settings/Builder panel (.settings-panel, .bld-*) is
   deliberately left almost untouched — it inherits the new palette/fonts for
   free but keeps its existing layout and right-hand dock. Per the owner's
   brief: "on-brand," not redesigned.
   =========================================================================== */

:root {
  --bg:#F7F1E6; --surface:#FFFDF8; --ink:#332A22; --ink-2:#4A3D30; --soft:#7A6B57; --faint:#776A53;
  --line:#E3D5BE; --hair:#EDE2CD;
  --accent:#B75B3D; --accent-2:#9C4B30; --accent-soft:#F1DCC9; --accent-ink:#7A3A24;
  /* Text sitting ON the --accent FILL (the A/D/D/I/E chips, the active
     category tab). This was hardcoded #fff in 20 rules, which works on a
     light theme's deep accent and fails on every dark theme's light one —
     white on Night Class's gold measured 2.10. Each theme names its own. */
  --on-accent:#FFFFFF;   /* 4.59:1 */
  /* Fill unchanged; accent TEXT darkens. 4.08 -> 4.72 on --bg. */
  --accent-text:#A85338;
  --ok:#5C7A4F; --warn:#B8863D;

  --radius:28px; --radius-sm:16px;
  --f-display:"Fraunces","Iowan Old Style",Georgia,serif;
  --f-sans:"Karla",system-ui,sans-serif;
  --f-mono:"Space Mono",ui-monospace,"SF Mono",Menlo,monospace;

  --cta:var(--accent); --cta-2:var(--accent-2); --cta-ink:var(--on-accent);
  --f-head-weight:600; --f-head-tracking:-0.01em;

  --sage:#7C8F63;
  /* The warm tonal progression the page moves through, section by section —
     each is a fixed color (not derived from --bg), so the bands stay warm
     and legible in both themes rather than flipping to something muddy. */
  --band-sand:#EEE1C4; --band-terracotta:#C67B52; --nav-line:#E3D5BE;
  /* Footer is always dark espresso, in both themes — like a fireside close
     to the page, not part of the light/dark flip (which would otherwise
     invert it to pale cream in dark mode and break the bookend). */
  --foot-bg:#2B2013; --foot-ink:#F3E9D8;
  /* Fixed pale-peach ink for the footer tagline (.accent-text) — the same
     fixed-vs-flipping split as --foot-ink above. --accent-soft flips to a
     dark fill tint in dark theme (it's meant as a background there, e.g.
     .admin-flag), so using it as TEXT on the always-dark footer went
     unreadable (1.4:1) once dark theme flipped it. */
  --foot-accent:#F1DCC9;
}
html[data-theme="dark"] {
  --bg:#211A13; --surface:#2B231A; --ink:#F3E9D8; --ink-2:#E4D6BE; --soft:#B7A688; --faint:#AD9C7E;
  --line:#4A3B29; --hair:#33291C;
  --accent:#E08256; --accent-2:#EC9A72; --accent-soft:#3D2A1E; --accent-ink:#F2C7AC;
  /* Text sitting ON the --accent FILL (the A/D/D/I/E chips, the active
     category tab). This was hardcoded #fff in 20 rules, which works on a
     light theme's deep accent and fails on every dark theme's light one —
     white on Night Class's gold measured 2.10. Each theme names its own. */
  --on-accent:#332A22;   /* 6.72:1 */
  /* Same reason as Bold: each theme declares its own accent text colour. */
  --accent-text:var(--accent);
  --ok:#93B57C; --warn:#E0B15E;
  --sage:#96A87C;
  --band-sand:#3A2E1D; --band-terracotta:#8A4A2E; --nav-line:#4A3B29;
  --foot-bg:#180F08;
  /* Dark theme's --accent brightens (for legibility on the dark page bg),
     which drops white CTA-button text to 2.8:1 against it. Swap to a dark
     ink for buttons/pills sitting ON that accent fill specifically. */
  --cta-ink:#332A22;
}

::selection { background:var(--accent-soft); color:var(--ink); }

/* Scroll-reveal (see scripts/phpsite.js §6.5) — opacity only, never touches
   transform, so it can't fight this file's resting card tilt or hover lift. */
.reveal-on-scroll { opacity:0; transition:opacity .5s ease; }
.reveal-on-scroll.is-revealed { opacity:1; }
@media (prefers-reduced-motion:reduce) { .reveal-on-scroll { opacity:1; transition:none; } }

/* Shared soft-shadow tokens (blurred, warm-toned, no hard offset). */
:root { --shadow-sm:0 10px 26px -16px color-mix(in srgb, var(--ink) 55%, transparent);
        --shadow-md:0 18px 42px -22px color-mix(in srgb, var(--ink) 50%, transparent);
        --shadow-lg:0 26px 58px -26px color-mix(in srgb, var(--ink) 48%, transparent); }

/* ---------------------------------------------------------------------------
   Buttons — soft pill shapes, gentle lift + growing glow on hover instead of
   a hard offset shift.
   --------------------------------------------------------------------------- */
.cta, .btn, .form .submit {
  border-radius:999px; border:0; box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, background .2s, color .2s;
}
.cta, .btn-primary, .form .submit { background:var(--cta); color:var(--cta-ink,#fff); }
/* Builder panel's Save button is hardcoded #fff in the base stylesheet
   (that panel is otherwise left alone across skins), but that reads at
   2.8:1 against this skin's brighter dark-theme --accent. */
.bld-save { color:var(--cta-ink); }
.cta:hover, .btn-primary:hover, .form .submit:hover {
  background:var(--cta-2); color:var(--cta-ink,#fff);
  transform:translateY(-2px); box-shadow:var(--shadow-md);
}
.cta:active, .btn-primary:active, .form .submit:active { transform:translateY(0); box-shadow:var(--shadow-sm); }
.btn-ghost { border:1.5px solid var(--accent); color:var(--accent-ink); background:transparent; box-shadow:none; }
.btn-ghost:hover { background:var(--accent-soft); border-color:var(--accent); transform:translateY(-2px); box-shadow:var(--shadow-sm); }

.seg { border-radius:999px; border:1px solid var(--nav-line); background:var(--surface); }
.seg a, .seg button { border-radius:999px; font-family:var(--f-mono); }
.seg a[aria-current="true"], .seg button[aria-pressed="true"] { background-color:var(--accent); color:var(--on-accent); }

.iconbtn { border-radius:999px; }
.iconbtn:hover { background:var(--accent-soft); color:var(--accent-ink); border-color:var(--accent); }

.nav-link { border-radius:999px; padding-inline:12px; }
.nav-link:hover, .nav-link.is-current { background:var(--accent-soft); color:var(--accent-ink); }

/* ---------------------------------------------------------------------------
   Accent text — italic serif in the accent color with a soft translucent
   highlight band UNDER the word (not a hard box around it, unlike Bold).
   --------------------------------------------------------------------------- */
.accent-text {
  color:var(--accent-text); font-style:italic;
  background-image:linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat:no-repeat; background-size:100% .38em; background-position:0 90%;
}

/* ===========================================================================
   THE FLOATING NAV — the top bar detaches from the edges into a rounded,
   shadowed "island" with margin all around, desktop only. Below 760px it
   reverts entirely to the site's normal top-bar + hamburger (untouched).
   =========================================================================== */
@media (min-width:761px) {
  .top {
    position:sticky; top:18px; z-index:60;
    width:calc(100% - 48px); max-width:var(--maxw); margin:0 auto;
    border-radius:999px; background:var(--surface); border:1px solid var(--nav-line);
    box-shadow:var(--shadow-md); backdrop-filter:none;
  }
  .top .wrap { max-width:none; padding-inline:10px 14px; height:60px; }
  .top .brand { padding-inline-start:10px; }
  .addie-nav { top:82px; border-radius:999px; width:calc(100% - 48px); max-width:var(--maxw); margin:12px auto 0; box-shadow:var(--shadow-sm); border:1px solid var(--nav-line); }
  .addie-nav .wrap { padding-inline:22px; }
  [id^="s-"], [id^="phase-"], #full-resource { scroll-margin-top:150px; }
  .detail-section .section-head { top:150px; }
}

/* ---------------------------------------------------------------------------
   Headshot — an organic asymmetric "blob" frame with soft overlapping color
   washes instead of a hairline pattern.
   --------------------------------------------------------------------------- */
.headshot {
  overflow:visible; border:0; border-radius:58% 42% 63% 37% / 41% 55% 45% 59%; box-shadow:var(--shadow-md);
  background-color:var(--accent-soft);
  background-image:radial-gradient(circle at 28% 28%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 58%),
                    radial-gradient(circle at 74% 72%, color-mix(in srgb, var(--sage) 28%, transparent), transparent 52%);
}
.headshot img { border-radius:inherit; }

/* ===========================================================================
   HERO — asymmetric and photo-forward: the portrait swaps to visual FRONT
   (order:-1, pure CSS — the markup order is untouched) and grows to roughly
   match the text column instead of sitting in a small fixed-width slot, with
   a gentle tilt and an offset color-block peeking out behind it, collage-
   style. Same .hero-text / .headshot markup as every other skin.
   =========================================================================== */
@media (min-width:861px) {
  .hero .wrap { grid-template-columns:1fr 1.05fr; gap:64px; align-items:center; }
  .hero .headshot {
    order:-1; position:relative; aspect-ratio:4/5; border-radius:32px;
    transform:rotate(-2deg);
  }
  .hero .headshot::after {
    content:""; position:absolute; inset:22px -22px -22px 22px; z-index:-1;
    background:var(--sage); border-radius:32px; transform:rotate(3deg);
  }
}

/* ===========================================================================
   TONAL BANDS — the page moves through a warm progression instead of one
   flat background: hero/about/detail on a deeper sand tone, work section
   back on the page cream, contact on a clay-terracotta band with a floating
   white card, footer a dark espresso close.
   =========================================================================== */
.hero, .about-hero, .detail-head { background:var(--band-sand); padding-block:48px 44px; margin-bottom:8px; }
/* 25% less below a resource's band, to match the base stylesheet (44 -> 33, 8 -> 6). */
.detail-head { padding-bottom:33px; margin-bottom:6px; }
.detail-head .specbar, .detail-head .form { background:var(--surface); }
.detail-head .fr-kit { --frk-bg:var(--surface); }
/* Base styles.css's plain .eyebrow uses --accent directly, which measured
   3.54:1 in light mode against this band's sand background — fails AA at
   this small caps size. --accent-ink is this skin's existing text-safe
   accent variant (already used for admin-flag etc.); reuse it here too. */
.hero .eyebrow, .about-hero .eyebrow, .detail-head .eyebrow { color:var(--accent-ink); }
/* --soft (used above) is tuned against --bg/--surface, not this darker sand
   band — measured only 3.98:1 here. --ink-2 holds up against both.
   The detail page's micro-labels land in exactly the same trap: --label-ink is
   derived from --soft, so on the band it inherits that same 3.98:1 (and the
   --faint they took before it was 2.18:1). --ink-2 measures 8.10:1 light /
   9.23:1 dark there. Not .spec-label — the specbar has its own --surface fill
   one rule up, where --label-ink already clears AA at 5.08:1. */
.hero .caps-label, .about-hero .caps-label, .detail-head .caps-label,
.detail-head .detail-skills .ds-label, .detail-head .frp-group, .detail-head .frk-heading { color:var(--ink-2); }
/* Audience names sit on the band now (desktop only; on one column they are inside the white block). */
@media (min-width:861px) { .detail-head .frk-label { color:var(--ink-2); } }

.work { padding-block:56px 48px; background:var(--bg); }

.contact { background:var(--band-terracotta); padding-block:64px 60px; }
.contact .intro .eyebrow { color:#fff; opacity:.85; }
.contact .intro h2 { color:#fff; }
.contact .intro .accent-text { color:#fff; background-image:linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)); }
/* No band behind "moves" (the hero line) or "project" (the contact form's heading): the italic,
   accent-coloured word stays. */
.hero h1 .accent-text, .contact .intro h2 .accent-text { background-image:none; }
/* On the terracotta contact band the word needs light ink once its band is gone (the accent colour it
   had measured under 2:1 there). */
.contact .intro h2 .accent-text { color:#fff; }
.contact .intro p, .contact .intro .lede-contact { color:color-mix(in srgb, #fff 90%, transparent); }
.contact .intro .mail a { color:#fff; border-color:rgba(255,255,255,.5); }
.contact .form { box-shadow:var(--shadow-lg); }

.foot { background:var(--foot-bg); border-top:0; color:var(--foot-ink); }
/* Base styles.css's ".foot .wrap" sets its own color:var(--soft) — a theme-
   flipping value — which the bare copyright <span> inherits, overriding the
   fixed --foot-ink above. --soft is tuned for the light theme's pale
   surfaces, not this always-dark footer bar, so light mode measured only
   3.08:1. Re-pin it to the fixed ink here too. */
.foot .wrap { color:var(--foot-ink); }
.foot a { color:var(--foot-ink); }
.foot a:hover { color:var(--accent-soft); }
.foot .accent-text { color:var(--foot-accent); background:none; }
.foot .social-link { border-color:color-mix(in srgb, var(--foot-ink) 30%, transparent); color:var(--foot-ink); }
.foot .social-link:hover { background:var(--accent-soft); color:var(--accent-ink); border-color:var(--accent-soft); }
.admin-flag { border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); border:1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.admin-link { color:color-mix(in srgb, var(--foot-ink) 70%, transparent); }
.admin-link:hover { color:var(--accent-soft); }

/* ===========================================================================
   WORK — reflowed into a GRID OF COLUMNS, one per category, each with a
   gentle scrapbook tilt on its cards instead of one long list of wide rows.
   =========================================================================== */
.tabs .tab { border-radius:999px; border:1px solid var(--line); background:var(--surface); }
.tabs .tab:hover { border-color:var(--accent); color:var(--accent-ink); background:var(--accent-soft); }
.tabs .tab.active { background:var(--accent); border-color:var(--accent); color:var(--cta-ink); }

#work-body { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); column-gap:44px; row-gap:0; align-items:start; counter-reset:catnum; }
/* Two grid tracks per category (heading, then cards), taken as a subgrid: every heading in a
   row shares one height and every first card starts level, whether or not a heading wraps.
   padding-top clears the big italic number that sits above each heading. */
.catgroup { padding-top:46px; position:relative; display:grid; grid-row:span 2; grid-template-rows:subgrid; row-gap:0; align-items:start; margin-bottom:44px; }
.catgroup::before {
  counter-increment:catnum; content:counter(catnum, decimal-leading-zero);
  position:absolute; top:-10px; inset-inline-start:-4px; z-index:0; pointer-events:none;
  font-family:var(--f-display); font-style:italic; font-size:2.6rem; line-height:1;
  color:color-mix(in srgb, var(--accent) 22%, transparent); transform:rotate(-4deg);
}
.catgroup .cat-label { position:relative; z-index:1; }

.proj-list { gap:30px; }
.proj-row {
  flex-direction:column;   /* picture above, words below. Without this the row layout of styles.css applied: the picture took the whole width and the words were squeezed into a zero-width column off the card, whose wrapped height then stretched the picture. */
  border-radius:26px; border:1px solid var(--line); box-shadow:var(--shadow-md);
  transition:transform .24s ease, box-shadow .24s ease, border-color .2s;
}
.proj-list .proj-row:nth-child(odd) { transform:rotate(-.6deg); }
.proj-list .proj-row:nth-child(even) { transform:rotate(.5deg); }
.proj-row:not(.placeholder):hover {
  transform:rotate(0deg) translateY(-8px);
  box-shadow:0 30px 60px -24px color-mix(in srgb, var(--accent) 45%, transparent);
  border-color:color-mix(in srgb, var(--accent) 35%, var(--line));
}
.proj-row:not(.placeholder):active { transform:rotate(0deg) translateY(-3px); transition-duration:.1s; }
.proj-thumb {
  width:100%; max-width:none; aspect-ratio:var(--ar-video);
  border-inline-end:0; border-bottom:0;
  background-color:var(--accent-soft);
  background-image:radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 56%),
                    radial-gradient(circle at 75% 72%, color-mix(in srgb, var(--sage) 26%, transparent), transparent 52%);
}
.proj-thumb .ph { color:var(--accent-ink); }
.tag-soon { border-radius:999px; border:1px solid var(--line); background:var(--surface); }

/* Headshot name-card (home + About heroes) — the same scrapbook tilt as the
   project cards above, a soft --shadow-md instead of Classic's hard-edged
   default, and an italic Fraunces role line rather than tracked uppercase
   caps, which this skin doesn't use anywhere else. --radius is already 26px
   from :root, so the card/backdrop corners round for free. The backdrop is
   switched back on here — it shares the card's own grid cell (base
   styles.css), so it's guaranteed the exact same footprint; the horizontal
   shift plus the opposite rotation are both pure-visual transforms, not a
   size difference. */
.hs-card { box-shadow:var(--shadow-md); transform:rotate(-3deg); }
.hs-backdrop { display:block; background:var(--band-terracotta); transform:translate(18px, 6px) rotate(2deg); }
.hs-role { font-style:italic; font-family:var(--f-display); text-transform:none; letter-spacing:0; font-weight:500; }

/* Title/description length shouldn't make individual cards taller or
   shorter than their neighbors — clamp both to a fixed line count and
   top-align the body (base centers it) so every card in the grid settles to
   the same height; pin the footer to the bottom (and reserve its line box
   even when a placeholder leaves it empty) so "View resource →" lands at a
   consistent baseline too. */
.proj-body { justify-content:flex-start; }
.proj-body h4 {
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; min-height:calc(1.2em * 2);
}
.proj-body .blurb {
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  min-height:calc(0.94rem * 1.55 * 3);
}
.proj-footer { min-height:1.3em; margin-top:auto; }

ul.clean li::before, ol.clean li::before { border-radius:50%; transform:none; }

/* ---------------------------------------------------------------------------
   Contact form
   --------------------------------------------------------------------------- */
.form { border-radius:28px; border:1px solid var(--line); box-shadow:var(--shadow-lg); }
.field input, .field select, .field textarea { border-radius:14px; border:1.5px solid var(--line); background:var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
.form-flash { border-radius:14px; }

/* ===========================================================================
   RESOURCE DETAIL PAGE
   =========================================================================== */
.addie-nav a .an-letter { border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); border:0; }
.addie-nav a:hover .an-letter { background:var(--accent-soft); color:var(--accent-ink); }
.addie-nav a.is-active .an-letter { background:var(--accent); color:var(--on-accent); }
.addie-nav a::after { border-radius:2px; }

.phase-divider .pd-letter { border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); }
.phase-divider .pd-name { font-style:italic; }

.specbar { border-radius:22px; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
/* The kit's soft shadow follows each CHIP's shape (a drop-shadow filter on the row); on the
   one-column layout it is a plain box-shadow on the whole block. */
.fr-kit { --frk-r:22px; --frk-bw:1px; --frk-bc:var(--line); --frk-shadow:var(--shadow-sm); --frk-label-indent:12px; }
.frk-row { filter:drop-shadow(0 8px 10px color-mix(in srgb, var(--ink) 14%, transparent)); }
@media (max-width:860px) { .frk-row { filter:none; } }
.plate, .fr-frame.is-empty {
  border-radius:26px; border:0;
  background-color:var(--accent-soft);
  background-image:radial-gradient(circle at 30% 28%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 56%),
                    radial-gradient(circle at 76% 74%, color-mix(in srgb, var(--sage) 24%, transparent), transparent 50%);
}

ul.skills li { border-radius:999px; border:1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.reviewer-callout { border-radius:22px; border:1px solid var(--line); box-shadow:var(--shadow-sm); }   /* no orange stripe down the side: it was the only place that accent appeared on this box */
/* The base card is just a plain white/surface box below the (owner-chosen,
   per-project) band color — flat and cold next to the rest of this skin's
   warm-toned, tactile cards. Give it the same warm parchment surface and a
   gentle scrapbook tilt the proj-row cards use, and blend the evidence
   panel toward that warm surface instead of a neutral one so it stays
   inviting no matter what band color a given project uses. */
.finding-card { border-radius:22px; border:1px solid var(--line); box-shadow:var(--shadow-md); }
/* Base tints the evidence panel with the resource's own brand color
   (--fb), which is picked per-project and can be anything — a cool blue
   (as on a cool-branded project) reads flat and muddy gray-lavender here,
   little of it gets mixed in. Use a fixed warm parchment instead so the
   panel is reliably inviting regardless of project color; the brand color
   still comes through via the band header above and the bullet dots. */
.finding-evidence { background:var(--band-sand); }
.finding-row .finding-card:nth-child(odd) { transform:rotate(-.5deg); }
.finding-row .finding-card:nth-child(even) { transform:rotate(.4deg); }
.findings-toggle { border-radius:14px; border:1px solid var(--line); }

/* ---- Carousel / embedded frame -------------------------------------------- */
.carousel-stage { border-radius:24px; }
.carousel-arrow { border-radius:50%; }
.carousel-dot { border-radius:50%; }
.fr-frame { border-radius:24px; }

/* ===========================================================================
   LOGIN PAGE
   =========================================================================== */
.login-card { border-radius:28px; border:1px solid var(--line); box-shadow:var(--shadow-lg); }

/* ===========================================================================
   404
   =========================================================================== */
.nf-mark { border:0; border-radius:58% 42% 63% 37% / 41% 55% 45% 59%; background-color:var(--accent-soft); }
.nf-mark::before { background-image:radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 56%); }
.nf-mark .nf-big { color:var(--accent-text); font-style:italic; }

/* ===========================================================================
   SETTINGS PANEL — light touch only (per the owner's brief): existing layout
   and controls are untouched; they just inherit the palette + fonts above.
   The one flourish is a warm accent-colored edge instead of the classic
   skin's hairline.
   =========================================================================== */
.settings-panel { border-left:6px solid var(--accent); }
