@font-face { font-family: "Geist"; src: url("fonts/Geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f3f4f0;
  --ink: #1d2622;
  --spruce: #284638;
  --muted: #56615b;
  --rule: #cfd3cc;
  --chalk: #2a63a8;
  /* Housewright's own palette, used only inside its section */
  --hw-bg: #15161a;
  --hw-raise: #1d1e23;
  --hw-text: #ece6d8;
  --hw-muted: #a9a397;
  --hw-ochre: #d4a046;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--chalk); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.top nav a:hover { color: var(--chalk); }

/* The mark: three houses and the moon behind them */
.mark .moon { fill: var(--spruce); }
.mark .roofs, .mark .walls { fill: none; stroke: var(--spruce); stroke-width: 3.2; stroke-linejoin: miter; stroke-linecap: square; }
/* the paper-colored line under the roofs cuts the moon, so the roof reads in front of it */
.mark .gap { fill: var(--paper); stroke: var(--paper); stroke-width: 8; stroke-linejoin: miter; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; padding-block: clamp(48px, 9vw, 120px) clamp(56px, 9vw, 128px); }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.03; letter-spacing: -0.035em; max-width: 13ch; }
.lead { margin-top: 28px; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.lead strong { color: var(--ink); font-weight: 600; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.button { display: inline-block; background: var(--spruce); color: var(--paper); text-decoration: none; font-weight: 500; padding: 13px 22px; border-radius: 6px; }
.button:hover { background: var(--ink); }
.hero-mark { width: 100%; max-width: 420px; justify-self: end; }
.hero-mark .roofs, .hero-mark .walls { stroke-width: 2.4; }

@media (prefers-reduced-motion: no-preference) {
  .hero-mark .roofs, .hero-mark .walls { stroke-dasharray: 1; stroke-dashoffset: 1; animation: scribe 1.5s cubic-bezier(.65, 0, .25, 1) .25s forwards; }
  .hero-mark .walls { animation-delay: 1.35s; animation-duration: .5s; }
  .hero-mark .moon { opacity: 0; transform: translateY(9px); transform-box: fill-box; animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) 1.5s forwards; }
}
@keyframes scribe { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Housewright */
.hw { background: var(--hw-bg); color: var(--hw-text); padding-block: clamp(64px, 9vw, 120px); }
.hw a { color: var(--hw-ochre); }
.hw :focus-visible { outline-color: var(--hw-ochre); }
.hw-head { display: flex; align-items: center; gap: 18px; }
.hw-head img { width: 60px; height: 60px; border-radius: 14px; }
.wordmark { font: 700 clamp(1.9rem, 4vw, 2.75rem)/1 Georgia, "Times New Roman", serif; letter-spacing: 0.03em; text-transform: uppercase; }
.wordmark span { color: var(--hw-ochre); }
.hw-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.hw-intro p { color: var(--hw-muted); font-size: 1.15rem; max-width: 38em; }
.hw-intro p strong { color: var(--hw-text); font-weight: 500; }

.product { display: grid; gap: 28px 56px; }
.product h3 { font-size: 1.5rem; }
.meta { margin-top: 6px; color: var(--hw-muted); font-size: 0.95rem; }
.meta .soon { color: var(--hw-ochre); }
.product .desc { margin-top: 16px; color: var(--hw-text); max-width: 34em; }
.shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(236, 230, 216, 0.1); background: #0d0e10; }
.product-desktop { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid rgba(236, 230, 216, 0.12); }
.product-phone { grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); align-items: start; }
.product-phone .shot { border-radius: 22px; aspect-ratio: 800 / 1180; }
.product-phone .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.caption { margin-top: 10px; font-size: 0.85rem; color: var(--hw-muted); }
.hw-more { margin-top: clamp(48px, 7vw, 80px); font-size: 1.1rem; }

/* How we build it */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--rule); }
.section > .wrap > h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; max-width: 20ch; }
.beliefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 48px; }
.beliefs h3 { font-size: 1.15rem; }
.beliefs p { margin-top: 10px; color: var(--muted); }

/* Company record */
.company { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.company .intro p { margin-top: 20px; color: var(--muted); max-width: 32em; }
.record { margin: 0; border-top: 2px solid var(--ink); }
.record div { display: grid; grid-template-columns: minmax(130px, 2fr) minmax(0, 5fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.record dt { color: var(--muted); }
.record dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.record dd span { display: block; font-weight: 400; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.contact p { color: var(--muted); max-width: 34em; }
.contact p + p { margin-top: 16px; }
.email { display: inline-block; margin-top: 24px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

/* Footer */
.foot { background: var(--spruce); color: #dfe5df; padding-block: 40px; font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot a { color: #ffffff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot :focus-visible { outline-color: #ffffff; }

/* Plain document pages (privacy) */
.doc { padding-block: clamp(40px, 7vw, 96px); max-width: 44rem; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
.doc .updated { margin-top: 12px; color: var(--muted); }
.doc h2 { font-size: 1.25rem; margin-top: 40px; }
.doc p, .doc ul { margin-top: 12px; }
.doc li + li { margin-top: 6px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { order: -1; justify-self: start; max-width: 160px; }
  .hw-intro, .product-desktop, .company, .contact { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr; gap: 56px; }
  .beliefs { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .product-phone { grid-template-columns: 1fr; }
  .product-phone .shot { max-width: 240px; }
  .record div { grid-template-columns: 1fr; gap: 2px; }
}
