/* Swoonsy site styles. Light only, flat colour, no gradients. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FBFBF9;
  --surface: #F3F3EF;
  --ink: #17191C;
  --ink-2: #53575E;
  --muted: #8D9198;
  --line: #E8E7E2;
  --line-strong: #D3D2CC;
  --accent: #2E6BE6;
  --accent-soft: #DDE7FB;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark span { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.wordmark .mark { width: 20px; height: 20px; }
.wordmark .mark circle { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.wordmark .mark .m-dot { fill: var(--accent); stroke: none; }
.wordmark:hover { color: var(--ink); }

.site-nav { display: flex; gap: clamp(22px, 3.2vw, 40px); font-size: 14.5px; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }

.display {
  font-family: var(--serif);
  font-size: clamp(50px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 10.5ch;
}
.display em { color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 27em; margin: 40px 0 0; }

.label {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-top: 14px;
}

/* Hero */
.hero { padding: clamp(72px, 12vw, 168px) 0 clamp(96px, 13vw, 184px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.orbit { width: 100%; max-width: 440px; justify-self: end; }
.orbit circle { fill: none; stroke: var(--line-strong); stroke-width: 0.8; }
.orbit circle:nth-child(1) { stroke: var(--line); }
.orbit .dot { fill: var(--accent); stroke: none; }
.orbit .dot.soft { fill: var(--bg); stroke: var(--accent); stroke-width: 1; }

/* Sections */
.section { padding: 0 0 clamp(88px, 11vw, 150px); }
.split { border-top: 1px solid var(--line); padding-top: clamp(88px, 11vw, 150px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px 48px; }

/* Vision */
.statement {
  font-family: var(--serif); font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 clamp(40px, 5vw, 64px); max-width: 16em;
}
.statement em { color: var(--accent); }
.vision-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; max-width: 58em; }
.vision-body p { margin: 0; color: var(--ink-2); }

/* Portfolio */
.portfolio { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.portfolio li { border-bottom: 1px solid var(--line-strong); }
.portfolio a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 40px; gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 38px) 0; text-decoration: none; color: var(--ink);
}
.p-name { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.02em; transition: color .2s; }
.p-line { color: var(--ink-2); font-size: 16px; }
.p-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.p-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.portfolio a:hover { color: var(--ink); }
.portfolio a:hover .p-name { color: var(--accent); }
.portfolio a:hover .p-arrow { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Closing line */
.closing { padding: 0 0 clamp(96px, 13vw, 180px); }
.closing-inner { border-top: 1px solid var(--line); padding-top: clamp(96px, 13vw, 180px); }
.quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 52px); line-height: 1.15;
  letter-spacing: -0.015em; max-width: 16em; margin: 0 auto; text-align: center; color: var(--ink);
}

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 130px); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; }
.legal-nav { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.legal-nav a { text-decoration: none; color: var(--muted); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.legal-nav a:hover { color: var(--accent); }
.legal h1 { font-family: var(--serif); font-size: clamp(44px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 16px; }
.legal .updated { color: var(--muted); font-size: 14.5px; margin: 0 0 44px; }
.prose { max-width: 42em; }
.prose h2 { font-family: var(--serif); font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; margin: 52px 0 12px; }
.prose h3 { font-weight: 600; font-size: 16px; margin: 28px 0 6px; }
.prose p, .prose ul { margin: 0 0 16px; color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.details { margin: 8px 0 32px; border-top: 1px solid var(--ink); }
.details div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.pending { color: var(--muted); font-style: italic; }

/* 404 */
.notfound { padding: clamp(96px, 16vw, 200px) 0; }
.notfound .lede { margin: 28px 0 36px; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.visit {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 15px;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
}
.visit:hover { background: var(--accent); color: #fff; }

/* Footer */
.site-footer { padding: 0 0 36px; font-size: 14px; color: var(--muted); }
.footer-inner { position: relative; padding-top: 44px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 48px; flex-wrap: wrap; }
.footer-inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.footer-contact { margin: 12px 0 0; color: var(--ink-2); }
.footer-contact a { color: var(--ink); text-decoration-color: var(--line-strong); }
.footer-contact a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 2px; }
.footer-nav a { text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { margin-top: 40px; }
.footer-legal p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .legal-grid { grid-template-columns: 1fr; }
  .orbit { max-width: 260px; justify-self: start; grid-row: 1; margin-bottom: 16px; }
  .label { padding-top: 0; }
  .vision-body { grid-template-columns: 1fr; gap: 20px; }
  .portfolio a { grid-template-columns: minmax(0, 1fr) 40px; gap: 10px 16px; }
  .p-line { grid-column: 1; grid-row: 2; }
  .p-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .legal-grid { gap: 32px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .site-nav { gap: 18px; font-size: 14px; }
  .orbit { display: none; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
}
