/* Studio Corolle - cobalt painted on tin-white, like azulejo and Carolina's own constellation mugs.
   Square corners, ruled structure, sentence-case labels, plain underlined links. */

@font-face { font-family: 'Zodiak'; src: url('/fonts/Zodiak-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url('/fonts/Zodiak-VariableItalic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/Switzer-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/Switzer-VariableItalic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #f5f1e8;        /* tin-white glaze */
  --paper-hi: #fbf8f2;
  --biscuit: #e9e1d2;      /* unglazed clay */
  --ink: #16285e;          /* cobalt, for text */
  --ink-2: #34447a;
  --cobalt: #1f3a8a;
  --cobalt-deep: #182d6c;
  --coral: #c4452b;        /* lobster red, accents only */
  --line: rgba(22, 40, 94, .24);
  --serif: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --sans: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(20px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); font-feature-settings: 'kern', 'liga'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: currentColor; transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 360; margin: 0; letter-spacing: -.015em; font-variation-settings: 'wght' 360; }
p { margin: 0 0 1em; }
cite { font-style: italic; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.site-head { padding: 26px 0 0; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cobalt); }
.brand span { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.005em; color: var(--ink); }
.mark { width: 40px; height: 40px; color: var(--cobalt); flex: none; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 34px; }
.site-nav a { text-decoration-color: transparent; font-size: 17px; font-weight: 450; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration-color: currentColor; }
.site-nav a:hover { text-decoration-color: var(--coral); }
.lang { padding-left: 30px; border-left: 1px solid var(--line); }
.menu-btn { display: none; font: 500 17px var(--sans); color: var(--ink); background: none; border: 1px solid var(--ink); padding: 9px 16px; cursor: pointer; }

/* ---------------------------------------------------------------- painted band */
.band { display: block; width: 100%; height: 18px; fill: var(--cobalt); margin: 0 0 44px; }
.band .dry { fill: var(--paper); }
.band-paper { fill: var(--paper); margin-bottom: 56px; }
.band-paper .dry { fill: var(--cobalt-deep); }

/* ---------------------------------------------------------------- common blocks */
.links { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 26px 0 0; }
.links a { font-weight: 500; font-size: 18px; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 32px; align-items: end; margin-bottom: 44px; }
.sec-head h2 { grid-column: 1 / 7; font-size: clamp(34px, 4vw, 60px); line-height: 1.04; }
.sec-head p { grid-column: 7 / 12; font-size: 19px; margin: 0; max-width: 46ch; }
.ix-no { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: .04em; font-variant-numeric: lining-nums; color: var(--cobalt); }
.series .ix-no { font-size: .5em; }
.btn { display: inline-block; font: 500 18px/1 var(--sans); color: var(--paper); background: var(--cobalt); border: 0; padding: 19px 32px; cursor: pointer; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--cobalt-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- home: hero + tile wall */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(40px, 5vw, 64px); align-items: end; }
.hero h1 { grid-column: 1 / 9; font-size: clamp(48px, 7.4vw, 118px); line-height: .98; letter-spacing: -.03em; font-weight: 330; font-variation-settings: 'wght' 330; max-width: 11ch; }
.hero-side { grid-column: 9 / 13; padding-bottom: .6em; }
.hero-side p { font-size: 19px; }
.hero-side .links { margin-top: 18px; }

.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tile { display: block; overflow: hidden; background: var(--biscuit); aspect-ratio: 1; }
.tile-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.025); }
.wall-cap { font-size: 16px; color: var(--ink-2); margin: 14px 0 0; max-width: 80ch; }

/* ---------------------------------------------------------------- home: series index */
.index { padding-top: clamp(72px, 9vw, 120px); }
.ix { border-bottom: 1px solid var(--line); }
.ix li { border-top: 1px solid var(--line); }
.ix a { display: grid; grid-template-columns: 70px minmax(0, 1.05fr) minmax(0, 1.4fr) 110px 96px; gap: 24px; align-items: center; padding: 20px 0; text-decoration: none; }
.ix-name { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; font-weight: 360; transition: color .2s; }
.ix-line { font-size: 17px; color: var(--ink-2); }
.ix-count { font-size: 16px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.ix-thumb { width: 96px; height: 96px; overflow: hidden; background: var(--biscuit); }
.ix-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ix a:hover .ix-name { color: var(--coral); }

/* ---------------------------------------------------------------- home: feature */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center; padding-top: clamp(88px, 11vw, 150px); padding-bottom: clamp(88px, 11vw, 150px); }
.feature-img { grid-column: 1 / 7; margin: 0; }
.feature-text { grid-column: 8 / 13; }
.feature-text h2 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.05; margin-bottom: 28px; }
.feature-text p { font-size: 19px; max-width: 44ch; }

/* ---------------------------------------------------------------- home: commission band */
.commission-band { background: var(--cobalt-deep); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0; }
.commission-band .sec-head h2, .commission-band h3 { color: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 1px solid rgba(245, 241, 232, .4); padding-top: 22px; }
.step-no { display: block; font-family: var(--serif); font-size: 58px; line-height: 1; font-weight: 280; font-variation-settings: 'wght' 280; margin-bottom: 26px; }
.steps h3 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.steps p { font-size: 17px; margin: 0; }
.commission-band .links { margin-top: 52px; }
.commission-band a:hover { text-decoration-color: var(--paper); }

/* ---------------------------------------------------------------- home: studio note */
.studio-note { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; padding-top: clamp(88px, 11vw, 140px); padding-bottom: clamp(56px, 7vw, 96px); }
.studio-note h2 { grid-column: 1 / 5; font-size: clamp(34px, 4vw, 60px); line-height: 1.04; }
.studio-note > div { grid-column: 6 / 12; }
.lede { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; font-weight: 360; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 32px; align-items: end; }
.page-head h1 { grid-column: 1 / 8; font-size: clamp(48px, 7vw, 108px); line-height: .98; letter-spacing: -.03em; font-weight: 330; font-variation-settings: 'wght' 330; }
.page-head > p { grid-column: 8 / 13; font-size: 19px; margin: 0 0 .4em; }
.toc { grid-column: 1 / 13; display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 28px; }
.toc a { font-size: 18px; font-weight: 500; }

.series { padding-top: clamp(48px, 6vw, 80px); }
.series .sec-head h2 { display: flex; align-items: baseline; gap: 22px; }
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 40px; align-items: start; }
.piece { margin: 0; scroll-margin-top: 24px; }
.piece img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--biscuit); }
.piece figcaption { padding-top: 18px; border-top: 0; }
.piece figcaption p { font-size: 17px; margin-bottom: .6em; max-width: 42ch; }
.piece .piece-title { font-family: var(--serif); font-size: 25px; line-height: 1.2; margin-bottom: 8px; display: flex; gap: 14px; align-items: baseline; }
.piece-no { font-family: var(--sans); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--cobalt); }
.piece:target img { outline: 2px solid var(--coral); outline-offset: 6px; }
.closing { padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(40px, 5vw, 64px); }
.closing h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.05; max-width: 18ch; }

/* commissions */
.cm-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cm-img { display: block; overflow: hidden; margin-bottom: 22px; background: var(--biscuit); }
.cm-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.cm-img:hover img { transform: scale(1.025); }
.cm-cols h2 { font-size: 28px; line-height: 1.15; margin-bottom: 14px; }
.cm-cols p { font-size: 17px; }
.slip-wrap { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(40px, 5vw, 64px); }
.slip { background: var(--paper-hi); border: 1.5px solid var(--ink); padding: clamp(24px, 4.5vw, 56px); max-width: 1000px; margin: 0 auto; }
.slip-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 26px; }
.slip-head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.mark-slip { width: 54px; height: 54px; }
.slip fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 30px 0 34px; min-width: 0; }
.slip legend { float: left; width: 100%; padding: 0; margin-bottom: 20px; font-family: var(--serif); font-size: 27px; line-height: 1.2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.slip legend + * { clear: both; }
.q-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); font: 500 16px/1 var(--sans); position: relative; top: -3px; }
.hint { font: 400 16px/1.5 var(--sans); color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--ink); cursor: pointer; font-size: 17px; line-height: 1.25; background: var(--paper-hi); transition: background .15s, color .15s; user-select: none; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .box { width: 16px; height: 16px; border: 1.5px solid currentColor; flex: none; position: relative; }
.opt:hover { background: var(--paper); }
.opt:has(input:checked) { background: var(--ink); color: var(--paper); }
.opt:has(input:checked) .box::after { content: ''; position: absolute; inset: 3px; background: currentColor; }
.opt:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.reveal { margin-top: 18px; max-width: 520px; }
.field { display: block; margin-top: 20px; }
.field > span:first-child, .field > span { display: block; font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: inline; font-weight: 400; margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 18px/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 10px 0; appearance: none; -webkit-appearance: none; }
.field textarea { border: 1.5px solid var(--ink); padding: 12px 14px; resize: vertical; min-height: 140px; }
.field select { padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316285e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--coral); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.grid-2 .field:first-child, .grid-2 .field:nth-child(2) { margin-top: 0; }
.opts-inline { margin-top: 6px; }
.opts-inline .opt { padding-top: 9px; padding-bottom: 9px; }
.hp { position: absolute; left: -9999px; }
.slip-foot { border-top: 1px solid var(--line); padding-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.slip-foot .hint { margin: 0; max-width: 44ch; }
.form-msg { flex-basis: 100%; margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.form-msg:empty { display: none; }
.form-msg.is-bad { color: var(--coral); }
.slip.is-sent fieldset, .slip.is-sent .slip-foot .btn, .slip.is-sent .slip-foot .hint, .slip.is-sent > .field { display: none; }
.slip.is-sent .slip-foot { border-top: 0; padding-top: 0; }
.slip.is-sent .form-msg { font-size: clamp(24px, 2.6vw, 32px); }

/* studio */
.studio { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; padding-bottom: clamp(40px, 5vw, 64px); }
.studio-imgs { grid-column: 1 / 6; }
.studio-img { margin: 0; }
.studio-img figcaption { font-size: 16px; color: var(--ink-2); margin-top: 10px; }
.studio-img-2 { width: 58%; margin: 40px 0 0 auto; }
.prose { grid-column: 7 / 12; }
.prose p { font-size: 19px; max-width: 60ch; }
.prose .lede { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 28px; }
.prose-legal { max-width: 720px; }
.prose-legal h2 { font-size: 30px; margin: 40px 0 12px; }

/* contact */
.contact { padding-bottom: clamp(40px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.facts { margin: 0; }
.facts div { border-top: 1px solid var(--line); padding: 16px 0 18px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; overflow-wrap: anywhere; }
.slip-short { margin: 0; max-width: none; }
.slip-short h2 { font-size: 34px; margin-bottom: 8px; }
.slip-short .slip-foot { margin-top: 30px; }

.nf { justify-items: start; }
.mark-big { width: 96px; height: 96px; grid-column: 1 / 13; }
.nf h1 { grid-column: 1 / 13; font-size: clamp(40px, 5vw, 72px); }
.nf .links { grid-column: 1 / 13; }

/* ---------------------------------------------------------------- footer */
.site-foot { padding: clamp(56px, 7vw, 96px) 0 40px; }
.band-foot { margin-bottom: 48px; }
.foot-grid { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 40px; }
.mark-foot { width: 64px; height: 64px; margin-bottom: 18px; }
.foot-brand .foot-name { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.foot-brand p:last-child { max-width: 36ch; font-size: 17px; }
.foot-h { font: 600 16px/1.4 var(--sans); letter-spacing: 0; margin-bottom: 12px; }
.foot-grid p, .foot-links { font-size: 17px; line-height: 1.9; }
.foot-small { margin: 56px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pieces { grid-template-columns: repeat(2, 1fr); }
  .ix a { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr) 80px; }
  .ix-count { display: none; }
  .ix-thumb { width: 80px; height: 80px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .site-head { padding-top: 18px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gut) 28px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { font-family: var(--serif); font-size: 34px; line-height: 1.3; }
  .lang { padding-left: 0; border-left: 0; padding-top: 12px; }
  .site-head { position: relative; }
  .hero, .sec-head, .feature, .studio-note, .page-head, .studio { grid-template-columns: 1fr; }
  .hero > *, .sec-head > *, .feature > *, .studio-note > *, .page-head > *, .studio > * { grid-column: 1 / -1 !important; }
  .studio-img-2 { width: 70%; }
  .hero { gap: 24px; }
  .hero h1 { max-width: 12ch; }
  .sec-head { gap: 16px; }
  .feature { gap: 36px; }
  .cm-cols, .contact-grid, .foot-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .brand span { font-size: 22px; }
  .mark { width: 34px; height: 34px; }
  .wall { grid-template-columns: 1fr 1fr; gap: 4px; }
  .pieces { grid-template-columns: 1fr; gap: 52px; }
  .ix a { grid-template-columns: 40px minmax(0, 1fr) 72px; gap: 6px 14px; padding: 18px 0; }
  .ix-no { grid-row: 1; }
  .ix-name { grid-column: 2; }
  .ix-line { grid-column: 2; grid-row: 2; font-size: 16px; }
  .ix-thumb { grid-column: 3; grid-row: 1 / 3; width: 72px; height: 72px; }
  .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .field:nth-child(2) { margin-top: 20px; }
  .slip { border-width: 1px; }
  .opt { font-size: 16px; padding: 11px 14px 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
