/* Sure Thing: one-page profile. Off-white ground, charcoal bands, orange accent; Cabin throughout (as the original Squarespace site). */
:root {
  --paper: #F7F5F1;
  --ink: #24282E;
  --ink-soft: #4A4F57;
  --orange: #FE5C24;
  --orange-deep: #D9431A;
  --line: #24282E;
  --rule: #DEDAD2;
  --font: "Cabin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 500;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }

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

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.site-header .logo img { width: 220px; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a.nav-link { text-decoration: none; font-weight: 700; font-size: 1.0625rem; }
.site-nav a.nav-link:hover { color: var(--orange-deep); }
.btn-outline {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: 0.02em;
  color: var(--orange-deep); border: 2px solid var(--orange); border-radius: 999px; padding: 14px 24px;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--orange); color: var(--paper); }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding-block: 40px 88px;
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--orange-deep); }
.hero .lede { margin-top: 28px; font-size: 1.3rem; color: var(--ink-soft); max-width: 34ch; }
.hero-text { min-width: 0; }

/* Testimonial band */
.quote-band { padding-block: 0 88px; }
.quote {
  background: var(--ink); color: var(--paper); margin: 0;
  padding: clamp(32px, 5vw, 64px) clamp(28px, 6vw, 88px);
  position: relative;
}
.quote::before, .quote::after {
  color: var(--orange); font-size: 4rem; line-height: 1; font-weight: 700; font-style: italic; position: absolute;
}
.quote::before { content: "\201C"; left: clamp(14px, 3vw, 40px); top: clamp(18px, 3vw, 36px); }
.quote::after { content: "\201D"; right: clamp(14px, 3vw, 40px); bottom: clamp(-6px, 0vw, 0px); }
.quote p { font-style: italic; font-size: 1.2rem; line-height: 1.6; max-width: 70ch; }
.quote p + p { margin-top: 18px; }

/* Split section (photo + text) */
.split .wrap {
  display: grid; grid-template-columns: 0.85fr 1fr; gap: 64px; align-items: center;
  padding-block: 40px 96px;
}
.split .photo img { border-radius: 28px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.split .text { min-width: 0; display: grid; gap: 20px; max-width: 62ch; }
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); }
.split h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; }

/* Specialisms */
.specialisms .wrap {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start;
  padding-block: 24px 96px;
}
.specialisms h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; position: sticky; top: 32px; }
.specialisms .intro { margin-top: 24px; color: var(--ink-soft); max-width: 30ch; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-width: 0; }
.card { border: 2px solid var(--line); border-radius: 26px; padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.45rem; line-height: 1.2; display: flex; gap: 12px; align-items: baseline; }
.card h3 span { font-size: 1.3rem; }
.card p { color: var(--ink-soft); }

/* Background band */
.about { background: var(--ink); color: var(--paper); }
.about .wrap {
  display: grid; grid-template-columns: 1fr 0.7fr; gap: 64px; align-items: center;
  padding-block: 96px;
}
.about .text { display: grid; gap: 20px; min-width: 0; max-width: 62ch; }
.about h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; }
.about .eyebrow { color: var(--orange); }
.about img { border-radius: 28px; width: 100%; }
.track { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 8px; padding: 0; list-style: none; }
.track li { border: 1.5px solid rgba(247,245,241,.55); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 1rem; }

/* Contact */
.contact .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
  padding-block: 104px;
}
.contact h2 { font-size: clamp(3.4rem, 8vw, 7rem); line-height: 0.95; }
.contact .sub { margin-top: 28px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; max-width: 22ch; }
.contact-list { display: grid; gap: 28px; padding-top: 12px; min-width: 0; }
.contact-item { border-bottom: 1.5px solid var(--ink); padding-bottom: 20px; display: grid; gap: 6px; }
.contact-item .label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-item a { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--orange-deep); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap {
  display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: start;
  padding-block: 56px 64px;
}
.site-footer .logo img { width: 200px; }
.site-footer .details { display: grid; gap: 14px; font-weight: 700; font-size: 1.05rem; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-footer .legal a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal span { opacity: .6; }
.site-footer small { font-size: 0.9rem; font-weight: 500; opacity: .75; }

/* Legal pages */
.legal-page .wrap { padding-block: 48px 96px; }
.legal-page article { max-width: 72ch; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.legal-page .updated { margin-top: 12px; color: var(--ink-soft); font-size: 1rem; }
.legal-page h2 { font-size: 1.5rem; margin-top: 44px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page p + p { margin-top: 14px; }
.legal-page ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-page .back { display: inline-block; margin-top: 48px; font-weight: 700; color: var(--orange-deep); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split .wrap, .specialisms .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { padding-block: 16px 64px; }
  .hero-art { order: 2; }
  .specialisms h2 { position: static; }
  .split .photo { max-width: 460px; }
  .about .photo { max-width: 420px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .site-nav .nav-link { display: none; }
  .site-header .logo img { width: 170px; }
  .btn-outline { padding: 11px 18px; font-size: 0.95rem; }
  .cards { grid-template-columns: 1fr; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .quote-band .wrap { padding-left: 0; padding-right: 0; }
}

/* ---------- Nav dropdown ---------- */
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dropdown[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.dropdown summary:hover { color: var(--orange-deep); }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); z-index: 20;
  list-style: none; margin: 0; padding: 10px; min-width: 210px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 10px 30px rgba(36,40,46,.12);
}
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--ink); color: var(--paper); }
@media (max-width: 720px) {
  .site-nav { gap: 14px; }
  .site-nav .nav-home { display: none; }
  .site-nav .dropdown summary { display: inline-flex; font-size: 0.95rem; }
  .dropdown-menu { left: auto; right: -60px; transform: none; }
}
@media (max-width: 720px) { .site-nav .dropdown .nav-link { display: inline-flex; } }

/* ---------- Article pages ---------- */
.article-page .wrap { padding-block: 24px 96px; }
.post { max-width: 760px; margin: 0 auto; min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 28px; }
.breadcrumb a { color: var(--ink-soft); }
.post-head { display: grid; gap: 14px; margin-bottom: 28px; }
.post h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; }
.post-meta { color: var(--ink-soft); font-size: 0.98rem; }
.post .lede { font-size: 1.28rem; color: var(--ink); line-height: 1.5; }
.post p, .post li, .post dd { color: var(--ink-soft); }
.post > p, .post > ul, .post > ol, .post > figure, .post > div, .post > aside, .post > nav, .post > dl { margin-top: 20px; }
.post h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin-top: 56px; scroll-margin-top: 24px; }
.post h3 { font-size: 1.3rem; margin-top: 32px; scroll-margin-top: 24px; }
.post h2 + p, .post h3 + p { margin-top: 14px; }
.post ul, .post ol { padding-left: 1.3em; display: grid; gap: 10px; }
.post strong { color: var(--ink); }
.post a { color: var(--orange-deep); text-underline-offset: 3px; }
.disclosure { font-size: 0.98rem; border-left: 3px solid var(--orange); padding-left: 16px; }
.post figure { margin-inline: 0; }
.post figure img { border-radius: 20px; width: 100%; }
.post figcaption { font-size: 0.92rem; color: var(--ink-soft); margin-top: 10px; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.figure-pair figure { margin: 0; }
.figure-pair img { aspect-ratio: 4 / 3.4; object-fit: cover; }

.ref-box { background: var(--ink); color: var(--paper); border-radius: 26px; padding: 28px clamp(22px, 4vw, 36px); display: grid; gap: 12px; }
.ref-box p { color: var(--paper); }
.ref-box a { color: var(--paper); }
.ref-label { font-weight: 700; font-size: 1.25rem; }
.ref-box .code { color: var(--orange); font-size: 1.1em; letter-spacing: .02em; }
.btn-solid { display: inline-block; background: var(--orange); color: var(--ink) !important; font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 999px; }
.btn-solid:hover { background: var(--paper); }
.post .ref-cta { margin-top: 24px; }
.post .ref-cta .btn-solid { color: var(--ink); }

.toc { border: 2px solid var(--ink); border-radius: 22px; padding: 22px 26px; }
.toc-title { font-weight: 700; color: var(--ink) !important; margin-bottom: 8px; }
.toc ol { gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--orange-deep); text-decoration: underline; }

.table-wrap { overflow-x: auto; }
.post table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.post caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 10px; }
.post th, .post td { text-align: left; padding: 12px 14px; border-bottom: 1.5px solid var(--rule); color: var(--ink); }
.post thead th { border-bottom: 2px solid var(--ink); }
.post tfoot th, .post tfoot td { font-weight: 700; border-bottom: 0; }
.post td:nth-child(2), .post th:nth-child(2) { text-align: right; }

.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.glossary dt { font-weight: 700; color: var(--ink); }
.glossary dd { margin: 0; }

.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; border-top: 2px solid var(--ink); padding-top: 28px; margin-top: 48px !important; }
.author-box img { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; }
.author-name { font-weight: 700; color: var(--ink) !important; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tool { border: 2px solid var(--ink); border-radius: 20px; padding: 18px 20px; }
.tool h3 { margin-top: 0; font-size: 1.15rem; }
.tool p { margin-top: 6px; font-size: 1rem; }

@media (max-width: 720px) {
  .figure-pair { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; gap: 2px; }
  .glossary dd { margin-bottom: 12px; }
  .post td:nth-child(2), .post th:nth-child(2) { text-align: left; }
}
.site-nav a, .dropdown summary { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .logo img { width: 130px; }
  .site-nav { gap: 10px; }
  .site-header .btn-outline { padding: 9px 14px; font-size: 0.9rem; }
  .dropdown-menu { right: -90px; }
}

/* ---------- Consistency: legal pages share the article column ---------- */
.legal-page article { margin: 0 auto; max-width: 760px; }

/* ---------- More side projects band (dark, like the homepage About band) ---------- */
.more-band { background: var(--ink); color: var(--paper); }
.more-band .wrap { padding-block: 72px; display: grid; gap: 28px; }
.more-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.more-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.more-card { display: grid; gap: 8px; text-decoration: none; color: var(--paper); border: 2px solid rgba(247,245,241,.6); border-radius: 26px; padding: 24px 26px; transition: border-color .15s, background .15s; }
.more-card:hover { border-color: var(--orange); background: rgba(254,92,36,.08); }
.more-title { font-weight: 700; font-size: 1.4rem; }
.more-desc { color: rgba(247,245,241,.8); }
.more-arrow { color: var(--orange); font-weight: 700; font-size: 1.3rem; }
.article-page .more-band + * { margin-top: 0; }
.site-footer { border-top: 1.5px solid rgba(247,245,241,.18); }
