/* caracoley.org — Cara Coley Studio
   Warm cream ground, soft-rounded tan "folder" panels, dark chocolate blocks with brown circle
   icons, a script accent word beside a heavy uppercase display word, numbered chips, and real
   photographs. Faces: Anton (display), Great Vibes (the accent word), Montserrat (everything else).
   All three are self-hosted latin subsets under /fonts. */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/anton-400.woff2") format("woff2"); }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/greatvibes-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/montserrat-var.woff2") format("woff2"); }

:root {
  --cream: #fbf8f1;
  --tan: #e5dbcb;
  --tan-light: #efe8dc;
  --tan-deep: #d9cdb9;
  --choc: #2d2319;
  --choc-soft: #4a3b2b;
  --brown: #6e4d1e;
  --brown-mid: #8f6b3a;
  --brown-light: #b8955e;
  --paper: #f8f4ec;
  --paper-dim: #d9cfbf;
  --muted: #6b5f52;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;

  --r-folder: 36px;
  --r-block: 20px;
  --r-photo: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --consent-bg: var(--paper);
  --consent-fg: var(--choc);
  --consent-line: var(--tan-deep);
  --consent-accent: var(--brown);

  color-scheme: light;
}

/* ---------- Ground ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--brown-light) var(--tan-light); scrollbar-width: thin; }
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--choc); font: 400 1.0625rem/1.65 var(--sans); caret-color: var(--brown); -webkit-font-smoothing: antialiased; }
::selection { background: var(--brown); color: var(--paper); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration-color: var(--brown-light); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--brown); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; max-width: 66ch; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
strong { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--choc); color: var(--paper); padding: 8px 14px; z-index: 40; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type: the script word and the heavy word ---------- */

.title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .28em; }
.title .script { font-family: var(--script); color: var(--brown); font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: 0; font-weight: 400; }
.title .heavy { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1; letter-spacing: .01em; color: var(--choc); }
.title.small .script { font-size: clamp(2rem, 3.6vw, 3rem); }
.title.small .heavy { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
.title.on-dark .script { color: var(--brown-light); }
.title.on-dark .heavy { color: var(--paper); }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--choc-soft); }
.eyebrow-year { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; color: var(--choc); }

/* ---------- Folders, blocks, chips ---------- */

/* A tan folder: big soft corners, a lighter tab rising from the top left and, when asked, a brown
   tab at the top right. The tabs are drawn behind the folder's body so the folder reads as paper. */
.folder { position: relative; background: var(--tan); border-radius: var(--r-folder); padding: clamp(24px, 3.6vw, 48px); margin-top: 44px; }
.folder::before { content: ""; position: absolute; left: 0; top: -40px; width: min(44%, 420px); height: 90px; background: var(--tan-light); border-radius: 40px 40px 0 0; z-index: -1; }
.folder.brown-tab::after { content: ""; position: absolute; right: 8%; top: -22px; width: min(28%, 300px); height: 70px; background: var(--brown); border-radius: 34px 34px 0 0; z-index: -1; }
.folder.light { background: var(--tan-light); }
.folder.light::before { background: var(--tan); }
.folder.dark { background: var(--choc); color: var(--paper); }
.folder.dark::before { background: var(--tan); }
.folder.dark p, .folder.dark .lede { color: var(--paper); }

.block { background: var(--choc); color: var(--paper); border-radius: var(--r-block); padding: clamp(22px, 2.6vw, 32px) clamp(22px, 2.8vw, 36px); }
.block h2, .block h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--paper); margin-bottom: .45rem; }
.block p { color: var(--paper-dim); margin: 0; font-size: 1rem; }
.block.brown { background: var(--brown); }
.block.brown p { color: #f1e6d3; }

/* The brown circle that carries an icon, sitting on the block's top-left corner. */
.iconed { position: relative; padding-left: clamp(60px, 6vw, 84px); margin-top: 22px; }
.chip { position: absolute; left: -22px; top: -22px; width: 76px; height: 76px; border-radius: 50%; background: var(--brown); display: grid; place-items: center; box-shadow: 0 8px 18px -10px rgba(45, 35, 25, .55); }
.chip svg { width: 34px; height: 34px; stroke: var(--paper); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.num.tick { background: var(--brown); }
.num.tick svg { width: 20px; height: 20px; stroke: var(--paper); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.num { position: absolute; left: -16px; top: -16px; width: 46px; height: 46px; border-radius: 50%; background: var(--choc); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 1rem; box-shadow: 0 6px 14px -8px rgba(45, 35, 25, .6); }
.brown .num { background: var(--choc); }

.star { width: 44px; height: 44px; fill: var(--brown); }
.star.small { width: 26px; height: 26px; }

/* Pill buttons. */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: .95rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background 240ms; }
.btn.solid { background: var(--brown); color: var(--paper); box-shadow: 0 10px 22px -14px rgba(45, 35, 25, .7); }
.btn.solid:hover { background: #7e5a26; transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(45, 35, 25, .7); }
.btn.ghost { border: 2px solid var(--brown); color: var(--brown); }
.btn.ghost:hover { background: rgba(110, 77, 30, .08); transform: translateY(-2px); }
.btn.on-dark.ghost { border-color: var(--paper-dim); color: var(--paper); }
.btn.on-dark.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link { font-weight: 600; color: var(--brown); }

/* ---------- Header ---------- */

.top { padding-top: clamp(20px, 3vw, 36px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: baseline; gap: .35em; text-decoration: none; }
.wordmark .script { font-family: var(--script); color: var(--brown); font-size: 2.1rem; line-height: 1; }
.wordmark .heavy { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .06em; color: var(--choc); }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.nav a { font-weight: 600; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--choc); padding: .35rem 0; border-bottom: 2px solid transparent; transition: border-color 240ms, color 240ms; }
.nav a:hover { color: var(--brown); border-color: var(--brown-light); }
.nav a[aria-current="page"] { color: var(--brown); border-color: var(--brown); }
@media (max-width: 560px) { .top .wrap { justify-content: center; } .nav { width: 100%; justify-content: center; gap: 22px; } }

/* ---------- Sections ---------- */

.section { padding: clamp(40px, 6vw, 88px) 0 0; }
.section:last-of-type { padding-bottom: clamp(48px, 7vw, 100px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; margin-bottom: 18px; }
.section-head .lede { margin: .5rem 0 0; }
.section-head .side { text-align: right; }
.section-head .side .star { margin-bottom: 8px; }
@media (max-width: 640px) { .section-head { grid-template-columns: 1fr; } .section-head .side { text-align: left; } .hero .section-head { grid-template-columns: 1fr auto; } }

/* Hero: a folder with both tabs, the words in a dark block, the portrait beside. */
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 44px); align-items: stretch; }
.hero .block { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: clamp(28px, 4vw, 56px); border-radius: 28px; }
.hero .block .lede { max-width: 44ch; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: .6rem; }
.hero .block { position: relative; }
.hero .clip { position: absolute; right: clamp(28px, 4vw, 56px); top: -30px; width: 44px; height: 120px; stroke: var(--paper); fill: none; stroke-width: 6; stroke-linecap: round; z-index: 2; }
.portrait { border-radius: 26px; overflow: hidden; border: 3px solid var(--brown-light); background: var(--tan-deep); box-shadow: 0 24px 44px -28px rgba(45, 35, 25, .55); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; aspect-ratio: 4 / 5; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .portrait { max-width: 440px; } .portrait img { aspect-ratio: 4 / 5; } .hero .clip { display: none; } }

/* Site cards: a photograph of the site with a number, a dark caption beneath. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 16px; text-decoration: none; color: inherit; transition: transform 320ms var(--ease-out); }
.card:hover { transform: translateY(-4px); }
.card .shot { border-radius: var(--r-photo); overflow: hidden; border: 3px solid var(--brown-light); background: var(--paper); box-shadow: 0 20px 34px -24px rgba(45, 35, 25, .6); }
.card .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 700ms var(--ease-out); }
.card:hover .shot img { transform: scale(1.03); }
.card .num { top: -14px; left: -14px; z-index: 2; }
.card .cap { text-align: center; padding: 20px 22px; }
.card .cap h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.card .cap p { font-size: .95rem; }
.card .cap small { display: block; margin-top: .6rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brown-light); font-weight: 600; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 520px; } }

/* Services: four dark blocks with icon chips, two by two. */
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(24px, 3vw, 48px); padding-top: 12px; }
.blocks .block { min-height: 150px; text-decoration: none; }
.blocks a.block:hover { background: #3a2d20; }
@media (max-width: 760px) { .blocks { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .iconed { padding-left: clamp(22px, 2.8vw, 36px); padding-top: 54px; margin-top: 30px; } .iconed .chip { left: 18px; top: -28px; width: 64px; height: 64px; } .iconed .chip svg { width: 28px; height: 28px; } }

/* The showcase: a grid of site photographs with the title beside it. */
.showcase { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 16px; overflow: hidden; border: 2px solid var(--brown-light); background: var(--paper); transition: transform 320ms var(--ease-out); }
.gallery a:hover { transform: translateY(-3px); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
.showcase .side { text-align: right; }
.showcase .side .lede { margin-left: auto; }
@media (max-width: 800px) { .showcase { grid-template-columns: 1fr; } .showcase .side { text-align: left; order: -1; } .showcase .side .lede { margin-left: 0; } }

/* The register: one line per subject group. */
.register { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(28px, 4vw, 64px); }
.register li { break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: .8rem 0; border-bottom: 1.5px solid var(--tan-deep); font-weight: 500; }
.register .count { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--brown); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 720px) { .register { columns: 1; } }

/* How I work: four circles joined by arrows, a dark block beneath each. */
.flow { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding-top: 44px; position: relative; }
.step { position: relative; display: flex; flex-direction: column; }
.step .block { flex: 1; }
.step .chip { position: relative; left: auto; top: auto; margin: 0 auto -38px; z-index: 2; }
.step .block { padding-top: 56px; text-align: center; min-height: 190px; }
.step .arrow { position: absolute; top: 4px; right: -22px; width: 56px; height: 34px; stroke: var(--brown); fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; z-index: 1; }
.step:last-child .arrow { display: none; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step .arrow { display: none; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* The rows: a numbered brown list (what is included; the sites in each subject group). */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rows li { position: relative; border-radius: 16px; padding: 16px 22px 16px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; }
.rows li.live { background: var(--brown); color: var(--paper); }
.rows li.live a { color: var(--paper); text-decoration: none; font-weight: 700; }
.rows li.live a:hover { text-decoration: underline; }
.rows li.live .what { color: #f1e6d3; }
.rows li.prep { background: var(--tan-light); color: var(--choc); }
.rows li.prep .what { color: var(--muted); }
.rows .name { grid-column: 1; grid-row: 1; font-weight: 700; }
.rows .what { grid-column: 1; grid-row: 2; font-size: .95rem; }
.rows .where { grid-column: 2; grid-row: 1 / span 2; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; opacity: .85; white-space: nowrap; align-self: center; }
.rows.plain li { grid-template-columns: 1fr; background: var(--choc); color: var(--paper); padding: 16px 24px 16px 40px; }
.rows.plain li .num { left: -16px; top: 50%; transform: translateY(-50%); background: var(--brown); }
@media (max-width: 560px) { .rows li { grid-template-columns: 1fr; } .rows .where { grid-column: 1; grid-row: 3; margin-top: 4px; } }

/* Subject groups on the portfolio page. */
.group { margin-top: 44px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.group-head h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: .02em; }
.group-head .count { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--brown); white-space: nowrap; }

/* Services page: each service is a folder with the icon chip, a dark block and its brown rows. */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.service .block { position: relative; margin-top: 22px; padding-top: 40px; }
.service .block .chip { left: -20px; top: -24px; }
.service .block h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.service .block .lede { color: var(--paper-dim); font-size: 1.05rem; margin-bottom: .8rem; }
.service .block p { margin-bottom: .8rem; }
.service .block p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }

/* About: dark pill rows of facts beside the portrait. */
.meet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pills li { background: var(--choc); color: var(--paper); border-radius: 18px; padding: 22px 28px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } .meet .portrait { max-width: 440px; } }
.bio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.bio p { color: var(--choc); }
.bio .first { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; font-weight: 500; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } }

/* Contact: a dark folder with both tabs and the paper clip. */
.contact .folder { padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 72px); }
.contact .clip { position: absolute; right: clamp(24px, 6vw, 90px); top: -26px; width: 44px; height: 120px; stroke: var(--paper); fill: none; stroke-width: 6; stroke-linecap: round; z-index: 2; }
.contact .thanks { font-style: italic; font-size: 1.15rem; color: var(--paper-dim); margin: 1.4rem 0 1.1rem; }
.contact .bar { display: inline-block; background: var(--brown); color: var(--paper); border-radius: 14px; padding: 16px 28px; font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.35rem); text-decoration: none; }
.contact .bar:hover { background: #5c3f16; }
.contact .addr { margin: 1.2rem 0 0; color: var(--paper-dim); }
.contact .addr a { color: var(--paper); }
@media (max-width: 720px) { .contact .clip { display: none; } }

/* ---------- Footer ---------- */

footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1.5px solid var(--tan-deep); padding: 26px 0 40px; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap; }
footer a { color: var(--choc); }
footer .social { justify-content: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tan-light); }
footer .buzzz { justify-content: center; margin: 10px auto 0; }

