/* Soroka Strategies — site styles. One stylesheet, no framework, no build step. */

:root {
  --ivory:  #F4EFE6;
  --panel:  #FBF8F2;
  --ink:    #1C1A17;
  --body:   #3F3A33;
  --grey:   #6B6358;
  --rule:   #D9D0C1;
  --copper: #8A4B22;
  --copper-dark: #5E3114;
  --green:  #1F2A24;
  --green-rule: #4A564F;
  --sand:   #D9B48F;
  --mist:   #CFD4CD;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
  --section: clamp(64px, 9vw, 128px);
  --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--copper); }
a:hover { color: var(--copper-dark); }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 92px); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--body); }
em { font-style: italic; }
h1 em, h2 em { color: var(--copper); }

.eyebrow {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); font-weight: 600; margin: 0;
}
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 44ch; }
.lead-serif { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 28px); line-height: 1.35; color: var(--body); }
.small { font-size: 15px; line-height: 1.55; }

/* ---------- buttons & links ---------- */
.btn, .btn-ghost {
  display: inline-block; font: inherit; font-weight: 500; font-size: 16px;
  text-decoration: none; border-radius: 2px; cursor: pointer;
  padding: 16px 26px; min-height: 48px; border: 0;
}
.btn { background: var(--green); color: var(--ivory); }
.btn:hover { background: #16201B; color: var(--ivory); }
.btn-ghost { color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; padding: 14px 2px; }
.btn-ghost:hover { color: var(--copper); border-color: var(--copper); }
.textlink { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; font-weight: 500; }
.textlink:hover { color: var(--copper); border-color: var(--copper); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--green); color: var(--ivory);
  padding: 12px 18px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 54px; flex: none; }
.brand-name { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -0.01em; display: block; }
/* tagline sits centered under the wordmark, tracked out to roughly its width */
.brand-tag {
  display: block; margin-top: 4px; text-align: center;
  font-size: clamp(8.5px, 0.78vw, 10.5px); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.26em; text-indent: 0.26em; color: var(--grey); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 40px); flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 0 4px; }
.nav a:hover { color: var(--copper); }
.nav a[aria-current="page"] { font-weight: 600; border-bottom: 1px solid var(--ink); }
.nav a.btn { color: var(--ivory); padding: 13px 20px; font-size: 15px; min-height: 0; }
.nav a.btn:hover { color: var(--ivory); }
.nav .btn[aria-current="page"] { border-bottom: 0; }

/* ---------- layout helpers ---------- */
section { padding-block: var(--section); }
.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.stack-lg > * + * { margin-top: clamp(20px, 2.4vw, 32px); }
.stack-sm > * + * { margin-top: 12px; }

.card { background: var(--panel); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); }
.card .num { font-size: 13px; letter-spacing: 0.16em; color: var(--copper); font-weight: 600; }
.card h3 { margin: 16px 0 14px; }
.card p { margin: 0; font-size: 16px; }

.band-dark { background: var(--green); color: var(--ivory); }
.band-dark h2, .band-dark h3 { color: var(--ivory); }
.band-dark h2 em { color: var(--sand); }
.band-dark p { color: var(--mist); }
.band-dark .eyebrow { color: var(--sand); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 128px) clamp(48px, 7vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.hero h1 { margin-top: 26px; }
.hero-grid > .perch { margin-left: auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
/* the bird's feet end at 82.5% of the artwork's height, so the perch line sits
   10.94% of the artwork's WIDTH above its bottom edge — the box is sized to the
   artwork so that percentage resolves against the right thing */
.perch { display: flex; flex-direction: column; width: min(300px, 100%); }
.perch svg { width: 100%; display: block; }
.perch .bar { height: 2px; background: var(--copper); width: 100%; margin-top: -10.94%; }
.perch.flip svg { transform: scaleX(-1); }

/* ---------- lists & rows ---------- */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 48px minmax(0, 5fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 40px);
       padding-block: clamp(28px, 3.4vw, 48px); border-bottom: 1px solid var(--rule); }
.row .n { font-family: var(--serif); font-size: 30px; color: var(--copper); }
.row h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 500; margin-bottom: 14px; }
.row p { margin: 0; }
.deliverables { list-style: none; margin: 0; padding: 0; }
.deliverables li { font-size: 16px; line-height: 1.5; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.deliverables li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.facts { display: grid; gap: 0 clamp(20px, 3vw, 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.fact:nth-child(-n+3) { border-top-color: var(--ink); }
.fact .year { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); color: var(--copper); }
.fact .what { font-weight: 600; margin: 10px 0 8px; }
.fact p { margin: 0; font-size: 15px; line-height: 1.55; }

.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--rule); }
.panel-list li:first-child { margin-top: 0; }
.band-dark .panel-list li { border-top-color: var(--green-rule); }
.panel-list strong { display: block; font-size: 18px; }
.panel-list span { font-size: 15px; color: var(--body); }
.band-dark .panel-list span { color: var(--mist); }

/* ---------- about ---------- */
.portrait { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.portrait-col { display: flex; flex-direction: column; align-items: flex-start; }
.portrait-col .perch-bird { width: 170px; margin: 0 0 -14px 20px; }

/* ---------- contact form ---------- */
.form { background: var(--panel); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 48px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #A89F90; border-radius: 2px; padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); }
.hp { position: absolute; left: -9999px; }
.contact-details { border-top: 1px solid var(--rule); padding-top: 24px; }
.contact-details dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.contact-details dd { margin: 4px 0 20px; font-size: 18px; }
.contact-details a { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 40px; font-size: 14px; color: var(--grey); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: flex-end; }
.site-footer .mark { width: 42px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .name { font-family: var(--serif); font-size: 21px; color: var(--ink); display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer a { color: var(--grey); text-decoration: none; padding: 6px 0; }
.site-footer a:hover { color: var(--copper); }

/* ---------- prose (privacy, thanks) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { color: var(--body); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .perch { margin-top: 8px; width: min(240px, 60%); }
  .row { grid-template-columns: 36px minmax(0, 1fr); }
  .row .deliverables { grid-column: 2; }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(-n+3) { border-top-color: var(--rule); }
  .fact:nth-child(-n+2) { border-top-color: var(--ink); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .split, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-top-color: var(--rule) !important; }
  .fact:first-child { border-top-color: var(--ink) !important; }
  .site-header .wrap { padding-block: 16px; }
  .brand .mark { width: 44px; }
  .nav { gap: 16px; width: 100%; justify-content: space-between; }
  .nav .btn { margin-left: auto; }
  .hero .actions .btn, .hero .actions .btn-ghost { width: 100%; text-align: center; }
  .portrait-col .perch-bird { width: 130px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .perch { display: none; }
  body { background: #fff; }
}

/* the tagline is unreadable below its minimum size — drop it on small screens,
   per the brand guidelines ("drop the tagline first") */
@media (max-width: 620px) {
  .brand-tag { display: none; }
}
