/* Sotasu — site styles */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f5f6f3;
  --paper-2: #eceee9;
  --ink: #17211d;
  --muted: #56635d;
  --line: #d3d9d4;
  --spruce: #1e4a40;
  --spruce-deep: #15362e;
  --on-dark: #eef1ec;
  --on-dark-muted: #a8bab1;
  --on-dark-line: rgba(238, 241, 236, 0.18);
  --error: #9b2c1f;

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

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*,
*::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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--spruce); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--on-dark); }

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  font-optical-sizing: auto;
}

/* ---------- Header + hero (the one dark moment) ---------- */

.top { background: var(--spruce); color: var(--on-dark); }

.site-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--spruce); color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-bar.scrolled { border-bottom-color: var(--on-dark-line); }
.site-bar .bar { padding-top: 18px; padding-bottom: 18px; }
@media (max-width: 640px) { .site-bar .bar { padding-top: 8px; padding-bottom: 8px; } }
@media (min-width: 641px) { .menu-panel { display: none !important; } }
.nav a[aria-current="true"] { color: var(--on-dark); }
.menu-btn {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--on-dark);
  position: relative;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; transition: opacity 0.15s ease; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.menu-panel { border-top: 1px solid var(--on-dark-line); border-bottom: 1px solid var(--on-dark-line); padding: 8px 0 20px; }
.menu-panel a {
  display: block; padding: 12px 0;
  font-family: var(--serif); font-size: 24px; text-decoration: none; color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-line);
}
.menu-panel a:last-child { border-bottom: 0; }
.menu-backdrop {
  position: fixed; inset: 0; z-index: 15;
  background: rgba(16, 28, 24, 0.45);
}
@media (min-width: 641px) { .menu-backdrop { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }
section[id] { scroll-margin-top: 62px; }
@media (prefers-reduced-motion: reduce) { .site-bar { transition: none; } }

.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 26px; padding-bottom: 26px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span {
  font-family: var(--serif); font-size: 23px; letter-spacing: 0.02em; line-height: 1;
}

.nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-dark-muted); }
.nav a:hover { color: var(--on-dark); text-decoration: underline; }

.hero { padding-top: clamp(40px, 8vw, 104px); }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 21ch;
  font-weight: 350;
}

.hero .lede {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 28px; margin-top: 40px;
}

.btn {
  display: inline-block;
  font: 500 15px/1 var(--sans);
  padding: 15px 22px;
  border: 1px solid currentColor;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.btn-light { background: var(--on-dark); color: var(--spruce-deep); border-color: var(--on-dark); }
.btn-light:hover { background: #fff; text-decoration: none; }
.btn-dark { background: var(--spruce); color: var(--on-dark); border-color: var(--spruce); }
.btn-dark:hover { background: var(--spruce-deep); text-decoration: none; }

.hero-actions .quiet { color: var(--on-dark-muted); font-size: 15px; }
.hero-actions .quiet:hover { color: var(--on-dark); }

/* Track record */
.record {
  margin: clamp(64px, 9vw, 104px) 0 0;
  padding: 28px 0 clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--on-dark-line);
}
.record p { margin: 0; }
.record-main {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  max-width: 34ch;
}
.record-link { margin-top: 18px !important; font-size: 15px; color: var(--on-dark-muted); }
.record-link a { color: var(--on-dark); }

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

.section { padding: clamp(72px, 10vw, 128px) 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(32px, 6vw, 88px);
}

.section-title { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.lead-para {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.45;
  font-weight: 380;
  margin: 0;
  max-width: 34em;
}

/* Principal bio */
.bio { max-width: 62ch; }
.bio p { margin: 0 0 1em; }
.bio p + p { color: var(--ink); }
.bio .lead-para { margin-bottom: 1.1em; }
.creds { margin: 40px 0 0; max-width: 62ch; border-top: 1px solid var(--ink); }
.creds > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.creds dt { font-weight: 600; }
.creds dd { margin: 0; color: var(--muted); }
.profile-link { margin: 24px 0 0; font-size: 15px; }

/* Approach */
.points { display: grid; gap: 32px; max-width: 62ch; }
.points h3 { font-size: 24px; line-height: 1.2; }
.points p { margin: 8px 0 0; color: var(--muted); }

.alt { background: var(--paper-2); }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(28px, 4vw, 48px);
  margin-top: 56px;
}
.service {
  border-top: 1px solid var(--ink); padding-top: 22px;
  display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0;
}
.service h3 { font-size: 26px; line-height: 1.15; }
.service p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.service ul { align-self: start; }
.service ul {
  list-style: none; margin: 20px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.service li { padding: 4px 0; }


.services-intro { color: var(--muted); max-width: 52ch; margin: 18px 0 0; }

/* Contact */

.contact .section-title { max-width: 12ch; }

.contact-details { margin-top: 28px; font-size: 16px; }
.contact-details dl { margin: 0; }
.contact-details div { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-details div:last-child { border-bottom: 1px solid var(--line); }
.contact-details dt { font-size: 13px; color: var(--muted); }
.contact-details dd { margin: 2px 0 0; }

.note { color: var(--muted); font-size: 15px; margin: 20px 0 0; max-width: 40ch; }

form { display: grid; gap: 18px; max-width: 620px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
label.field .opt { color: var(--muted); font-weight: 400; }

input[type="text"],
input[type="email"],
textarea {
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9c2bc;
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--spruce); outline-offset: 0; border-color: var(--spruce); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--spruce); }

.h-captcha:empty { display: none; }
.h-captcha { min-height: 78px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { font-size: 15px; margin: 0; }
.status.ok { color: var(--spruce); }
.status.err { color: var(--error); }

/* Footer */
.foot { background: var(--spruce-deep); color: var(--on-dark-muted); font-size: 14px; }
.foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px 32px; padding-top: 32px; padding-bottom: 32px;
}
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); text-decoration: underline; }

/* Simple inner pages (privacy, 404) */
.page-head { background: var(--spruce); color: var(--on-dark); }
.page-head .title { padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 350; }
.page-head p { color: var(--on-dark-muted); margin: 14px 0 0; }
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc .prose h2 { font-size: 24px; margin: 40px 0 10px; }
.doc .prose h2:first-child { margin-top: 0; }
.doc .prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.doc .prose li { margin-bottom: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .record { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service { display: block; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .creds > div { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}
