@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --walnut: #3a2618;
  --walnut-deep: #24140c;
  --brass: #a6853c;
  --brass-soft: #c4a35a;
  --tan: #e7d7be;
  --panel: #f0e6d4;
  --ink: #1a1410;
  --muted: #5c4e40;
  --rule: #c4b194;
  --radius: 3px;
  --rail: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--tan);
  background-image:
    linear-gradient(90deg, rgba(58, 38, 24, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(58, 38, 24, 0.035) 1px, transparent 1px);
  background-size: 72px 24px;
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  z-index: 80;
  padding: 0.45rem 0.8rem;
  background: var(--walnut);
  color: var(--panel);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

h1,
h2,
h3,
.mark__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.45em;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.6em;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38em;
}

.rule {
  height: 3px;
  margin: 0 0 1.4rem;
  background:
    linear-gradient(var(--walnut), var(--walnut)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 0 100% / 36% 1px no-repeat;
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55em 1.15em;
  border-radius: var(--radius);
  border: 1px solid var(--walnut);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn {
  background: var(--walnut);
  color: var(--panel);
}

.btn:hover,
.btn:focus-visible {
  background: var(--walnut-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--walnut);
  border-color: var(--brass);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(166, 133, 60, 0.12);
}

.rail {
  border-bottom: 3px double var(--walnut);
  background: var(--panel);
}

.rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--rail);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}

.mark img {
  width: 42px;
  height: 42px;
  flex: none;
}

.mark__name {
  font-size: 1.05rem;
  line-height: 1.1;
}

.mark__ltd {
  display: block;
  margin-top: 0.15em;
  color: var(--muted);
  font-family: Figtree, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.rail__toggle {
  display: none;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--walnut);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.rail__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.rail__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.2em 0 0.2em 0.55em;
  border-left: 2px solid transparent;
}

.rail__nav a:hover,
.rail__nav a:focus-visible,
.rail__nav a.is-current {
  border-left-color: var(--brass);
}

.rail__nav .btn {
  border-left: 1px solid var(--walnut);
  padding: 0.55em 1.15em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100vh - var(--rail));
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.4rem, 4vw, 3.5rem);
}

.hero__visual {
  min-height: 320px;
  background-color: var(--walnut-deep);
  background-image: url("../images/hero-elevation.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
}

.hero__visual.is-drawn .elevation-draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
}

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

.stave {
  padding: clamp(2.4rem, 5vw, 4.5rem) 0;
}

.stave--walnut {
  background: var(--walnut);
  color: var(--panel);
}

.stave--walnut .kicker,
.stave--walnut .lead,
.stave--walnut .muted {
  color: #d8c7a8;
}

.stave--panel {
  background: var(--panel);
}

.jobcard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--walnut);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--walnut);
}

.jobcard__cell {
  padding: 1.1rem 1.15rem 1.2rem;
  border-right: 1px solid var(--rule);
}

.jobcard__cell:last-child {
  border-right: 0;
}

.jobcard__cell span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jobcard__cell strong {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
}

.boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.board {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--walnut);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background-image: linear-gradient(90deg, var(--brass), var(--brass));
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 0;
}

.board:hover,
.board:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--walnut);
}

.board img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--rule);
  background-color: var(--panel);
}

.board__body {
  padding: 1rem 1.1rem 1.2rem;
}

.board__meta {
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cutting-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--walnut);
}

.cut {
  padding: 1.3rem 1.1rem 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.cut em {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brass);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-style: normal;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 2.5rem;
}

.note {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--rule);
  background: rgba(58, 38, 24, 0.04);
}

.note strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--walnut);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
}

.page-head {
  padding: 3rem 0 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}

.prose {
  max-width: 42em;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
}

.prose code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

.side-note {
  padding: 1.1rem 1.15rem;
  border-left: 3px solid var(--brass);
  background: var(--panel);
}

.address {
  font-style: normal;
  line-height: 1.7;
}

.link-list {
  display: grid;
  gap: 0.45rem;
}

.link-list a {
  color: var(--walnut);
}

.plinth {
  background: var(--walnut-deep);
  color: #eadcc6;
  padding: 2.4rem 0 1.4rem;
}

.plinth a {
  color: #eadcc6;
}

.plinth__job {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(196, 177, 148, 0.35);
}

.plinth__job strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  color: #f0e6d4;
}

.plinth__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.plinth h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: var(--brass-soft);
}

.plinth__cols a {
  display: block;
  margin: 0.28rem 0;
  text-decoration: none;
}

.plinth__cols a:hover,
.plinth__cols a:focus-visible {
  text-decoration: underline;
}

.plinth__copy {
  margin: 1.6rem 0 0;
  color: #b9a88c;
  font-size: 0.9rem;
}

.letter {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 1.6rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--walnut);
  background: var(--panel);
}

.letter label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.letter input,
.letter textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #f7f1e6;
  color: var(--ink);
  font: inherit;
}

.letter input:focus,
.letter textarea:focus {
  border-color: var(--walnut);
}

.letter button {
  justify-self: start;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero,
  .jobcard,
  .boards,
  .cutting-list,
  .split,
  .plinth__job,
  .plinth__cols {
    grid-template-columns: 1fr;
  }

  .jobcard__cell,
  .jobcard {
    border-right: 0;
    box-shadow: none;
  }

  .jobcard__cell {
    border-bottom: 1px solid var(--rule);
  }

  .rail__toggle {
    display: inline-flex;
    align-items: center;
  }

  .rail__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .rail__nav {
    display: none;
    width: 100%;
    padding: 0.4rem 0 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .rail__nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
