/* Mevda: one page, one accent (ink navy), warm greys. 8px spacing base. Light only. */

:root {
  color-scheme: light;
  --bg: #FAFAF7;
  --surface: #F0EFEA;
  --text: #1C1B19;
  --text-2: #53514C;
  --text-3: #6B6964;
  --border: #E2E0D9;
  --accent: #1E3A5F;
  --accent-hover: #284B78;
  --accent-press: #162C48;
  --on-accent: #F7F7F4;
  --focus: #3D6FAE;
  --band-bg: #1E2A38;
  --band-text: #ECEAE5;
  --band-text-2: #B4B9C0;
  --success: #2F6B3F;
  --danger: #A33A2C;
  --band-success: #9FD6AC;
  --band-danger: #F2A99C;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 8px;
  --r-md: 16px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; color: var(--text); }
p { margin: 0; }
a { color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1056px, 100% - 48px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1056px, 100% - 96px); } }

.skip {
  position: absolute; left: 16px; top: -48px;
  padding: 8px 16px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 16px; }

/* Header */
.site-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-top: 32px; padding-bottom: 32px;
}
.wordmark {
  font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.header-link {
  font-size: 16px; color: var(--text-2); text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.header-link:hover { color: var(--text); border-bottom-color: var(--border); }
.header-link:active { color: var(--accent); }

/* Hero: one statement, no card, no pitch */
.hero { padding-top: 64px; padding-bottom: 112px; }
@media (min-width: 960px) { .hero { padding-top: 120px; padding-bottom: 160px; } }
.hero h1 {
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 13.5em;
  text-wrap: balance;
}
.lead {
  margin-top: 32px; max-width: 32em;
  font-size: 21px; line-height: 1.55; color: var(--text-2);
  text-wrap: pretty;
}
@media (min-width: 960px) { .lead { font-size: 23px; margin-top: 40px; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }

/* Buttons (used on the 404 page) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.3;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }

/* Editorial bands: label left, content right */
.band {
  display: grid; gap: 24px;
  padding-top: 72px; padding-bottom: 72px;
  border-top: 1px solid var(--border);
}
@media (min-width: 960px) {
  .band { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px; padding-top: 96px; padding-bottom: 96px; }
}
.label {
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.4;
  color: var(--text-3);
}
@media (min-width: 960px) { .label { padding-top: 6px; } }

.rows { display: grid; gap: 40px; max-width: 40em; }
.row h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; }
.row p { margin-top: 8px; color: var(--text-2); }

.prose { max-width: 38em; }
.prose p + p { margin-top: 20px; }
.prose p { color: var(--text-2); }
.prose-lead { font-family: var(--serif); font-size: 26px; line-height: 1.45; color: var(--text) !important; letter-spacing: -0.005em; }
.portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin-bottom: 32px; display: block; }

/* Contact: the one dark band */
.contact-band { background: var(--band-bg); color: var(--band-text); }
.contact-inner {
  display: grid; gap: 24px;
  padding-top: 80px; padding-bottom: 88px;
}
@media (min-width: 960px) {
  .contact-inner { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px; padding-top: 104px; padding-bottom: 112px; }
}
.contact-band .label { color: var(--band-text-2); }
.contact-lead {
  max-width: 30em;
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -0.01em;
  color: var(--band-text);
  text-wrap: pretty;
}
.contact-note { margin-top: 20px; max-width: 36em; font-size: 17px; color: var(--band-text-2); }

.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }
.email {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.2;
  color: var(--band-text); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--band-text) 35%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-decoration-color 160ms var(--ease-out), color 160ms var(--ease-out);
  overflow-wrap: anywhere;
}
.email:hover { text-decoration-color: currentColor; }
.email:active { color: var(--band-text-2); }
.contact-band :focus-visible { outline-color: var(--band-text); }

.btn-copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-sm);
  background: transparent; color: var(--band-text-2);
  border: 1px solid color-mix(in srgb, var(--band-text) 22%, transparent);
  font-family: var(--sans); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn-copy:hover { background: color-mix(in srgb, var(--band-text) 8%, transparent); color: var(--band-text); }
.btn-copy:active { transform: scale(0.97); background: color-mix(in srgb, var(--band-text) 14%, transparent); }
.btn-copy:disabled { opacity: 0.45; cursor: default; }
.btn-copy .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-copy .icon-check { display: none; }
.btn-copy.is-copied { color: var(--band-success); border-color: color-mix(in srgb, var(--band-success) 45%, transparent); }
.btn-copy.is-copied .icon-copy { display: none; }
.btn-copy.is-copied .icon-check { display: inline; }
.copy-status { min-height: 1.6em; margin-top: 12px; font-size: 15px; color: var(--band-text-2); }
.copy-status.is-error { color: var(--band-danger); }

/* 404 */
.notfound { padding-top: 96px; padding-bottom: 128px; }
.notfound h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -0.02em; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 32px; padding-bottom: 48px;
  font-size: 15px; color: var(--text-3);
}
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
