/* PersonalCIO — "Brief" design system
   Fonts: Instrument Serif (display), Newsreader (body), IBM Plex Mono (labels) */

:root {
  --bg:        oklch(0.955 0.014 78);
  --ink:       oklch(0.25 0.02 50);
  --ink-2:     oklch(0.34 0.02 50);
  --ink-3:     oklch(0.42 0.02 50);
  --meta:      oklch(0.5 0.03 50);
  --accent:    #2f5d7c;
  --accent-dk: oklch(0.4 0.13 45);
  --cream:     oklch(0.98 0.012 78);
  --rule:      oklch(0.25 0.02 50 / 0.25);
  --rule-soft: oklch(0.25 0.02 50 / 0.18);
  --rule-mid:  oklch(0.25 0.02 50 / 0.35);
  --pad:       96px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.72; }

img { max-width: 100%; }

h1, h2, h3 { font-weight: 400; margin: 0; }

p { margin: 0; text-wrap: pretty; }

/* ---------- primitives ---------- */

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow { color: var(--meta); }

.accent { color: var(--accent); }
.ital { font-style: italic; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }

.rule-top-2 { border-top: 2px solid var(--ink); }
.rule-bot-2 { border-bottom: 2px solid var(--ink); }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px var(--pad);
  border-bottom: 2px solid var(--ink);
}

.logo {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.logo span { opacity: 0.5; }

.site-head .logo { line-height: 0; align-self: flex-start; }
.site-head .logo picture { display: block; }
.site-head .logo img { width: 165px; max-width: 100%; height: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav a { color: var(--meta); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

/* ---------- type scale ---------- */

.display {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-sm {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  max-width: 740px;
  color: var(--ink-2);
}

.section-title {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.015em;
}

/* ---------- hero + sections ---------- */

.hero { padding: 88px var(--pad) 64px; max-width: 1040px; }

.hero .eyebrow-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero h1 { margin-bottom: 34px; }

.actions {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 26px;
  border: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--accent); opacity: 1; }

.btn-quiet {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

/* ---------- ruled list (home capabilities) ---------- */

.ruled { display: flex; flex-direction: column; }

.ruled-row {
  display: grid;
  grid-template-columns: 40px 300px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.ruled-row .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
}
.ruled-row h3 { font-size: 24px; letter-spacing: -0.01em; }
.ruled-row p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- services detail rows ---------- */

.svc-row {
  display: grid;
  grid-template-columns: 70px 1fr 330px;
  gap: 36px;
  padding: 38px 0;
  border-top: 1px solid oklch(0.25 0.02 50 / 0.3);
}
.svc-row:first-child { border-top: 2px solid var(--ink); }
.svc-row:last-child { border-bottom: 2px solid var(--ink); }
.svc-row .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
}
.svc-row h3 {
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.svc-row p { font-size: 17px; line-height: 1.65; max-width: 600px; color: var(--ink-2); }

.svc-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ---------- two-column with sidebar ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
  padding: 0 var(--pad) 80px;
}
.split-wide { grid-template-columns: 1fr 380px; }

.side {
  border: 1px solid var(--rule-mid);
  padding: 32px 28px;
}
.side .side-label { color: var(--meta); margin-bottom: 22px; }

.stat-stack { display: flex; flex-direction: column; gap: 20px; }
.stat-stack .stat-k { font-size: 26px; letter-spacing: -0.01em; }
.stat-stack .stat-v { font-size: 15px; color: var(--ink-3); }

.side-list { display: flex; flex-direction: column; }
.side-list div {
  font-size: 16.5px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.side-list div:last-child { border-bottom: none; }

/* ---------- credentials grid ---------- */

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 44px;
  margin-top: 32px;
}
.cred-grid h3 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cred-grid p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- about prose ---------- */

.prose { border-top: 2px solid var(--ink); padding-top: 36px; }
.prose .kicker {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.prose p + p { margin-top: 22px; }
.prose .body { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); max-width: 680px; }

.portrait { margin: 0; border: 1px solid oklch(0.25 0.02 50 / 0.3); }
.portrait picture { display: block; width: 100%; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.portrait figcaption {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
  padding: 12px 14px;
  border-top: 1px solid oklch(0.25 0.02 50 / 0.22);
}

.stack-28 { display: flex; flex-direction: column; gap: 28px; }

/* ---------- contact form ---------- */

.form {
  border-top: 2px solid var(--ink);
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 620px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.45 0.03 50);
}
.field input,
.field select,
.field textarea {
  font-family: Newsreader, Georgia, serif;
  color: var(--ink);
  background: transparent;
  outline: none;
  border-radius: 0;
}
.field input,
.field select {
  border: none;
  border-bottom: 1px solid oklch(0.25 0.02 50 / 0.4);
  padding: 10px 2px;
  font-size: 19px;
}
.field input:focus,
.field select:focus { border-bottom-color: var(--accent); }
.field textarea {
  border: 1px solid oklch(0.25 0.02 50 / 0.4);
  padding: 14px;
  font-size: 18px;
  line-height: 1.55;
  resize: vertical;
}
.field textarea:focus { border-color: var(--accent); }

.form-note {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: oklch(0.52 0.03 50);
}

.form-status { margin-top: 18px; font-size: 15px; min-height: 1.5em; line-height: 1.5; }
.form-status--ok  { color: #2a6e3a; }
.form-status--err { color: #b03030; }

.contact-side p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-bottom: 28px; }
.contact-side .row { padding: 16px 0; border-top: 1px solid oklch(0.25 0.02 50 / 0.22); }
.contact-side .row .k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 6px;
}
.contact-side .row .v { font-size: 18px; }
.contact-side .row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- CTA band ---------- */

.cta {
  padding: 76px var(--pad);
  background: var(--accent);
  color: var(--cream);
}
.cta .eyebrow-cta { opacity: 0.85; margin-bottom: 24px; }
.cta h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 840px;
  margin-bottom: 18px;
}
.cta p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
  opacity: 0.92;
  margin-bottom: 36px;
}
.cta .btn { background: var(--cream); color: var(--accent-dk); }
.cta .btn:hover { background: var(--bg); }

/* ---------- footer ---------- */

.site-foot { padding: 56px var(--pad) 32px; border-top: 2px solid var(--ink); }

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.foot-top .blurb { max-width: 420px; }
.foot-top .blurb .logo { display: block; margin-bottom: 14px; }
.foot-top .blurb p { font-size: 16.5px; line-height: 1.6; color: oklch(0.38 0.02 50); }

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: oklch(0.45 0.03 50);
}
.foot-bot div + div { margin-top: 6px; }
.foot-bot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  :root { --pad: 56px; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 48px; }
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-list { grid-column: 2; padding-top: 4px; }
}

@media (max-width: 760px) {
  :root { --pad: 24px; }
  .site-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-head .logo img { width: 200px; }
  .site-nav { gap: 18px 22px; }
  .hero { padding: 56px var(--pad) 44px; }
  .ruled-row { grid-template-columns: 32px 1fr; gap: 16px; }
  .ruled-row p { grid-column: 2; }
  .cred-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 56px var(--pad); }
  .foot-nav { text-align: left; }
}
