/* The Axe Rack - local starter-page styles. Fonts are self-hosted (OFL). */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f3ebdf;
  --bg-warm: #e8dcc9;
  --paper: #fff9f1;
  --ink: #2a1f16;
  --ink-soft: #5c4634;
  --muted: #6f5b4a;
  --wood: #7a4a28;
  --wood-deep: #4e2c16;
  --brass: #a67c3d;
  --brass-light: #d4b483;
  --rule: #d7c7b2;
  --mahogany: #6e3124;
  --focus: #8b5a2b;
  --shadow: 0 12px 32px rgba(42, 31, 22, 0.08);
  --radius: 16px;
  --max: 1120px;
  --nav-h: 5.5rem;
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 450;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--wood); text-underline-offset: 0.18em; }
a:hover { color: var(--wood-deep); }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--wood-deep);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ----- typography ----- */
.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 48;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; font-weight: 550; }

.lede, .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 450;
  font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 28;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin: 0 0 1.25rem;
}

.lede { font-size: 1.2rem; margin: 0 0 1.25rem; }

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

.fine {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ----- layout ----- */
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-warm); }
.section-deep {
  background: var(--wood-deep);
  color: #f4eadc;
}
.section-deep h2,
.section-deep h3 { color: #fff9f1; }
.section-deep .lede,
.section-deep .fine { color: #e2d0b8; }
.section-deep .kicker { color: var(--brass-light); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem;
  align-items: start;
}
.hero .split { align-items: center; }
.split-flip .copy { order: 2; }
.split-flip .media { order: 1; }

.product-split {
  grid-template-areas:
    "head media"
    "body media";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
}
.product-split.split-flip {
  grid-template-areas:
    "media head"
    "media body";
}
.product-split .copy { display: contents; }
.product-split .section-head { grid-area: head; }
.product-split .section-body { grid-area: body; }
.product-split .media { grid-area: media; align-self: start; }
.product-split .section-head h2 { margin-bottom: 1.15rem; }

.media-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-card img { width: 100%; background: var(--paper); }
.media-caption {
  margin: 0;
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.stack { display: grid; gap: 1.1rem; }
.feature-list {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(166, 124, 61, 0.2);
}

/* ----- header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 235, 223, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  padding: 0.35rem 0;
}
.logo-mark {
  display: block;
  height: 4.75rem;
  width: auto;
}

#nav-toggle { position: absolute; appearance: none; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-btn {
  display: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  display: inline-block;
  background: var(--wood-deep);
  color: var(--paper);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}
.site-nav .nav-cta:hover { background: var(--wood); color: var(--paper); }

/* ----- buttons ----- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--wood-deep);
  color: var(--paper);
  border-color: var(--wood-deep);
}
.btn-primary:hover { background: var(--wood); color: var(--paper); border-color: var(--wood); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--wood);
}
.btn-ghost:hover { background: rgba(122, 74, 40, 0.08); color: var(--ink); }
.section-deep .btn-primary {
  background: var(--brass-light);
  color: var(--wood-deep);
  border-color: var(--brass-light);
}
.section-deep .btn-primary:hover { background: #e6c98e; color: var(--wood-deep); }
.section-deep .btn-ghost {
  color: #fff9f1;
  border-color: var(--brass-light);
}
.section-deep .btn-ghost:hover { background: rgba(255, 249, 241, 0.08); color: #fff9f1; }

/* ----- hero ----- */
.hero { padding: 3.25rem 0 4.5rem; }
.hero .split { gap: 2.5rem; }
.hero-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ----- product thumbs ----- */
.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* ----- shapes gallery ----- */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-top: 2rem;
}
.shape-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.shape-card svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 0.75rem;
}
.shape-card figcaption { margin: 0; }
.shape-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 1.15rem;
  color: var(--ink);
}
.concept-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ----- how it's made ----- */
.made-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.made-points {
  display: grid;
  gap: 1rem;
}
.made-point {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.made-point h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.made-point p { font-size: 1rem; color: var(--ink-soft); }

/* ----- form ----- */
.form-intro { max-width: 40rem; margin-bottom: 2rem; }
form.waitlist {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}
.req { color: var(--mahogany); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbbca8;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--brass-light);
  outline-offset: 1px;
  border-color: var(--brass);
}
.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .btn { border-width: 2px; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #e8f0df;
  color: #243218;
  border: 1px solid #b7c9a4;
}
.form-status.is-visible { display: block; }

/* ----- footer ----- */
.site-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ----- thanks page ----- */
.thanks {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 4rem 0;
  text-align: center;
}
.thanks .wrap { max-width: 36rem; }

/* ----- mobile ----- */
@media (max-width: 860px) {
  .shape-grid { grid-template-columns: repeat(2, 1fr); }
  .split,
  .made-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-flip .copy,
  .split-flip .media { order: unset; }
  .hero .media { order: -1; }
  .product-split,
  .product-split.split-flip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "body";
  }
  :root { --nav-h: 4.75rem; }
  .logo-mark { height: 3.85rem; }
  .nav-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.25rem 1.1rem;
  }
  #nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a {
    display: block;
    padding: 0.7rem 0.2rem;
  }
  .site-nav .nav-cta {
    margin: 0.5rem 0 0.25rem;
    text-align: center;
  }
  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .wrap,
  .header-inner,
  .footer-inner { width: min(var(--max), calc(100% - 1.5rem)); }
  .section { padding: 3.25rem 0; }
  .hero { padding: 2rem 0 3rem; }
  .form-grid,
  .thumbs { grid-template-columns: 1fr; }
  form.waitlist { padding: 1.2rem; }
  .shape-grid { gap: 0.8rem; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .shape-grid { grid-template-columns: repeat(4, 1fr); }
}

.nowrap { white-space: nowrap; }
