/* Woodland Garage
   Night pine, invoice paper, brass hardware.
   Display is condensed American gothic to match the winged badge.
   Almost no radius — this is a workshop, not an app. */

:root {
  --night: #101410;
  --bay: #161b17;
  --pine: #222b24;
  --needle: #6d8458;
  --brass: #c4a15a;
  --brass-deep: #8a6e34;
  --paper: #e6e1d2;
  --paper-2: #d5cfbd;
  --ink: #141610;
  --ink-soft: #3c4138;
  --steel: #8b9086;
  --line: rgba(20, 22, 16, 0.14);
  --line-light: rgba(230, 225, 210, 0.16);
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 74rem;
  --pad: clamp(1.15rem, 3.4vw, 2.2rem);
  --mast: 4.6rem;
}

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

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--brass-deep); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 80;
  background: var(--brass);
  color: var(--night);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.7rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9vw, 6.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: 0.04em; }

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  max-width: 40rem;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li + li { margin-top: 0.35rem; }

/* ---------- mast ---------- */

.mast {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  color: var(--paper);
}

.has-hero .mast {
  background: linear-gradient(180deg, rgba(16, 20, 16, 0.62), transparent);
}

.has-bar .mast {
  position: sticky;
  top: 0;
  background: var(--night);
  border-bottom: 1px solid var(--line-light);
}

.mast-inner {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
  min-height: var(--mast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand { display: block; flex: 0 0 auto; text-decoration: none; }
.brand img { width: min(11.4rem, 46vw); height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--paper);
  opacity: 0.78;
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
  color: var(--brass);
}

.nav-phone {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--brass);
  color: var(--brass) !important;
  opacity: 1 !important;
}

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  position: relative;
  background: none;
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  pointer-events: none;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--paper);
  background: var(--night);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 20, 16, 0.35) 0%, rgba(16, 20, 16, 0.08) 32%, rgba(16, 20, 16, 0.72) 72%, #101410 100%),
    linear-gradient(90deg, rgba(16, 20, 16, 0.45), transparent 46%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 4.2rem;
}

.hero .stamp { color: var(--brass); }

.hero h1 {
  max-width: 14ch;
  margin-bottom: 0.45em;
  text-shadow: 0 2px 28px rgba(16, 20, 16, 0.45);
}

.hero .lede {
  color: var(--paper-2);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

.btn-brass {
  background: var(--brass);
  color: var(--night);
  border-color: var(--brass);
}

.btn-brass:hover { background: #d4b36a; color: var(--night); }

.btn-ghost {
  border-color: var(--paper-2);
  color: var(--paper);
}

.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.btn-ink {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ink:hover { background: var(--ink); color: var(--paper); }

/* ---------- sections ---------- */

.section { padding: clamp(3.4rem, 8vw, 6.2rem) 0; }

.section-night {
  background: var(--night);
  color: var(--paper);
}

.section-pine { background: var(--bay); color: var(--paper); }

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 2.2rem;
}

.wing {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.4rem;
}

.wing i {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
}

.wing b {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.45;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: end;
}

.score {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.score span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.score a { text-decoration: none; }

/* ---------- work tiles ---------- */

.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.lane {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  background: var(--bay);
  color: var(--paper);
  text-decoration: none;
  display: block;
}

.lane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}

.lane:hover img { transform: scale(1.04); }

.lane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 16, 0.05), rgba(16, 20, 16, 0.82));
}

.lane-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.4rem 1.35rem 1.25rem;
}

.lane-copy h3 { margin-bottom: 0.25em; }
.lane-copy p { color: var(--paper-2); max-width: 28rem; }

/* ---------- floor ---------- */

.floor {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.7rem;
}

.floor a {
  display: block;
  overflow: hidden;
  background: var(--pine);
  text-decoration: none;
}

.floor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform 0.6s ease;
}

.floor a:hover img { transform: scale(1.03); }

.floor a:first-child { grid-row: span 2; }
.floor a:first-child img { aspect-ratio: auto; height: 100%; min-height: 100%; }

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}

.split img { width: 100%; height: 100%; object-fit: cover; }

.frame {
  background: var(--pine);
  min-height: 22rem;
}

.frame img { min-height: 22rem; }

.checks {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.checks li {
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 1px;
  background: var(--brass-deep);
}

/* ---------- page hero ---------- */

.page-hero {
  background: var(--night);
  color: var(--paper);
  padding: 2.6rem 0 2.8rem;
}

.page-hero h1 { max-width: 16ch; }

.page-hero.with-photo {
  position: relative;
  min-height: 28rem;
  display: grid;
  align-items: end;
  padding-bottom: 2.6rem;
}

.page-hero.with-photo .back {
  position: absolute;
  inset: 0;
}

.page-hero.with-photo .back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero.with-photo .back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,20,16,.45), rgba(16,20,16,.78));
}

.page-hero.with-photo .wrap { position: relative; z-index: 1; }

.prose { max-width: 42rem; }
.prose + .prose { margin-top: 2rem; }

.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.1rem; }
.prose li + li { margin-top: 0.35rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}

.side-photo img {
  width: 100%;
  object-fit: cover;
  min-height: 18rem;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}

.facts {
  display: grid;
  gap: 1.15rem;
}

.fact h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.fact a { text-decoration: none; }
.fact a:hover { text-decoration: underline; }

.map-frame {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  min-height: 16rem;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 16rem;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.ticket {
  background: #efe9d8;
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(20, 22, 16, 0.12);
}

.ticket-head,
.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--ink);
}

.ticket-foot {
  border-bottom: 0;
  border-top: 1px dashed var(--ink);
}

.ticket-foot p {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
  font-size: 0.86rem;
  max-width: 28rem;
  color: var(--ink-soft);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  padding: 1.1rem;
}

.fields label { display: grid; gap: 0.28rem; }
.fields label.span-2 { grid-column: 1 / -1; }

.fields span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fields em {
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--steel);
  margin-left: 0.35rem;
}

.fields input,
.fields select,
.fields textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  padding: 0.45rem 0;
  color: var(--ink);
  border-radius: 0;
}

.fields textarea { resize: vertical; min-height: 8rem; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--ink);
}

.notice-ok { background: #d9e4c8; }
.notice-bad { background: #ead4c4; }
.notice ul { margin: 0; padding-left: 1.1rem; }

/* ---------- cta / footer ---------- */

.cta-band {
  background: var(--pine);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 2rem;
  align-items: end;
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.colophon {
  background: var(--night);
  color: var(--paper-2);
  padding: 3.2rem 0 1.6rem;
  font-size: 0.95rem;
}

.colophon-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.8fr;
  gap: 2rem;
}

.colophon-brand img { width: 12rem; margin-bottom: 1rem; }
.colophon h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 0.7rem;
}

.colophon a { color: var(--paper); text-decoration: none; }
.colophon a:hover { color: var(--brass); }

.colophon-end {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- admin ---------- */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-new {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--brass);
  color: var(--night);
  padding: 0.1rem 0.35rem;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--pad);
}

.lost h1 { font-size: clamp(4rem, 12vw, 8rem); }

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: flex; z-index: 60; }

  .mast { z-index: 50; }
  .mast-inner { position: relative; }
  .brand img { width: 9rem; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 55;
    background: var(--night);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem var(--pad) 1.4rem;
    border-bottom: 1px solid var(--line-light);
    gap: 0.95rem;
  }

  .nav-check:checked ~ .mast-inner .nav,
  body.nav-open .nav { display: flex; }
  .nav-check:checked ~ .mast-inner,
  body.nav-open .mast { background: var(--night); }
  body:has(.nav-check:checked),
  body.nav-open { overflow: hidden; }

  .intro-grid,
  .lanes,
  .split,
  .two-col,
  .contact-grid,
  .cta-inner,
  .colophon-grid,
  .floor,
  .fields {
    grid-template-columns: 1fr;
  }

  .floor a:first-child { grid-row: auto; }
  .lane { min-height: 16.5rem; }
  .hero { min-height: 92svh; }
  .hero-copy { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lane img, .floor img { transition: none; }
}
