@font-face {
  font-family: "Young Serif";
  src: url("fonts/YoungSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f5debe;
  --cream-soft: #fae9d2;
  --cream-deep: #e8ceab;
  --wheat: #debc8d;
  --ink: #1c170d;
  --ink-soft: #484238;
  --ink-faint: #726c5f;
  --orange: #f39e57;
  --orange-dark: #ae5f1d;
  --orange-light: #fbddc4;
  --moss: #616b45;
  --flax: #857655;
  --border: rgba(28, 23, 13, 0.16);
  --border-on-ink: rgba(245, 222, 190, 0.16);

  --display: "Young Serif", Cambria, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.25, 1);
  --lights: 1.8s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-synthesis: none;
  background: var(--cream);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-variant-ligatures: none;
  font-variant-numeric: lining-nums;
  background: var(--cream);
  color: var(--ink);
  transition: background-color var(--lights) var(--ease-soft), color var(--lights) var(--ease-soft);
}

/* ---------- The lights: the page ground follows the section in view ---------- */

[data-ground="ink"] { background: var(--ink); color: var(--cream); }
[data-ground="cream"] { background: var(--cream); color: var(--ink); }

/* With JS, sections go transparent and the body carries one ground that fades between them. */
.ground-js [data-ground] { background: transparent; color: inherit; }
.ground-js body[data-ground="ink"] { background: var(--ink); color: var(--cream); }
.ground-js body[data-ground="cream"] { background: var(--cream); color: var(--ink); }

html:has(body[data-ground="ink"]) { background: var(--ink); scrollbar-color: var(--ink-soft) var(--ink); }
html { scrollbar-color: var(--flax) var(--cream); transition: background-color var(--lights) var(--ease-soft); }

::selection { background: var(--orange-light); color: var(--ink); }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color 0.3s, text-decoration-thickness 0.3s;
}
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

img { display: block; max-width: 100%; height: auto; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--cream);
  padding: 8px 14px; z-index: 10; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 40px);
  padding: 24px var(--gutter) 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.bar a { text-decoration-color: transparent; }
.bar a:hover { text-decoration-color: var(--orange); }

/* ---------- Hero: the painting ---------- */

.hero {
  display: grid;
  place-items: center;
  padding: 4px 0 clamp(8px, 2vh, 20px);
  overflow: hidden;
}
.hero figure {
  position: relative;
  margin: 0;
  width: min(100%, calc((100svh - 64px) * 1.784 * 1.1));
  aspect-ratio: 2912 / 1632;
  /* Soft, brushed edge: the paper dissolves into the page along the painting's own strokes */
  -webkit-mask-image: url("img/foxstead-edge-mask.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("img/foxstead-edge-mask.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.hero .painting { width: 100%; height: 100%; object-fit: contain; }
.hero .film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

/* Intro: the fox leaps around the painted name, then the film dissolves into the
   still painting (assets/intro.js). The film sits inside the masked figure, so its
   edges dissolve into the page along the painting's own strokes. */
.js-intro .hero .painting { opacity: 0; }
.js-intro.intro-2 .hero .painting,
.js-intro.intro-done .hero .painting { opacity: 1; }
.js-intro.intro-1 .hero .film {
  opacity: 1;
  transition: opacity 0.9s var(--ease-soft);
}
.js-intro .bar,
.js-intro .after-hero { opacity: 0; }
.js-intro.intro-3 .bar,
.js-intro.intro-3 .after-hero {
  opacity: 1;
  transition: opacity 2s var(--ease-soft);
}

/* ---------- The dark room ---------- */

.room { padding: clamp(64px, 9vw, 120px) 0; }
.room + .room { padding-top: 0; }

.statement h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
}
.statement .tagline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: clamp(24px, 3vw, 36px) 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.statement .tagline::before {
  content: "";
  width: 56px;
  height: 3px;
  background: var(--orange);
  flex: none;
}

.twice-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.twice h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin: 0;
  max-width: 12ch;
}
.twice-copy p { margin: 0 0 1.1em; max-width: 58ch; }
.twice-copy p:last-child { margin: 0; }

.room-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 20ch;
}
.room-intro { margin: 0 0 clamp(32px, 4vw, 56px); max-width: 58ch; }

/* Three prints hung on the wall, at the heights a hand would hang them */
.prints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}
.print {
  background: var(--cream-soft);
  color: var(--ink);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 36px) clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.print:nth-child(2) { margin-top: clamp(32px, 5vw, 80px); }
.print:nth-child(3) { margin-top: clamp(16px, 2.5vw, 40px); }

.wordmark { height: 26px; width: auto; }
.wordmark.imprint { height: 36px; margin-top: -4px; margin-bottom: -6px; }
.text-mark { font-weight: 700; font-size: 1.7rem; line-height: 1; margin: 0; letter-spacing: -0.01em; }
.descriptor {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}
.print .example {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  margin: clamp(24px, 3vw, 36px) 0 clamp(20px, 2.4vw, 28px);
  padding-top: 20px;
  border-top: 3px solid var(--orange);
}
.print dl { margin: 0 0 32px; display: grid; gap: 16px; font-size: 0.94rem; line-height: 1.55; }
.print dt {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--ink);
}
.print dd { margin: 3px 0 0; }
.standing {
  margin: auto 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.88rem;
}
.standing a { color: var(--ink); font-weight: 700; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--moss);
  flex: none;
}
.status.live::before { background: var(--moss); }

/* ---------- Lights up: the close ---------- */

.close { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
.close h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 20px;
}
.close p { margin: 0; max-width: 58ch; }
.close .closing {
  border-top: 3px solid var(--orange);
  padding-top: 22px;
  margin-top: 44px;
  max-width: 34rem;
}
.close .closing a {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--orange-dark);
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, html { transition: none; }
  .js-intro .hero figure,
  .js-intro .hero img,
  .js-intro .hero .film,
  .js-intro .bar,
  .js-intro .after-hero { transform: none !important; opacity: 1 !important; filter: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .prints { grid-template-columns: 1fr; max-width: 560px; }
  .print { min-height: 0; }
  .print:nth-child(2), .print:nth-child(3) { margin-top: 0; }
  .twice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { justify-content: space-between; gap: 12px; font-size: 0.72rem; letter-spacing: 0.1em; }
  .hero { min-height: auto; padding-top: 32px; }
  .hero figure { width: 100%; }
}

/* ---------- Inner pages ---------- */

.bar.inner { justify-content: space-between; align-items: center; padding-top: 20px; }
.bar .home { display: block; text-decoration: none; }
.bar .home img { height: 34px; width: auto; }
.bar .links { display: flex; gap: clamp(18px, 3vw, 40px); }
.bar a[aria-current="page"] { text-decoration-color: var(--orange); }

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.page-head .wordmark { height: clamp(34px, 4.4vw, 56px); }
.page-head .wordmark.imprint { height: clamp(46px, 6vw, 76px); margin: 0; }
.page-head .text-mark { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head .descriptor { font-size: 1rem; margin-top: 18px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: clamp(28px, 4vw, 48px) 0 0;
  max-width: 18ch;
  text-wrap: balance;
}
.page-head .lead { margin: 28px 0 0; max-width: 56ch; font-size: 1.12rem; }

.facts {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
}
.facts h2 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.17em;
  text-transform: uppercase; margin: 0 0 20px;
  padding-top: 18px; border-top: 3px solid var(--orange);
}
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.3;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-on-ink);
}
.facts p { margin: 0 0 1em; }
.facts .status::before { border-color: var(--cream); }
.facts .status.live::before { background: var(--cream); }

.prose { max-width: 40rem; }
.prose h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15;
  margin: clamp(56px, 7vw, 88px) 0 18px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.endorse {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}

.big-mail {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  color: inherit;
  word-break: break-word;
  margin-top: 8px;
}
.routes { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.routes li {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--border-on-ink);
}
.routes li:last-child { border-bottom: 1px solid var(--border-on-ink); }
.routes strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }

.print .more { margin-top: 14px; }
.print .more a { font-weight: 700; }

@media (max-width: 960px) {
  .facts { grid-template-columns: 1fr; }
  .routes li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .bar.inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bar .home img { height: 32px; }
}

/* ---------- Menu: The Stead opens to its three pages ---------- */

.menu { position: relative; }
.menu > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.sub {
  position: absolute;
  top: calc(100% + 10px);
  right: -18px;
  z-index: 5;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 15rem;
  background: var(--cream-soft);
  color: var(--ink);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft), visibility 0.35s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu:hover .sub,
.menu:focus-within .sub,
.menu.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a {
  display: block;
  padding: 9px 18px;
  text-decoration: none;
  letter-spacing: 0.12em;
}
.sub a:hover, .sub a:focus-visible { background: var(--cream); text-decoration: underline; text-decoration-color: var(--orange); }
.sub small { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-size: 0.8rem; margin-top: 2px; }

/* ---------- Fox Findings card on the home page: its own identity, no second fox ---------- */

.print.findings { background: #849896; color: #faebc2; padding-top: 0; overflow: hidden; }
.print.findings .text-mark { font-family: "Cinzel", var(--display); font-weight: 700; letter-spacing: 0.14em; font-size: 1.35rem; text-transform: uppercase; color: #faebc2; }
.print.findings .descriptor, .print.findings dt, .print.findings dd, .print.findings .standing { color: #faebc2; }
.print.findings .example { border-top-color: #a87c34; }
.print.findings .standing { border-top-color: rgba(250, 235, 194, 0.3); }
.print.findings .standing a { color: #faebc2; text-decoration-color: #d1792f; }
.print.findings .status::before { border-color: #faebc2; }

/* ---------- About: who keeps the stead ---------- */

.keeper { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.keeper img { width: 100%; height: auto; aspect-ratio: 670 / 766; object-fit: cover; border: 2px solid var(--ink); }
@media (max-width: 700px) { .keeper { grid-template-columns: 1fr; } .keeper img { max-width: 240px; } }
@media (max-width: 560px) { .sub { right: auto; left: -18px; } }

/* ---------- Home cards that carry their business's own image ---------- */
@font-face { font-family: "Patrick Hand"; src: url("brands/curriculum/PatrickHand-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("brands/curriculum/SourceSans3-VF.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

.print .card-art {
  display: block;
  width: calc(100% + 2 * clamp(24px, 2.6vw, 36px));
  max-width: none;
  height: auto;
  margin: 0 calc(-1 * clamp(24px, 2.6vw, 36px)) 22px;
}
.print.findings, .print.curriculum { padding-top: 0; overflow: hidden; }

/* Fox Curriculum card: foxcurriculum.com's paper, wobble corners, Source Sans 3, and its dark button */
.print.curriculum {
  background: #fdf6ea;
  border: 1.5px solid rgba(28, 23, 13, 0.3);
  border-radius: 14px 7px 17px 8px / 8px 18px 7px 15px;
  font-family: "Source Sans 3", var(--body);
}
.print.curriculum .example { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
.print.curriculum .example { border-top-color: var(--orange); }
.print.curriculum .standing a {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: var(--ink); color: var(--cream-soft);
  border: 2px solid var(--ink);
  border-radius: 9px 5px 11px 6px / 6px 11px 5px 9px;
  box-shadow: 3px 4px 0 rgba(28, 23, 13, 0.14);
  text-decoration: none; font-weight: 600;
}
.print.curriculum .standing a:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.print.curriculum .standing { align-items: center; }

/* About: who keeps the stead leads the page */
.about-head { padding-bottom: clamp(40px, 5vw, 64px); }
.about-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.about-head .lead { margin-top: 16px; }
.about-head .closing { border-top: 3px solid var(--orange); padding-top: 18px; margin: 28px 0 0; max-width: 30rem; }
.about-head .closing a { font-weight: 700; color: var(--orange-dark); font-size: 1.1rem; }
.about-head + .room .prose h2 { margin-top: clamp(40px, 5vw, 56px); }
.about-head + .room .prose h2:first-child { margin-top: 0; }

/* ---------- Text embellishments ---------- */
strong, b { font-weight: 700; }
em { font-style: italic; }

/* A word boxed in a thin hand-ruled frame */
.box {
  display: inline-block;
  padding: 0 0.3em;
  margin: 0 0.05em;
  border: 1.5px solid currentColor;
  border-radius: 3px 5px 2px 6px / 5px 2px 6px 3px;
  line-height: 1.35;
}
/* A phrase carried on a brush-orange underline */
.stroke {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}
/* Emphasis on dark ground picks up the coat */
body[data-ground="ink"] .room em { color: var(--cream); }
.statement .stroke { text-decoration-thickness: 0.09em; }
.print .box { font-size: 0.95em; }

/* ---------- Headings in a hand, after the painted FoxStead lettering ----------
   Headings only, and only on FoxStead's own pages (home, About, Contact).
   Body text stays in the reading face. The business pages keep their own brands. */
@font-face {
  font-family: "Reenie Beanie";
  src: url("fonts/ReenieBeanie-Latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
.house .statement h1,
.house .room-head,
.house .close h2,
.house .page-head h1,
.house .prose h2 {
  font-family: "Reenie Beanie", var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  -webkit-text-stroke: 0.025em currentColor;
}
.house .statement h1 { font-size: clamp(3.4rem, 8.6vw, 7.4rem); max-width: 17ch; }
.house .room-head, .house .close h2 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
.house .prose h2 { font-size: clamp(2.5rem, 4vw, 3.4rem); max-width: none; width: max-content; max-width: min(100vw - 48px, 60rem); }
.house .page-head h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
.house .about-head h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); max-width: none; }

/* ---------- Phones ----------
   Thumb-sized targets, labels at 13px or more, and a menu that fits the screen. */
@media (max-width: 700px) {
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: rgba(243, 158, 87, 0.25); }

  .bar { font-size: 0.82rem; letter-spacing: 0.08em; padding-top: 10px; }
  .bar.inner { gap: 4px; padding-top: 14px; }
  .bar .links { flex-wrap: wrap; gap: 0 22px; }
  .bar .links > a,
  .menu > a { display: inline-flex; align-items: center; min-height: 44px; }
  .bar .home { padding: 6px 0; }
  .bar .home img { height: 36px; }

  .sub { top: 100%; min-width: min(19rem, calc(100vw - 2 * var(--gutter))); }
  .sub a { padding: 13px 18px; letter-spacing: 0.08em; }
  .sub small { font-size: 0.84rem; margin-top: 3px; }

  .statement .tagline { font-size: 0.84rem; letter-spacing: 0.12em; gap: 14px; }
  .statement .tagline::before { width: 36px; }
  .print dt { font-size: 0.82rem; letter-spacing: 0.12em; }
  .standing { font-size: 0.95rem; align-items: center; }
  .standing a,
  .print .more a,
  .closing a { display: inline-block; padding: 11px 0; overflow-wrap: anywhere; }
  footer { font-size: 0.84rem; }
}

/* ---------- The orange frame around the whole site, as foxcurriculum.com does ---------- */
:root { --frame: 22px; --frame-radius: 30px; }
html, html:has(body[data-ground="ink"]) { background: var(--orange); }
body, .ground-js body[data-ground="ink"], .ground-js body[data-ground="cream"] { background: var(--orange); padding: var(--frame); }
.site-frame {
  background: var(--cream);
  border: 3px solid var(--cream-soft);
  border-radius: var(--frame-radius);
  overflow: clip;
  box-shadow: 0 30px 60px -30px rgba(28, 23, 13, 0.35);
  min-height: calc(100svh - 2 * var(--frame));
  transition: background-color var(--lights) var(--ease-soft);
}
.ground-js body[data-ground="ink"] .site-frame { background: var(--ink); }
.skip:focus { top: calc(var(--frame) + 12px); left: calc(var(--frame) + 12px); }
/* Brand pages frame in their own color: Fox Findings never shares a surface with the house orange */
html:has(body.brand-findings), body.brand-findings { background: #849698; }
.brand-findings .site-frame { background: var(--ff-cream); border-color: #f4efe0; }
.brand-curriculum .site-frame { background: var(--cream); }

/* ---------- Words that rise into place ---------- */
.reveal-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
.reveal-js [data-reveal].in,
.reveal-done [data-reveal] { opacity: 1; transform: none; }

/* ---------- Home: the contents of the house ---------- */
@font-face { font-family: "Nanum Brush Script"; src: url("fonts/NanumBrushScript-Latin.ttf") format("truetype"); font-display: swap; }

.fs-h {
  font-family: "Reenie Beanie", var(--display);
  font-weight: 400;
  -webkit-text-stroke: 0.025em currentColor;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}
.contents { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px); }
.contents .mast { margin-bottom: 8px; }
.contents .mast h1 { font-size: clamp(3rem, 5.6vw, 4.6rem); padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.contents-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); }

.toc { list-style: none; margin: 0; padding: 0; }
.toc .entry { padding: 30px 0; border-bottom: 1px solid var(--border); }
.toc .row { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; gap: 18px; align-items: baseline; }
.toc .nm { text-decoration: none; color: inherit; }
.toc .nm:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.toc .dots { border-bottom: 2px dotted rgba(28, 23, 13, 0.4); transform: translateY(-8px); }
.toc .where { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.toc a.where { color: var(--orange-dark); text-decoration: underline; text-decoration-color: var(--orange); }
.toc .detail { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; margin-top: 16px; align-items: start; }
.toc .detail img { width: 132px; height: 99px; object-fit: cover; display: block; }
.toc .detail p { margin: 0 0 6px; line-height: 1.55; }
.toc .go { font-weight: 700; }

/* Fox Curriculum, in foxcurriculum.com's own type */
.entry.cur .nm { font-family: "Patrick Hand", "Source Sans 3", sans-serif; font-size: clamp(2.3rem, 3.8vw, 3.1rem); line-height: 1; }
.entry.cur .detail, .entry.cur .where { font-family: "Source Sans 3", var(--body); }
.entry.cur .d { color: var(--orange-dark); font-weight: 700; font-size: 0.92rem; }
.entry.cur .detail img { border: 2px solid var(--ink); border-radius: 9px 5px 11px 6px / 6px 11px 5px 9px; }
.entry.cur .go {
  display: inline-block; margin-top: 6px; padding: 9px 16px;
  background: var(--ink); color: var(--cream-soft); text-decoration: none; font-weight: 600; font-size: 0.88rem;
  border-radius: 9px 5px 11px 6px / 6px 11px 5px 9px; box-shadow: 3px 4px 0 rgba(28, 23, 13, 0.14);
}
.entry.cur .go:hover { background: var(--orange-dark); }

/* Fox Imprint, in its brush hand */
.entry.imp .nm { font-family: "Nanum Brush Script", cursive; font-size: clamp(2.8rem, 4.2vw, 3.6rem); line-height: 0.9; }
.entry.imp .detail img { background: var(--cream); object-fit: contain; border: 1.5px solid rgba(28, 23, 13, 0.3); }
.entry.imp .d { font-weight: 700; font-size: 0.92rem; }

/* Fox Findings, in its own brand */
.entry.fnd .nm { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: 0.14em; font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: #5d4f45; line-height: 1.1; }
.entry.fnd .detail, .entry.fnd .where { font-family: "Marcellus", Georgia, serif; color: #5d4f45; }
.entry.fnd .where { font-weight: 400; }
.entry.fnd .detail img { background: #849698; object-fit: contain; border: 1px solid #a87c34; }
.entry.fnd .d { color: #8a4f1c; font-size: 1rem; }
.entry.fnd a { text-decoration-color: #d1792f; }

.side { position: sticky; top: 24px; align-self: start; padding-top: 30px; }
.pull { background: var(--moss); color: var(--cream-soft); padding: 34px 32px; }
.pull .fs-h { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }
.pull .tag { margin: 20px 0 0; font-size: 1rem; }
.keeper-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; margin-top: 28px; align-items: center; }
.keeper-card img { width: 92px; height: auto; border: 2px solid var(--ink); display: block; }
.keeper-card .fs-h { font-size: 2.1rem; margin-bottom: 4px; }
.keeper-card p { margin: 0; font-size: 0.95rem; }
.keeper-card .roles { font-weight: 700; font-size: 1rem; }
.keeper-card .creds { color: var(--ink-soft); font-size: 0.9rem; margin: 2px 0 8px; }
.keeper-card a { color: var(--orange-dark); font-weight: 700; }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .contents-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .side { position: static; padding-top: 24px; }
}
@media (max-width: 720px) {
  :root { --frame: 10px; --frame-radius: 22px; }
  .toc .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .toc .dots { display: none; }
  .toc .detail { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .toc .detail img { width: 96px; height: 72px; }
  .toc .where { font-size: 0.85rem; }
  .pull { padding: 26px 22px; }
  .toc .go, .keeper-card a { display: inline-block; min-height: 44px; line-height: 44px; }
  .entry.cur .go { line-height: 1.2; min-height: 0; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Frame color per page: moss home, About, and Contact; orange Fox Curriculum, ink Fox Imprint, teal Fox Findings ---------- */
html:has(body.house), body.house, .ground-js body.house { background: var(--moss); }
html:has(body.brand-curriculum), body.brand-curriculum, .ground-js body.brand-curriculum { background: var(--orange); }
html:has(body.brand-imprint), body.brand-imprint, .ground-js body.brand-imprint { background: var(--ink); }
.brand-imprint .site-frame { border-color: var(--ink-soft); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.house .site-frame { box-shadow: 0 30px 60px -30px rgba(28, 23, 13, 0.45); }

/* The business foxes sit whole in their thumbnails, never cropped */
.entry.cur .detail img { object-fit: contain; background: var(--cream); }
/* Thumbnail borders: moss around the book fox, ink around the paw fox */
.entry.cur .detail img { border: 2.5px solid var(--moss); }
.entry.imp .detail img { border: 2.5px solid var(--ink); }

/* ---------- Fox Findings type, self-hosted (Latin subsets of Cinzel Bold, Fraunces 500-600, Marcellus; SIL Open Font License) ---------- */
@font-face { font-family: "Cinzel"; src: url("brands/findings/Cinzel-Bold-Latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("brands/findings/Fraunces-Latin.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("brands/findings/Marcellus-Latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
