:root {
  --ink: #241c14;
  --fibre: #c99a57;
  --sack: #d8bf8e;
  --flax: #ece2c8;
  --field: #2b4429;
  --dye: #a32a1f;
  --line: rgba(36, 28, 20, 0.22);

  --display: "Saira Stencil One", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--flax);
}

img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--dye);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--flax);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.5rem var(--pad);
  background: var(--flax);
  border-bottom: 1px solid var(--line);
}

.brand { display: block; line-height: 0; }
.brand img { display: block; height: 3.25rem; width: auto; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-header nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-cta {
  background: var(--ink);
  color: var(--flax);
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover { background: var(--dye); text-decoration: none !important; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 2rem;
  padding: var(--pad);
  background: var(--fibre);
  background-image:
    repeating-linear-gradient(0deg, rgba(36, 28, 20, 0.09) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(36, 28, 20, 0.09) 0 1px, transparent 1px 5px);
}

.stencil-panel {
  /* stitched edge, like the seam of a sack */
  border: 3px dashed var(--ink);
  padding: clamp(1rem, 3vw, 2.5rem);
}

.stencil {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.5rem, 21vw, 15rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.stencil span { display: block; }

.hero-copy { max-width: 34rem; align-self: end; }
.lead {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.hero-copy p { margin: 0 0 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
}
.btn-solid { background: var(--ink); color: var(--flax); }
.btn-solid:hover { background: var(--dye); border-color: var(--dye); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--flax); }

@media (min-width: 60rem) {
  .hero { grid-template-columns: 7fr 5fr; align-items: stretch; }
}

/* Only motion on the page: the stencil settles in once */
@media (prefers-reduced-motion: no-preference) {
  .stencil { animation: settle 0.9s ease-out both; }
  @keyframes settle {
    from { letter-spacing: 0.12em; opacity: 0; }
    to   { letter-spacing: 0.01em; opacity: 1; }
  }
}

.badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--ink);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
}

.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.section-head p { margin: 0; }

/* Products: ruled groups with photo grids */
.group { border-top: 2px solid var(--ink); padding-top: 1.25rem; margin-bottom: 3.5rem; }
.group-title { margin: 0; font-size: 1.4rem; }
.group-note { margin: 0.25rem 0 1.75rem; max-width: 42rem; color: var(--field); font-weight: 500; }

.grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.card { display: flex; flex-direction: column; }
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sack);
  border: 1px solid var(--line);
}
.code { margin: 0.75rem 0 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--dye); }
.card h4 { margin: 0.1rem 0 0.4rem; font-size: 1.15rem; line-height: 1.25; }
.card p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.card .code { margin: 0.75rem 0 0; font-size: 0.8rem; }
.card .use { font-size: 0.88rem; color: var(--field); }
.price { font-weight: 600; font-size: 1.05rem !important; }

/* Custom */
.spec {
  display: grid;
  gap: 0;
  margin: 0 0 3rem;
  border-top: 2px solid var(--ink);
}
.spec div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-weight: 600; }
.spec dd { margin: 0; }

@media (min-width: 52rem) {
  .spec { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

.why {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}
.why li {
  padding-left: 1rem;
  border-left: 4px solid var(--field);
}

/* Process: a real sequence, so numbered */
.process {
  max-width: none;
  background: var(--field);
  color: var(--flax);
}
.process > * { max-width: var(--max); margin-inline: auto; }
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--fibre);
  margin-bottom: 0.5rem;
}
.steps h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.steps p { margin: 0; opacity: 0.9; }

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}

/* Contact */
.contact { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .contact { grid-template-columns: 4fr 5fr; } }

address { font-style: normal; margin-top: 1.5rem; }
address p { margin: 0 0 1rem; }
address a { text-underline-offset: 3px; }

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fbf7ea;
  color: var(--ink);
  width: 100%;
}
.form button { justify-self: start; }
.trap { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--field); }
.form-status.err { color: var(--dye); }

/* Footer */
.site-footer {
  padding: 2.5rem var(--pad);
  background: var(--ink);
  color: var(--flax);
}
.site-footer p { margin: 0 0 0.25rem; font-size: 0.95rem; }
.foot-brand { font-family: var(--display); font-size: 1.6rem !important; }
