/* White Horse Home Group: ported from the Claude artifact of the same name. */
/* Layout: spruce header band, split hero (words left, portrait right), quiet single-column story sections, phone number as the closing call */
:root {
  --bg: #f6f7f4;
  --surface: #ecefe9;
  --fg: #1c2421;
  --muted: #56615c;
  --spruce: #1f3a33;
  --on-spruce: #f6f7f4;
  --brass: #9a7632;
  --line: #d5dbd4;
  --display: "Gloock", "Georgia", "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111816; --surface: #18221f; --fg: #e7ebe6; --muted: #a3ada8;
    --spruce: #1a302a; --on-spruce: #eef1ec; --brass: #d0ad68; --line: #2a3832;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111816; --surface: #18221f; --fg: #e7ebe6; --muted: #a3ada8;
  --spruce: #1a302a; --on-spruce: #eef1ec; --brass: #d0ad68; --line: #2a3832;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--on-spruce); color: var(--spruce); padding: 10px 16px; }
.skip:focus { left: 16px; top: 8px; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--spruce); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Header */
header.top { background: var(--spruce); color: var(--on-spruce); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 60px; height: 55px; flex: none; }
.brand svg { fill: var(--on-spruce); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.01em; }
.wordmark span { font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 5px; opacity: 0.85; }
nav.links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
nav.links a { text-decoration: none; opacity: 0.9; }
nav.links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
nav.links .phone { font-variant-numeric: tabular-nums; font-weight: 600; border: 1px solid color-mix(in srgb, var(--on-spruce) 45%, transparent); padding: 6px 14px; border-radius: 999px; opacity: 1; }
@media (max-width: 640px) { nav.links .opt { display: none; } }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero .text { min-width: 0; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin: 0 0 18px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; margin: 0 0 22px; text-wrap: balance; letter-spacing: -0.01em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--spruce); color: var(--on-spruce); text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; border: 0; cursor: pointer; font-family: inherit; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.12); }
.portrait { position: relative; margin: 0; }
.portrait img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 6px; }
.portrait figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 26px; gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.9rem; color: var(--muted); }

/* Story sections */
section.story .wrap { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 5vw, 64px); padding-block: clamp(48px, 7vw, 84px); border-bottom: 1px solid var(--line); }
section.story:last-of-type .wrap { border-bottom: 0; }
section.story h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.12; margin: 0; text-wrap: balance; }
section.story .body { min-width: 0; max-width: 40em; }
section.story p { margin: 0 0 1.1em; }
section.story p:last-child { margin-bottom: 0; }

.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.move { border-top: 2px solid var(--brass); padding-top: 14px; }
.move h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 0 0 6px; }
.move p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Contact */
.contact { background: var(--spruce); color: var(--on-spruce); position: relative; overflow: hidden; }
.contact .bg-horse { position: absolute; right: -40px; bottom: -60px; width: min(520px, 70vw); height: auto; fill: var(--on-spruce); opacity: 0.06; pointer-events: none; }
.contact .wrap { position: relative; }
.contact .wrap { padding-block: clamp(52px, 8vw, 96px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.contact h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 0 0 14px; text-wrap: balance; }
.contact p { margin: 0; max-width: 34em; opacity: 0.88; }
.callbox { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.callbox .label { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.8; }
.callbox .num { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; text-decoration: none; user-select: all; }
.callbox .row { display: flex; gap: 10px; flex-wrap: wrap; }
.callbox .email { font-size: 1.1rem; word-break: break-all; user-select: all; }
.contact .btn { background: var(--on-spruce); color: var(--spruce); }
.contact .btn.ghost { background: transparent; color: var(--on-spruce); border-color: color-mix(in srgb, var(--on-spruce) 40%, transparent); }

footer { font-size: 0.85rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 26px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; width: 100%; margin: 0 auto; order: -1; }
  section.story .wrap { grid-template-columns: 1fr; }
  .moves { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 520px) {
  .facts .wrap { grid-template-columns: 1fr; gap: 14px; }
  .fact { flex-direction: row; align-items: baseline; gap: 12px; }
  .wordmark b { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
