/* onezero3one — site styles. Colours measured from the brand picture (see brand-source/COLORS.txt). */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/cormorant-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #18181a;        /* brand black */
  --ink-soft: #232325;   /* brand black, light */
  --paper: #f3e6df;      /* brand ivory (the logo's writing colour) */
  --paper-deep: #eadbd2; /* ivory, slightly deeper, for inputs and rules */
  --muted: #5a544f;      /* secondary text on ivory (contrast 6.7:1) */
  --rule: #c9b9ae;
  --error: #8a1f1f;      /* on ivory 7.6:1 */
  --ok: #1f5a33;
  --measure: 62ch;
  --gutter: 16px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::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: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

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

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--paper); color: var(--ink);
  padding: 0.5rem 0.9rem; z-index: 10; font-size: 0.9rem;
}
.skip-link:focus { top: var(--gutter); }

.wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }
.measure { max-width: var(--measure); }

/* Header and footer bands: brand black with the ivory wordmark */
.band { background: var(--ink); color: var(--paper); }

.site-header { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 6vw, 4rem); }
.site-header .wordmark { width: min(100%, 760px); margin-inline: auto; }
.site-header .wordmark img { width: 100%; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); margin: 0 0 1.25rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 2rem;
  max-width: 34ch;
}
.cta {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink);
}
.cta:hover, .cta:focus-visible { background: var(--paper); color: var(--ink); }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
p { margin: 0 0 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step;
  display: grid; gap: 2rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; }
.steps h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2;
  margin: 0 0 0.6rem;
}
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.22em;
  color: var(--muted); font-weight: 500; margin-bottom: 0.9rem;
}
.steps p { margin: 0; }

/* Contact form */
.form { max-width: 560px; margin-top: 1.5rem; }
.field { margin-bottom: 1.4rem; }
label {
  display: block; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 0.5rem;
}
.req { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--paper-deep);
  border: 0; border-bottom: 1px solid var(--ink);
  padding: 0.8rem 0.75rem;
  border-radius: 0;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[aria-invalid="true"] { border-bottom: 2px solid var(--error); }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0.45rem 0 0; }
.error-text { font-size: 0.85rem; color: var(--error); margin: 0.45rem 0 0; }
.error-text:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.cta { font-family: inherit; cursor: pointer; }
button.cta[disabled] { opacity: 0.6; cursor: wait; }
.status { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); font-size: 0.95rem; }
.status:empty { display: none; }
.status.ok { border-color: var(--ok); color: var(--ok); }
.status.err { border-color: var(--error); color: var(--error); }

/* Footer */
.site-footer { padding: clamp(2rem, 5vw, 3.5rem) 0; font-size: 0.875rem; line-height: 1.7; }
.site-footer .wordmark { width: min(100%, 300px); margin-bottom: 1.6rem; }
.site-footer .wordmark img { width: 100%; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer nav { margin-top: 1.2rem; }
.site-footer nav a { margin-right: 1.4rem; }
.site-footer nav a:last-child { margin-right: 0; }

/* Secondary pages */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: none; }
.page h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.5rem; }
.back { display: inline-block; margin-bottom: 2rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

.copyright { margin-top: 1.2rem; }

h1, h2, h3, .lead { font-variant-numeric: lining-nums; }
