/* Shared foundation for concepts 04–06. Each variant adds its own palette, fonts and layout. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
main:focus { outline: none; }
section[id], article[id] { scroll-margin-top: 24px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
p, li, dd { overflow-wrap: break-word; }
.multiline { white-space: pre-line; }
.icon { flex: none; width: 1.1em; height: 1.1em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: #111; color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }

.lang { position: relative; display: inline-flex; align-items: center; flex: none; }
.lang select { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.lang .chevron { position: absolute; right: 14px; pointer-events: none; }

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

/* 04 · Sunspot — a cat asleep in the window light. Warm linen, sun, terracotta and olive. */
@font-face { font-family: 'Nunito XXC'; src: url('fonts/nunito-var.woff2?v=908aa17e23') format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --linen: #F5ECDF;
  --cream: #FFF9F1;
  --sun: #F6C46A;
  --sun-soft: #FADFA8;
  --sun-pale: #FCEBC8;
  --terracotta: #A63F25;
  --terracotta-deep: #86311B;
  --olive: #56602F;
  --sage: #DCE3C6;
  --peach: #F8D5C2;
  --butter: #F8E7AE;
  --ink: #2B211B;
  --muted: #6A5546;
  --line: #E6D6C2;
  --radius: 28px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --shadow: 0 1px 0 rgba(122, 82, 50, .08), 0 18px 40px -22px rgba(122, 72, 40, .45);
}

body.sunspot { background: var(--linen); color: var(--ink); font: 500 17px/1.65 'Nunito XXC', 'Nunito', system-ui, sans-serif; }
.sunspot ::selection { background: var(--sun); color: var(--ink); }
.sunspot a:focus-visible, .sunspot select:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; border-radius: 14px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1360px; margin: 0 auto; padding: 26px var(--gutter); }
.brand { display: block; flex: none; width: 124px; border-radius: 12px; }
.site-nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.site-nav a { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--sun-soft); }
.lang select { padding: 11px 40px 11px 18px; border: 0; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; }
.lang select:hover { background: var(--sun-pale); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); max-width: 1360px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(40px, 6vw, 88px); }
.badge { display: inline-flex; align-items: center; gap: 4px 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.badge-sun { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 45%, transparent 47%), repeating-conic-gradient(var(--sun) 0 12deg, transparent 12deg 30deg); flex: none; }
.h-line { text-wrap: balance; }
.badge-name { white-space: nowrap; }
.hero h1 { margin: 26px 0 26px; font-weight: 900; font-size: clamp(46px, 7.4vw, 112px); line-height: .95; letter-spacing: -.035em; }
.h-line { display: block; }
.h-accent { color: var(--terracotta); }
.hero-intro { max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--cream); box-shadow: 0 10px 22px -12px rgba(134, 49, 27, .8); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-soft { background: var(--sun-soft); color: var(--ink); }
.btn-soft:hover { background: var(--sun); }
.btn-outline { color: var(--terracotta); box-shadow: inset 0 0 0 2px var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: var(--cream); }
.btn .domain { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

.sunroom { position: relative; }
.sunroom-art { position: relative; aspect-ratio: 1 / .92; overflow: hidden; }
.window-light { position: absolute; left: 1%; right: 13%; bottom: 6%; height: 62%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4.5%; transform: perspective(900px) rotateX(48deg) skewX(-22deg); transform-origin: bottom center; }
.window-light i { border-radius: 22px; background: linear-gradient(160deg, var(--sun-soft), var(--sun)); opacity: .95; }
.window-light i:nth-child(2) { background: linear-gradient(160deg, var(--sun-pale), var(--sun-soft)); }
.window-light i:nth-child(3) { background: linear-gradient(160deg, var(--sun), #F3B451); }
.sun-cat { position: absolute; left: 21%; bottom: 13%; width: 58%; }
.plant { position: absolute; right: 2%; bottom: 17%; width: 17%; filter: drop-shadow(0 14px 10px rgba(140, 86, 30, .22)); }
.zz { position: absolute; left: 78%; top: 25%; display: flex; gap: 2px; color: var(--olive); font-weight: 900; }
.zz b { display: block; font-size: clamp(18px, 2.2vw, 30px); animation: drift 5s ease-in-out infinite; }
.zz b:nth-child(2) { font-size: clamp(22px, 2.7vw, 38px); transform: translateY(-14px); animation-delay: .8s; }
.zz b:nth-child(3) { font-size: clamp(27px, 3.2vw, 46px); transform: translateY(-30px); animation-delay: 1.6s; }
@keyframes drift { 0%, 100% { opacity: .35; translate: 0 6px; } 50% { opacity: 1; translate: 0 -6px; } }

/* Transitional note */
.sun-note { padding: 0 var(--gutter) clamp(48px, 6vw, 80px); }
.sun-note p { max-width: 900px; margin: 0 auto; text-align: center; font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.015em; }

/* Portfolio */
.portfolio { position: relative; background: var(--cream); padding: clamp(64px, 8vw, 120px) var(--gutter); }
.portfolio::before { content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: var(--cream); -webkit-mask: radial-gradient(60px 40px at 60px 40px, #000 98%, transparent) 0 0 / 120px 40px repeat-x; mask: radial-gradient(60px 40px at 60px 40px, #000 98%, transparent) 0 0 / 120px 40px repeat-x; }
.wrap { max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 72px); text-align: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sage); color: var(--olive); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2, .about h2, .closing h2 { margin: 18px 0 14px; font-weight: 900; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.03em; }
.section-intro { font-size: 18px; color: var(--muted); }

.project { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px); }
.project + .project { margin-top: clamp(56px, 7vw, 104px); }
.project-2 .photo { order: 2; }
.photo { padding: 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transform: rotate(-1.4deg); }
.project-2 .photo { transform: rotate(1.4deg); }
.photo img { width: 100%; border-radius: 16px; aspect-ratio: 1440 / 980; object-fit: cover; }
.project-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 14px; }
.project h3 { margin: 16px 0 12px; font-weight: 900; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.025em; }
.project-desc { color: var(--muted); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--sage); color: #4A5328; font-weight: 700; font-size: 14px; }

/* About */
.about { padding: clamp(72px, 9vw, 128px) var(--gutter); }
.about-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); max-width: 1180px; margin: 0 auto; padding: clamp(32px, 5vw, 72px); border-radius: 48px; background: var(--butter); }
.about-cat { position: relative; display: grid; place-items: center; width: clamp(180px, 20vw, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.about-cat-img { width: 74%; transform: translate(-2%, 2%); }
.about .eyebrow { background: var(--cream); }
.body-large { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; }
.ai-note { margin-top: 18px; padding-top: 18px; border-top: 2px dashed rgba(106, 85, 70, .3); color: #5E4A3C; font-size: 16px; }

/* Approach */
.approach { padding: 0 var(--gutter) clamp(72px, 9vw, 128px); }
.approach .section-head h2 { margin-bottom: 0; }
.cushions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1240px; margin: 0 auto; }
.cushion { padding: 34px 30px 36px; border-radius: 48px 48px 48px 48px / 40px 40px 56px 56px; background: var(--peach); box-shadow: inset 0 -10px 0 rgba(43, 33, 27, .05); }
.cushion-2 { background: var(--sage); }
.cushion-3 { background: var(--sun-pale); }
.cushion-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--cream); color: var(--terracotta); }
.cushion-icon svg { width: 34px; height: 34px; }
.cushion h3 { margin: 22px 0 8px; font-weight: 900; font-size: 26px; letter-spacing: -.02em; }
.cushion p { color: #4E3F35; }

/* Quote */
.quote-block { padding: clamp(56px, 7vw, 104px) var(--gutter); background: var(--sun); }
.quote-block blockquote { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; }
.quote-block blockquote::before { content: '“'; display: block; height: .5em; font-weight: 900; font-size: 120px; line-height: 1; color: var(--terracotta); }
.quote-block p { font-weight: 900; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.15; letter-spacing: -.025em; }

/* Closing */
.closing { padding: clamp(72px, 9vw, 128px) var(--gutter); text-align: center; }
.closing-card { max-width: 820px; margin: 0 auto; }
.closing p { color: var(--muted); font-size: 19px; }
.closing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; padding: 34px var(--gutter); background: var(--ink); color: #E9DCCB; font-size: 15px; }
.footer-brand, .footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-brand span:first-child { font-weight: 900; color: var(--cream); }
.site-footer a { color: var(--sun); text-underline-offset: 4px; }
.back-top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.back-top:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--sun); }

.btn > span { white-space: nowrap; }
.btn { flex-wrap: wrap; row-gap: 2px; }

[data-tagline="long"] .hero h1 { font-size: clamp(42px, 5.9vw, 90px); }
[data-tagline="xlong"] .hero h1 { font-size: clamp(38px, 4.7vw, 70px); }

/* Tablet */
@media (max-width: 1060px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: center; }
  .hero { grid-template-columns: 1fr; }
  .sunroom { max-width: 620px; width: 100%; margin: 0 auto; }
  .project, .project-2 { grid-template-columns: 1fr; }
  .project-2 .photo { order: 0; }
  .cushions { grid-template-columns: 1fr; max-width: 640px; }
}

/* Phone */
@media (max-width: 640px) {
  body.sunspot { font-size: 16px; }
  .site-header { padding-top: 18px; padding-bottom: 14px; gap: 14px; }
  .brand { width: 98px; }
  .site-nav { gap: 2px; padding: 4px; }
  .site-nav a { flex: 1; padding: 8px 6px; text-align: center; font-size: 14px; }
  .lang select { padding: 9px 34px 9px 14px; font-size: 13px; }
  .lang .chevron { right: 11px; }
  .hero h1 { margin: 20px 0; font-size: clamp(38px, 11.6vw, 60px); }
  [data-tagline="long"] .hero h1 { font-size: clamp(34px, 10.2vw, 52px); }
  [data-tagline="xlong"] .hero h1 { font-size: clamp(32px, 9.4vw, 48px); }
  .badge { font-size: 12.5px; }
  .btn { width: 100%; }
  .sun-note p { font-size: 21px; }
  .photo { padding: 8px; border-radius: 20px; }
  .photo img { border-radius: 13px; }
  .about-card { grid-template-columns: 1fr; border-radius: 32px; }
  .about-cat { width: 150px; }
  .cushion { padding: 26px 22px 28px; border-radius: 36px; }
  .quote-block blockquote::before { font-size: 88px; }
  .site-footer { flex-direction: column; }
}

/* Release additions (scripts/build-release.py): language menu, footer language links and the 404 page. */
.lang-menu { position: relative; flex: none; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 18px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; line-height: 1.4; list-style: none; cursor: pointer; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--sun-pale); }
.sunspot .lang-menu summary:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
.lang-menu .chevron { transition: transform .2s; }
.lang-menu[open] .chevron { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; gap: 2px; min-width: 200px; padding: 6px; border-radius: 20px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.lang-list a { display: block; padding: 9px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; text-decoration: none; }
.lang-list a:hover { background: var(--sun-pale); }
.lang-list a[aria-current] { background: var(--sun-soft); }
.sunspot .lang-list a:focus-visible { outline-offset: -3px; border-radius: 14px; }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer-langs a { text-decoration: none; }
.footer-langs a:hover { text-decoration: underline; }
.footer-langs a[aria-current] { color: var(--cream); font-weight: 800; }
.notfound-main { display: grid; justify-items: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(72px, 9vw, 120px); text-align: center; }
.notfound-main h1 { font-weight: 900; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.notfound-main p { color: var(--muted); font-size: 18px; }
.notfound-main .about-cat { width: clamp(150px, 18vw, 210px); }
.notfound-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.notfound-langs .btn { min-height: 46px; padding: 10px 20px; }
@media (max-width: 640px) {
  .lang-menu summary { padding: 9px 12px 9px 14px; font-size: 13px; gap: 8px; }
  .notfound-langs .btn { width: auto; }
}
