/* Okumen — shared styles. Target: WCAG 2.2 AA / EN 301 549. */

@font-face {
  font-family: "Libre Caslon Text";
  src: url("fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --paper: #EDF1EC;
  --paper-deep: #E1E8E2;
  --rule: #C3D1C6;          /* decorative dividers only */
  --ink: #17241C;
  --ink-soft: #44564A;      /* 6.9:1 on paper */
  --bottle: #1F3B2D;
  --accent-text: #6E5214;   /* 6.2:1 on paper */
  --brass-light: #C9A456;
  --focus: #1F3B2D;
  --on-bottle: #EDF1EC;
  --on-bottle-soft: #C4D4C8;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121A15; --paper-deep: #18231C; --rule: #2E3F33;
    --ink: #E4EBE5; --ink-soft: #AEBFB3; --bottle: #8FBF9F;
    --accent-text: #E0C27A; --focus: #E0C27A;
  }
}
:root[data-theme="dark"] {
  --paper: #121A15; --paper-deep: #18231C; --rule: #2E3F33;
  --ink: #E4EBE5; --ink-soft: #AEBFB3; --bottle: #8FBF9F;
  --accent-text: #E0C27A; --focus: #E0C27A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
}
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--bottle); color: var(--paper); padding: 12px 18px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; }
.brand svg { width: 26px; height: 26px; flex: none; }
.head-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.head-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; color: var(--ink-soft); font-size: .98rem; }
.head-nav a:hover { color: var(--ink); text-decoration: underline; }
.head-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.head-nav .talk { color: var(--bottle); font-weight: 600; }

/* Hero */
.hero { padding: 88px 0 112px; }
h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.08; letter-spacing: -.01em; margin: 0 0 32px; max-width: 16ch;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--bottle); color: var(--paper); padding: 12px 26px; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-family: inherit; font-size: 1rem; border: 0; cursor: pointer;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-weight: 500; }

/* Sections */
.block { padding: 88px 0; border-top: 1px solid var(--rule); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 16px; }
.intro { color: var(--ink-soft); max-width: 38em; margin: 0 0 48px; font-size: 1.1rem; }

/* Services */
.ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; list-style: none; margin: 0; padding: 0; }
.entry { padding: 26px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 13em 1fr; gap: 20px; }
.entry h3 { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.entry p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* Engagement modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.mode { padding: 32px 30px; }
.mode + .mode { border-left: 1px solid var(--rule); }
.mode h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 6px; }
.mode .fit { color: var(--accent-text); font-weight: 600; font-size: .95rem; margin: 0 0 14px; }
.mode p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.about p { max-width: 36em; }
.facts { margin: 0; }
.facts div { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--serif); font-size: 1.35rem; color: var(--bottle); line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; color: var(--ink-soft); }

/* Contact (always dark green, in both colour schemes) */
.contact { background: #1F3B2D; color: var(--on-bottle); border-top: 0; --focus: #F2D58A; }
.contact h2 { color: #fff; max-width: 18ch; }
.contact .intro { color: var(--on-bottle-soft); }
.contact a { color: #fff; }
.contact .btn { background: var(--brass-light); color: #17241C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact { background: #1B2E22; } }
:root[data-theme="dark"] .contact { background: #1B2E22; }

.contact-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 64px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
.form label { font-size: .95rem; font-weight: 600; color: #fff; }
.form .req { font-weight: 400; color: var(--on-bottle-soft); }
.form .hint { font-size: .9rem; color: var(--on-bottle-soft); margin: 0 0 18px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: #17241C; background: #F7FAF7;
  border: 2px solid #9DB5A4; border-radius: 4px; padding: 10px 12px; width: 100%; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 140px; }
.form [aria-invalid="true"] { border-color: #FFB3A1; box-shadow: 0 0 0 2px #FFB3A1; }
.field-error { margin: 0; font-size: .92rem; color: #FFD2C6; font-weight: 600; }
.field-error:empty { display: none; }
.form-status { margin: 14px 0 0; min-height: 1.6em; color: #fff; }
.form-status.err { color: #FFD2C6; font-weight: 600; }
.privacy-note { font-size: .9rem; color: var(--on-bottle-soft); margin: 10px 0 0; max-width: 40em; }
.hp { display: none !important; }
.form button[disabled] { opacity: .7; cursor: wait; }
.direct { border-left: 1px solid #5A7A63; padding-left: 32px; }
.direct h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 8px; color: #fff; }
.direct p { margin: 0 0 6px; font-size: 1.1rem; }
.direct .small { font-size: .95rem; color: var(--on-bottle-soft); }

/* Legal / statement pages */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); max-width: none; }
.page h2 { font-size: 1.6rem; margin-top: 48px; }
.page p, .page li { max-width: 40em; }
.page .updated { color: var(--ink-soft); }

/* Footer */
footer { padding: 28px 0 40px; font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Responsive */
@media (max-width: 920px) {
  .about, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .ledger { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .mode + .mode { border-left: 0; border-top: 1px solid var(--rule); }
  .direct { border-left: 0; padding-left: 0; border-top: 1px solid #5A7A63; padding-top: 28px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 72px; }
  .block { padding: 64px 0; }
  .entry, .facts div { grid-template-columns: 1fr; gap: 6px; }
  .form { grid-template-columns: 1fr; }
}

/* Windows High Contrast / forced colours */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .form input, .form select, .form textarea { border-color: FieldText; }
}
