/* Orange Tree Media. Colours come from the logo. Orange is for shapes and accents only:
   it fails contrast as text on the light background, so text uses --accent-text. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --orange: #f47d29;
  --orange-light: #f7921e;
  --green: #398c41;
  --green-bright: #39b54a;
  --lime: #87c440;

  --bg: #fbf6ee;
  --surface: #ffffff;
  --ink: #221c18;
  --ink-soft: #5a5049;
  --line: #eadfce;
  --accent-text: #a94b17;
  --accent-tint: #fde8d6;
  --band-bg: #221c18;
  --band-ink: #f6eee4;
  --band-soft: #cbbfb2;
  --btn-bg: #221c18;
  --btn-ink: #fbf6ee;
  --focus: #f47d29;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}


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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 1rem/1 var(--sans); text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--orange); color: #1b1410; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { padding: 11px 18px; font-size: .9375rem; }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link:hover { color: var(--accent-text); }

/* Header */
.site-header { padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 42px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.site-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
  .brand span { font-size: 1.125rem; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orange-light) 16%, transparent), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent-text); }
.lede { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero-art { width: 100%; max-width: 460px; justify-self: end; }
.leaves { transform-origin: 304px 98px; }
@media (prefers-reduced-motion: no-preference) {
  .leaves { animation: sway 7s ease-in-out infinite; }
  @keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; justify-self: start; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 22ch; }

/* Services */
.cards { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(60, 30, 10, .35); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-tint); margin-bottom: 22px; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.375rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* How we work */
.band { background: var(--band-bg); color: var(--band-ink); border-radius: clamp(0px, 3vw, 36px); margin: 0 clamp(0px, 2vw, 24px); }
.band .eyebrow { color: var(--orange); }
.steps { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); padding-top: 24px; }
.steps li::before { content: "0" counter(step); display: block; font: 600 1rem/1 var(--serif); color: var(--orange); margin-bottom: 16px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; }
.steps p { color: var(--band-soft); }

/* Clients */
.client-names { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.client-names li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .9375rem; }
.quotes { margin-top: clamp(32px, 5vw, 48px); columns: 2 340px; column-gap: 20px; }
.quote { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 26px; }
.quote::before { content: "\201C"; display: block; height: 34px; font: 600 4.5rem/1 var(--serif); color: var(--orange); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.55; font-weight: 400; }
.quote figcaption { margin-top: 18px; color: var(--ink-soft); font-size: .9375rem; }
.quote figcaption strong { display: block; color: var(--ink); }

/* Contact */
.contact { padding-bottom: clamp(80px, 10vw, 128px); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-soft); max-width: 32em; }
.contact-alt a { color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -40px rgba(60, 30, 10, .45); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .9375rem; min-height: 1.5em; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--green); font-weight: 600; }
.form-done { text-align: left; }
.form-done h3 { font-size: 1.75rem; margin-bottom: 10px; }
.form-done p { color: var(--ink-soft); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-soft); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand-small { font-size: 1.05rem; color: var(--ink); }
.brand-small img { width: 28px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin-bottom: 16px; }
.notfound p { color: var(--ink-soft); margin-bottom: 28px; }
