/* ─────────────────────────────────────────────────────────────────────────
   torigreene.com
   Tokens are lifted from the "Organic" design system that the design canvas
   was built on. Two deliberate deviations from it, both noted inline below:
   the primary-button and link colours, which fail WCAG AA as specified.
   ───────────────────────────────────────────────────────────────────────── */

/* Self-hosted so the page has no third-party origin to reach at render time.
   Caprasimo is subset to the eleven characters of the wordmark (1.5KB). */
@font-face {
  font-family: "Caprasimo";
  src: url("/fonts/caprasimo-wordmark.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+0047, U+0054, U+0065, U+0067, U+006E, U+006F, U+0072, U+0069;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;

  --color-accent: #c67139;
  /* AA fix: #c67139 gives 3.03:1 against both the cream ground and cream text.
     accent-700 is 5.72:1 in both directions, so it carries buttons and links. */
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;

  --font-heading: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  --gut: 64px;   /* horizontal page gutter, narrows with the viewport */
  --rule: 2px solid var(--color-text);
  --hair: 1px solid var(--color-divider);
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-synthesis-weight: none;
}

/* height:auto is load-bearing: with width/height attributes present (which
   they must be, for CLS), max-width alone squashes the aspect ratio. */
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--color-text); color: var(--color-bg);
  padding: 10px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; color: var(--color-bg); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The canvas rendered the whole site as one 1280px sheet on a coloured ground. */
.sheet {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Photographs are toned down so they sit in the palette rather than shouting
   over it — the design system calls this "washed". */
.washed { filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); }

/* ── masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; padding: 32px var(--gut) 18px; border-bottom: var(--rule);
}
.wordmark {
  font-family: var(--font-heading); font-size: 46px; line-height: 1;
  color: var(--color-text); text-decoration: none; display: block;
}
.wordmark:hover { color: var(--color-text); }
.role {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-neutral-700); margin-top: 8px;
}
.masthead nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; font-weight: 600; padding-bottom: 6px;
}
/* :not(.btn) is load-bearing — this selector outweighs .btn-primary, so
   without it the nav button renders ink-on-terracotta at 2.43:1. */
.masthead nav a:not(.btn) { color: var(--color-text); text-decoration: none; }
.masthead nav a:not(.btn):hover { color: var(--color-accent-700); }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 14px;
}
.btn-primary { background: var(--color-accent-700); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-800); color: var(--color-bg); }
.btn-secondary { border-color: var(--color-divider); color: var(--color-text); background: transparent; }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 10px 18px; }

/* ── hero ─────────────────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1.55fr 1fr; }
.split > :first-child { border-right: var(--hair); }

.hero-main { padding: 52px 48px 44px var(--gut); }
.hero-main h1 {
  margin: 0 0 22px; font-family: var(--font-body); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.03em;
}
.lede {
  margin: 0 0 26px; font-size: 20px; line-height: 1.55;
  color: var(--color-neutral-800); max-width: 640px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-aside { padding: 52px var(--gut) 44px 48px; }
.hero-aside img {
  width: 100%; height: 380px; object-fit: cover; object-position: 50% 32%;
  border-radius: var(--radius-sm); background: var(--color-surface);
}
.caption {
  font-size: 13px; line-height: 1.5; color: var(--color-neutral-700); margin-top: 10px;
}

/* ── services strip ───────────────────────────────────────────────────── */

.strip {
  border-top: var(--hair); background: var(--color-surface);
  padding: 30px var(--gut);
}
.strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
.strip h2 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; font-size: 17px; }
.strip p { margin: 0; font-size: 14px; color: var(--color-neutral-800); }

/* ── section furniture ────────────────────────────────────────────────── */

.band { border-top: var(--rule); }
.band-hair { border-top: var(--hair); }
.pad { padding: 48px var(--gut); }
.tinted { background: var(--color-surface); }

.kicker {
  margin: 0 0 16px; font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--color-accent-700);
}
.kicker-muted { color: var(--color-neutral-700); }

/* ── latest writing ───────────────────────────────────────────────────── */

.writing-main { padding: 44px 48px 44px var(--gut); }
.writing-main h3 {
  margin: 0 0 18px; font-family: var(--font-body); font-weight: 700;
  font-size: clamp(28px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -0.03em;
}
.writing-main h3 a { color: var(--color-text); text-decoration: none; }
.writing-main h3 a:hover { color: var(--color-accent-700); }
.cols { columns: 2; column-gap: 36px; font-size: 16px; line-height: 1.6; color: var(--color-neutral-800); }
.cols p { margin: 0 0 13px; }
.cols p:first-child { margin-top: 0; }
.cols p:last-child { margin-bottom: 0; }
.writing-main .btn { margin-top: 22px; }

.writing-aside { padding: 44px var(--gut) 44px 48px; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist a {
  display: block; padding: 13px 0; border-top: var(--hair);
  text-decoration: none; color: var(--color-text); font-weight: 700; font-size: 16px;
}
.linklist li:last-child a { border-bottom: var(--hair); }
.linklist a:hover { color: var(--color-accent-700); }
.writing-aside img { margin-top: 20px; border-radius: var(--radius-sm); background: var(--color-surface); }

/* ── music ────────────────────────────────────────────────────────────── */

.music-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.music-grid img {
  width: 100%; height: 300px; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius-sm); background: var(--color-bg);
}
.meta { font-size: 13px; color: var(--color-neutral-700); margin-bottom: 6px; }
.music-grid h3 {
  margin: 0 0 14px; font-family: var(--font-body); font-weight: 700;
  font-size: clamp(26px, 2.9vw, 36px); letter-spacing: -0.025em;
}
.music-grid p { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── invite ───────────────────────────────────────────────────────────── */

.intro { margin: 0 0 24px; font-size: 17px; color: var(--color-neutral-800); max-width: 640px; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; }
.offers li { padding: 20px 0; border-top: var(--hair); }
.offers h3 { margin: 0 0 5px; font-family: var(--font-body); font-weight: 700; font-size: 18px; }
.offers p { margin: 0; font-size: 15px; color: var(--color-neutral-800); }

/* ── about ────────────────────────────────────────────────────────────── */

.about { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.about-lede { font-size: 19px; line-height: 1.6; margin: 0 0 20px; }
.about .cols { font-size: 16px; line-height: 1.65; color: inherit; column-gap: 40px; }
.about img { width: 340px; height: 340px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface); }

/* ── contact ──────────────────────────────────────────────────────────── */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 {
  margin: 0 0 12px; font-family: var(--font-body); font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.025em;
}
.contact > div > p { margin: 0; font-size: 16px; color: var(--color-neutral-800); max-width: 400px; }
.email { font-size: 15px; margin-top: 12px; }

form { display: flex; flex-direction: column; gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent-700);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent-700); outline-offset: 0; }
textarea.input { min-height: 96px; resize: vertical; }
form .btn { align-self: flex-start; padding: 12px 24px; }

/* The honeypot is a real field a human never sees and never tabs into. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; font-size: 14px; font-weight: 600; }
.form-status[data-state="error"] { color: var(--color-accent-800); }
.form-status:empty { display: none; }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot {
  padding: 24px var(--gut); border-top: var(--hair);
  display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: space-between;
  font-size: 14px; color: var(--color-neutral-700);
}
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  :root { --gut: 40px; }
  .strip ul { grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
  .offers { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr 260px; gap: 40px; }
  .about img { width: 260px; height: 260px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > :first-child { border-right: 0; }
  .hero-main, .writing-main { padding: 40px var(--gut) 8px; }
  .hero-aside, .writing-aside { padding: 24px var(--gut) 40px; }
  .hero-aside img { height: 320px; }
  .music-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about img { width: 100%; height: 320px; }
  .cols { columns: 1; }
}

@media (max-width: 620px) {
  :root { --gut: 22px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 16px; }
  .masthead nav { flex-wrap: wrap; gap: 16px; padding-bottom: 0; }
  .wordmark { font-size: 38px; }
  .strip ul, .offers { grid-template-columns: 1fr; }
  .offers { gap: 0; }
  .pair { grid-template-columns: 1fr; }
  .pad { padding: 36px var(--gut); }
  .sheet { box-shadow: none; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
