/* Symposi — watercolor paper studio. Layout: painted circles bleed off the top edge,
   lowercase letterspaced nav (echoing the logo), work shown at its true scale on paper. */
:root {
  color-scheme: light;
  --paper: #f1f0ed;
  --sheet: #fbfaf8;
  --ink: #2e2c29;
  --muted: #6b665f;
  --rule: #d9d5ce;
  --olive: #66692f;   /* logo ring */
  --ochre: #a26a24;   /* warm circles */
  --plum: #6e4767;    /* cool circles */
  --slate: #4b5c7a;
  --cat-web: var(--slate);
  --cat-print: var(--ochre);
  --cat-logo: var(--olive);
  --cat-illustration: var(--plum);
  --display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --wrap: 1180px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    url("paper.webp");
  background-size: 100% 100vh, 512px 512px;
  background-attachment: fixed, scroll;
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Header ---------- */
.site-head { position: relative; padding-top: clamp(96px, 13vw, 150px); overflow-x: clip; }
.head-wrap { position: relative; }
.circles {
  position: absolute; top: calc(-1 * clamp(96px, 13vw, 150px)); right: 250px;
  width: 960px; max-width: none;
  pointer-events: none; user-select: none;
  animation: settle 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@media (max-width: 760px) { .circles { width: 118vw; right: 0; } }
@keyframes settle { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
.head-row {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 32px; padding-bottom: 22px; border-bottom: 1px solid var(--rule);
}
.brand img { width: 212px; }
@media (min-width: 900px) { .brand img { width: 250px; } }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); margin-bottom: 4px; }
.nav a {
  font: 400 0.95rem/1 var(--display); letter-spacing: .14em; text-decoration: none;
  color: var(--muted); padding: 8px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .14em; bottom: 0; height: 2px;
  background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 300; text-wrap: balance; margin: 0; letter-spacing: .005em; }
.eyebrow {
  font: 500 .74rem/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin: 0;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }
p { margin: 0 0 1em; }
.prose { max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }

/* ring marker: a small painted-circle echo used for categories */
.ring {
  display: inline-block; width: .78em; height: .78em; border-radius: 50%;
  border: 2.5px solid var(--c, var(--olive)); vertical-align: -.06em; margin-right: .5em; opacity: .9;
}
.cat-web { --c: var(--cat-web); }
.cat-print { --c: var(--cat-print); }
.cat-logo { --c: var(--cat-logo); }
.cat-illustration { --c: var(--cat-illustration); }

/* ---------- Home ---------- */
.hero { display: grid; gap: 22px; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.08; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--olive); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .82rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 15px 22px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--sheet); }
.link-arrow {
  font: 500 .82rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--olive); padding-block: 15px;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 5px; }

.section { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Work grid ---------- */
.grid {
  display: grid; gap: clamp(20px, 2.6vw, 34px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.card { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.card .frame {
  aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--sheet);
  box-shadow: 0 1px 2px rgba(46,44,41,.08), 0 8px 24px -14px rgba(46,44,41,.35);
}
.card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card.contain .frame img { object-fit: contain; padding: 10%; }
.card:hover .frame img { transform: scale(1.035); }
.card .meta { display: grid; gap: 4px; }
.card .cat { font: 500 .7rem/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 400; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--c, var(--olive)); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font: 400 .9rem/1 var(--display); letter-spacing: .06em; color: var(--ink);
  border: 1px solid var(--rule); background: var(--sheet); padding: 11px 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center;
}
.chip .n { color: var(--muted); margin-left: .5em; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: #c9c4bb; }
.chip[aria-pressed="true"] .ring { border-color: var(--sheet); }

/* ---------- Quotes ---------- */
.quotes { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
blockquote { margin: 0; }
blockquote p { font: italic 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.55 var(--body); }
blockquote footer { font: 500 .74rem/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
blockquote footer a { color: var(--olive); }

/* ---------- Services / clients ---------- */
.two-col { display: grid; gap: 32px clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font: 400 .92rem/1 var(--display); letter-spacing: .03em; padding: 9px 13px; background: var(--sheet); border: 1px solid var(--rule); }
.clients { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.clients h3 { font: 500 .74rem/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.clients ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .97rem; line-height: 1.4; }

/* ---------- About ---------- */
.about { display: grid; gap: 36px clamp(32px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); padding-block: clamp(48px, 7vw, 88px); }
@media (min-width: 820px) { .about { grid-template-columns: 240px minmax(0, 1fr); } }
.portrait { width: 214px; box-shadow: 0 1px 2px rgba(46,44,41,.1), 0 10px 26px -14px rgba(46,44,41,.4); }
.about h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 22px; }

/* ---------- Project page ---------- */
.crumbs { font: 400 .85rem/1 var(--display); letter-spacing: .12em; color: var(--muted); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.project-head { display: grid; gap: 18px; padding-block: 28px 40px; }
.project-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; max-width: 22ch; }
.project-body { display: grid; gap: 40px clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
@media (min-width: 980px) {
  .project-body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .project-body .prose { position: sticky; top: 28px; align-self: start; }
}
.project-body blockquote { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.gallery { columns: 2 280px; column-gap: clamp(16px, 2vw, 24px); }
.gallery figure {
  margin: 0 0 clamp(16px, 2vw, 24px); break-inside: avoid; background: var(--sheet);
  box-shadow: 0 1px 2px rgba(46,44,41,.08), 0 8px 24px -14px rgba(46,44,41,.35);
}
.gallery figure.solo { max-width: 560px; }
.gallery.single { columns: 1; }
.gallery img { width: 100%; cursor: zoom-in; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; display: grid; gap: 6px; max-width: 46%; }
.pager a.next { text-align: right; margin-left: auto; }
.pager span { font: 500 .72rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pager strong { font: 400 1.05rem/1.3 var(--display); }
.pager a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .pager a { max-width: 100%; } .pager a.next { text-align: left; margin-left: 0; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(30,28,26,.82); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; margin: auto; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox button {
  position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px));
  font: 500 .8rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  background: var(--sheet); color: var(--ink); border: 0; padding: 12px 16px; cursor: pointer;
}

/* ---------- Contact ---------- */
.contact { padding-block: clamp(48px, 8vw, 104px); display: grid; gap: 28px; }
.contact h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }
.contact-lines { display: grid; gap: 22px; margin-top: 12px; }
.contact-line { display: grid; gap: 6px; }
.contact-line .big { font: 300 clamp(1.4rem, 3.4vw, 2.2rem)/1.2 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.contact-line a.big:hover { color: var(--olive); }
.copy {
  justify-self: start; font: 500 .72rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  background: none; border: 1px solid var(--rule); color: var(--muted); padding: 9px 12px; cursor: pointer;
}
.copy:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); margin-top: 24px; }
.foot-row {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center;
  padding-block: 28px 36px; font: 400 .9rem/1.4 var(--display); letter-spacing: .06em; color: var(--muted);
}
.foot-row .contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); text-decoration: underline; }

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

.grid.featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 980px) { .grid.featured { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid.featured { gap: 16px; } .grid.featured .card h3 { font-size: 1rem; } }
.project-body blockquote p { font-size: 1.08rem; }
.card[data-cat="web"] .frame img { object-position: left top; }
.gallery.wide { columns: 1; }
.gallery.wide figure { max-width: 800px; }
blockquote footer { display: grid; gap: 4px; }
blockquote footer strong { font-weight: 500; color: var(--ink); }
blockquote footer span { letter-spacing: .12em; line-height: 1.5; }
.quotes { row-gap: clamp(36px, 5vw, 64px); }
.quotes { display: block; columns: 2 360px; column-gap: clamp(32px, 5vw, 64px); }
.quotes blockquote { break-inside: avoid; margin-bottom: clamp(36px, 5vw, 56px); }
.quotes blockquote p { font-size: clamp(1.05rem, 1.4vw, 1.18rem); }
