/* Stoney Hill Studio: the Toybox look.
   Warm paper ground, soft Fraunces headlines, Nunito Sans body, terracotta accent,
   and rounded "toy" tiles in a small family of muted colours. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/assets/fonts/nunito-sans-normal.woff2) format("woff2"); }

:root {
  --bg: #FBF4E9;
  --paper: #FFFDF8;
  --ink: #2B2522;
  --muted: #5B5049;
  --soft-ink: #4B413B;
  --line: #EADCC6;
  --accent: #B0532B;
  --accent-soft: #FFF1E8;

  --peach: #F2D8B8;
  --honey: #F3E3B5;
  --lavender: #E1DCEB;
  --mint: #CFE0D8;
  --sage: #D5DDCB;
  --amber: #F0A23B;
  --teal: #0E7C74;
  --slate: #3F4C5A;
  --yellow: #E9C46A;
  --seafoam: #8BB8A8;
  --blush: #F6E3D3;
  --stripe: #E8BFA0;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; color: var(--bg); }

.soft { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: clamp(64px, 8vw, 96px); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
em { font-style: italic; }
.accent { color: var(--accent); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 28px; border-radius: 16px; background: var(--accent); color: #FFFFFF; font-size: 17px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover { color: #FFFFFF; background: #9A4523; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #000000; color: var(--bg); }
.btn--light { background: #FFFFFF; color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--small { min-height: 42px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.link { font-size: 17px; font-weight: 800; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 22px; font-weight: 600; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 800; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav .btn { color: var(--bg); }
.menu { display: none; position: relative; }
.menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bg); }
.menu ul { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; min-width: 220px; padding: 10px; border-radius: 20px; background: var(--paper); border: 2px solid var(--line); box-shadow: 0 18px 40px rgba(60,40,20,.14); }
.menu li a { display: block; padding: 12px 14px; border-radius: 12px; font-size: 17px; font-weight: 800; text-decoration: none; }
.menu li a:hover { background: var(--bg); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-block: 24px 24px; }
.hero__text { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-weight: 500; font-size: clamp(46px, 5.8vw, 86px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { color: var(--accent); }

.toys { flex: 1 1 460px; max-width: 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.toy { aspect-ratio: 1; border-radius: 22px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .3s ease; }
.toy:nth-child(odd):hover { transform: rotate(-4deg) scale(1.03); }
.toy:nth-child(even):hover { transform: rotate(4deg) scale(1.03); }
.toy--circle { background: var(--peach); }
.toy--circle span { width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.toy--ring { background: var(--ink); }
.toy--ring span { width: 56%; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--amber); }
.toy--dome { background: var(--mint); align-items: flex-end; }
.toy--dome span { width: 70%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--teal); }
.toy--peak { background: var(--yellow); }
.toy--peak span { width: 50%; aspect-ratio: 1; background: var(--ink); clip-path: polygon(50% 6%, 96% 92%, 4% 92%); }
.toy--cairn { background: var(--paper); border: 2px solid #E6D8C3; }
.toy--cairn svg { width: 58%; height: auto; }
.toy--stripes { background-color: var(--blush); background-image: repeating-linear-gradient(135deg, var(--stripe) 0 10px, transparent 10px 22px); }
.toy--dots { background: var(--seafoam); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; justify-content: stretch; gap: 10px; padding: 18%; }
.toy--dots span { border-radius: 50%; background: var(--ink); }
.toy--dots span:nth-child(1), .toy--dots span:nth-child(4) { background: var(--bg); }
.toy--diamond { background: var(--slate); }
.toy--diamond span { width: 46%; aspect-ratio: 1; border-radius: 10px; background: var(--peach); transform: rotate(45deg); }
.toy--bars { background: var(--amber); gap: 8%; }
.toy--bars span { width: 14%; border-radius: 999px; background: var(--ink); }
.toy--bars span:nth-child(1) { height: 54%; }
.toy--bars span:nth-child(2) { height: 34%; }
.toy--bars span:nth-child(3) { height: 70%; }

/* ---------- section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 32px; }
.section-head h2, .h2 { font-weight: 500; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.015em; }
.section-head p { max-width: 440px; font-size: 18px; color: var(--muted); }

/* ---------- project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.card { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; padding: 18px 18px 26px; border-radius: 28px; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.card--wide { grid-column: span 3; }
.card:hover { color: var(--ink); transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 18px 36px rgba(60,40,20,.14); }
.card__shot { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 10px 24px rgba(60,40,20,.12); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.card__title { font-size: 34px; font-weight: 600; line-height: 1.05; }
.card__body p { font-size: 16px; line-height: 1.6; color: var(--soft-ink); }
.pill-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 4px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.7); font-size: 13px; font-weight: 800; }
.bg-peach { background: var(--peach); } .bg-honey { background: var(--honey); } .bg-lavender { background: var(--lavender); }
.bg-mint { background: var(--mint); } .bg-sage { background: var(--sage); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card, .card--wide { grid-column: span 1; } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- what's in the box ---------- */
.box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.box__item { min-height: 280px; border-radius: 28px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.box__item h3 { font-size: 36px; font-weight: 600; }
.box__item p { font-size: 17px; line-height: 1.6; color: var(--soft-ink); }
.box__item--dark { background: var(--ink); color: var(--bg); }
.box__item--dark p { color: #D9CDBF; }
.shape { display: block; }
.shape--circle { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); }
.shape--ring { width: 64px; height: 64px; border-radius: 50%; border: 11px solid var(--amber); }
.shape--dome { width: 72px; height: 36px; border-radius: 999px 999px 0 0; background: var(--teal); }

/* ---------- house rules ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.rule { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 24px; background: var(--paper); border: 2px solid var(--line); }
.rule h3 { font-size: 26px; font-weight: 600; line-height: 1.1; }
.rule p { font-size: 16px; color: var(--muted); }
.mark { width: 34px; height: 34px; }
.mark--circle { border-radius: 50%; background: var(--accent); }
.mark--diamond { border-radius: 8px; background: var(--amber); transform: rotate(45deg) scale(.85); }
.mark--dome { height: 34px; border-radius: 999px 999px 0 0; background: var(--teal); }
.mark--square { border-radius: 8px; background: var(--slate); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 18px/1 var(--body); }
.step h3 { font-size: 26px; font-weight: 600; line-height: 1.1; }
.step p { font-size: 16px; color: var(--soft-ink); }

/* ---------- call to action ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; background: var(--accent); color: #FFFFFF; padding: clamp(32px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta__text { flex: 1 1 420px; max-width: 660px; display: flex; flex-direction: column; gap: 18px; }
.cta h2 { font-weight: 500; font-size: clamp(42px, 5vw, 76px); line-height: 1.0; letter-spacing: -0.02em; }
.cta p { font-size: 19px; color: var(--accent-soft); }
.cta a:not(.btn) { color: #FFFFFF; font-weight: 700; }
.cta__shapes { flex: 0 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cta__shapes span { aspect-ratio: 1; }
.cta__shapes span:nth-child(1) { border-radius: 50%; background: var(--peach); }
.cta__shapes span:nth-child(2) { border-radius: 22px; background: var(--ink); }
.cta__shapes span:nth-child(3) { border-radius: 22px; background-color: rgba(255,255,255,.18); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.4) 0 8px, transparent 8px 18px); }
.cta__shapes span:nth-child(4) { background: var(--amber); clip-path: polygon(50% 6%, 96% 92%, 4% 92%); }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(56px, 7vw, 88px); border-top: 2px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; padding-block: 32px 44px; font-size: 15px; font-weight: 600; color: var(--muted); }
.site-foot .about { display: flex; flex-direction: column; gap: 6px; }
.foot-cols nav { display: flex; flex-direction: column; }
.site-foot a { text-decoration: none; }
.site-foot .dot { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: -1px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.foot-cols h2 { margin-bottom: 8px; font: 800 12px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.foot-cols ul { display: flex; flex-direction: column; gap: 6px; }

/* ---------- page intro (inner pages) ---------- */
.intro { display: flex; flex-direction: column; gap: 22px; max-width: 900px; padding-block: 32px 8px; }
.intro h1 { font-weight: 500; font-size: clamp(44px, 5.6vw, 82px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
.intro h1 em { color: var(--accent); }
.crumb { display: flex; gap: 8px; font-size: 15px; font-weight: 800; color: var(--muted); }
.crumb a { text-decoration: none; }

/* ---------- case study ---------- */
.case-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-block: 24px 36px; }
.case-head__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; }
.case-head h1 { font-weight: 600; font-size: clamp(52px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.025em; }
.case-head .pitch { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; }
.shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 20px; padding: 20px; border-radius: 32px; align-items: start; }
.shots--single { grid-template-columns: minmax(0, 1fr); }
.shots--single figure { width: 100%; max-width: 1120px; justify-self: center; }
.case-head .tag { background: var(--paper); border: 2px solid var(--line); }
.shots figure { border-radius: 20px; overflow: hidden; box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 14px 30px rgba(60,40,20,.14); background: var(--paper); }
.shots figure img { width: 100%; }
.shots .phone { border-radius: 26px; border: 8px solid var(--ink); aspect-ratio: 1 / 2; }
.shots .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 760px) { .shots { grid-template-columns: minmax(0, 1fr); } .shots .phone { width: min(260px, 70%); justify-self: center; } }
.case-body { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: clamp(48px, 6vw, 80px); }
.case-main { flex: 2 1 560px; display: flex; flex-direction: column; gap: 44px; }
.case-main section { display: flex; flex-direction: column; gap: 16px; }
.case-main h2 { font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.1; }
.case-main p { font-size: 18px; color: var(--soft-ink); max-width: 720px; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-size: 18px; color: var(--soft-ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.ticks li:nth-child(4n+2)::before { border-radius: 5px; background: var(--amber); transform: rotate(45deg) scale(.85); }
.ticks li:nth-child(4n+3)::before { border-radius: 999px 999px 0 0; height: 9px; top: 11px; background: var(--teal); }
.ticks li:nth-child(4n+4)::before { border-radius: 5px; background: var(--slate); }
.facts { flex: 1 1 300px; align-self: flex-start; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 28px; background: var(--paper); border: 2px solid var(--line); }
.facts dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.facts dt { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.score { padding: 20px; border-radius: 22px; background: var(--paper); border: 2px solid var(--line); }
.score b { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 34px; font-weight: 600; line-height: 1; white-space: nowrap; }
.score span { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(24px, 4vw, 44px); border-radius: 28px; text-decoration: none; }
.next:hover { color: var(--ink); }
.next__label { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.next strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.05; }

/* ---------- contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.contact__main { flex: 2 1 520px; display: flex; flex-direction: column; gap: 24px; }
.email { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(30px, 4vw, 54px); font-weight: 600; line-height: 1.05; color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.note { flex: 1 1 320px; padding: 28px; border-radius: 28px; background: var(--honey); display: flex; flex-direction: column; gap: 14px; }
.note h2 { font-size: 26px; font-weight: 600; }

/* ---------- 404 ---------- */
.lost { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-block: 40px; }
.lost .toys { max-width: 360px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
