/* ------------------------------------------------------------------
   HALLORAN BLADES - big-type editorial DTC
   Palette: paper hsl(40 25% 96%) · ink hsl(20 10% 12%) · ember hsl(15 75% 45%)
   ------------------------------------------------------------------ */

:root {
  --paper: hsl(40 25% 96%);
  --ink: hsl(20 10% 12%);
  --ink-60: hsl(20 8% 34%);
  --ink-40: hsl(20 6% 52%);
  --hairline: hsl(20 10% 12% / 0.22);
  --hairline-soft: hsl(20 10% 12% / 0.12);
  --ember: hsl(15 75% 45%);
  --ember-deep: hsl(15 78% 38%);
  --display: "Playfair Display", "Georgia", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

::selection { background: hsl(15 75% 45% / 0.18); }

a {
  color: var(--ember);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ember-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

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

/* ---------- small-caps utility ---------- */
.caps {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 99;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------
   1. Masthead
   ------------------------------------------------------------------ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.85rem;
}

.masthead .est {
  color: var(--ink-60);
  font-weight: 400;
  letter-spacing: 0.14em;
}

.masthead .wordmark {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  text-indent: 0.32em; /* optically recentre letterspaced caps */
}
.masthead .wordmark a {
  color: var(--ink);
  text-decoration: none;
}

.masthead nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.75rem;
}
.masthead nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav a:hover { color: var(--ember); }

@media (max-width: 700px) {
  .masthead-row { grid-template-columns: 1fr auto; }
  .masthead .est { display: none; }
  .masthead .wordmark { text-align: left; text-indent: 0; }
  .masthead nav { gap: 1.1rem; }
  .masthead-row.caps { font-size: 0.64rem; }
}

/* ------------------------------------------------------------------
   2. Hero
   ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(4rem, 12vh, 9rem) clamp(3rem, 8vh, 6rem);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .ember { color: var(--ember); }

.hero .lede {
  max-width: 28rem;
  margin-top: clamp(1.75rem, 4vh, 3rem);
  color: var(--ink-60);
}

.hero .batch-link {
  display: inline-block;
  margin-top: 2.25rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 120ms ease, border-color 120ms ease;
}
.hero .batch-link:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* full-bleed plate under hero */
.bleed {
  width: 100%;
}
.bleed svg {
  width: 100%;
  height: clamp(340px, 62vh, 660px);
}

figure.plate figcaption,
.bleed-caption {
  color: var(--ink-40);
  padding-top: 0.8rem;
}
.bleed-caption {
  text-align: right;
}

/* ------------------------------------------------------------------
   3. The Four - editorial spreads
   ------------------------------------------------------------------ */
.folio-rule {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.25rem;
}
.folio-rule::before,
.folio-rule::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hairline);
}
.folio-rule span {
  color: var(--ink-40);
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  text-indent: 0.28em;
}

.spread {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  min-height: 92vh;
  padding-block: clamp(4rem, 9vh, 7rem);
}

.spread .plate { grid-column: 1 / span 8; }
.spread .info  { grid-column: 9 / span 12; }

.spread.flip .plate { grid-column: 5 / span 8; order: 2; }
.spread.flip .info  { grid-column: 1 / span 4; order: 1; }

.spread .plate svg {
  width: 100%;
  height: auto;
}

.spread h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.spread .kicker {
  color: var(--ink-40);
  margin-bottom: 1rem;
}

.spread .desc {
  margin-top: 1.4rem;
  color: var(--ink-60);
  max-width: 34rem;
}

/* metadata block */
.meta {
  margin-top: 2.2rem;
  border-top: 1px solid var(--hairline);
}
.meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.meta dt {
  color: var(--ink-40);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.meta dd {
  font-size: 0.92rem;
  text-align: right;
}
.meta .price dd {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0;
}

/* status line */
.status {
  margin-top: 1.6rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.status .count {
  color: var(--ink-60);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.status .count .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-40);
  margin-right: 0.55em;
  transform: translateY(-1px);
}
.status.available .count .dot { background: hsl(140 30% 40%); }
.status.soldout .count { color: var(--ink-40); }
.status.soldout .count .dot { background: var(--hairline); }

.buy-link {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .spread {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2rem;
  }
  .spread .plate,
  .spread .info,
  .spread.flip .plate,
  .spread.flip .info {
    grid-column: 1 / -1;
  }
  .spread.flip .plate { order: 0; }
  .spread.flip .info { order: 1; }
}

/* ------------------------------------------------------------------
   4. Process essay
   ------------------------------------------------------------------ */
.essay {
  padding-block: clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--ink);
}

.essay-head {
  text-align: center;
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
}
.essay-head .caps { color: var(--ink-40); }
.essay-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: -0.015em;
  margin-top: 0.75rem;
  text-wrap: balance;
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
  color: var(--ink-60);
}
.prose p + p { margin-top: 1.35rem; }
.prose .intro { color: var(--ink); }
.prose .intro::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 4.6em;
  line-height: 0.78;
  float: left;
  padding-right: 0.12em;
  padding-top: 0.06em;
  color: var(--ink);
}

.passage {
  position: relative;
  margin-top: clamp(4rem, 9vh, 6.5rem);
}
.passage .numeral {
  position: absolute;
  top: -0.28em;
  left: calc(-1 * clamp(2rem, 12vw, 11rem));
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(5.5rem, 12vw, 11rem);
  line-height: 1;
  color: hsl(20 10% 12% / 0.14);
  user-select: none;
  pointer-events: none;
}
.passage h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.passage figure {
  margin-block: 2.2rem;
}
.passage figure svg {
  width: 100%;
  height: auto;
}
.passage figcaption {
  color: var(--ink-40);
  padding-top: 0.7rem;
}

@media (max-width: 1100px) {
  .passage .numeral {
    position: static;
    display: block;
    font-size: clamp(4rem, 10vw, 6rem);
    margin-bottom: -0.15em;
  }
}

/* ------------------------------------------------------------------
   5. Guarantee
   ------------------------------------------------------------------ */
.guarantee {
  border-top: 1px solid var(--ink);
  padding-block: clamp(6rem, 16vh, 11rem);
  text-align: center;
}
.guarantee blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 24em;
  margin-inline: auto;
  text-wrap: balance;
}
.guarantee .sig {
  display: block;
  margin-top: 2.2rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink-60);
}

/* ------------------------------------------------------------------
   6. Waitlist
   ------------------------------------------------------------------ */
.waitlist {
  padding-block: clamp(4rem, 10vh, 7rem);
}
.waitlist-box {
  border: 1px solid var(--ink);
  padding: clamp(2.5rem, 7vw, 5.5rem);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.waitlist-box h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.waitlist-box .sub {
  color: var(--ink-60);
  max-width: 30rem;
  margin: 1.2rem auto 0;
}

.waitlist-form {
  display: flex;
  align-items: flex-end;
  gap: 1.75rem;
  max-width: 26rem;
  margin: 2.75rem auto 0;
}
.waitlist-form .field {
  flex: 1;
  text-align: left;
}
.waitlist-form label {
  display: block;
  color: var(--ink-40);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.waitlist-form input[type="email"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.35rem 0 0.45rem;
  border-radius: 0;
}
.waitlist-form input[type="email"]::placeholder { color: var(--ink-40); }
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--ember);
}

.waitlist-form button {
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ember);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 0.35rem 0 0.45rem;
}
.waitlist-form button:hover { color: var(--ember-deep); }

.waitlist-note {
  margin-top: 2.4rem;
  color: var(--ink-40);
}

.waitlist-confirm {
  margin-top: 2.75rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}

@media (max-width: 540px) {
  .waitlist-form { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .waitlist-form button { align-self: flex-start; }
}

/* ------------------------------------------------------------------
   7. Footer
   ------------------------------------------------------------------ */
footer.site {
  border-top: 1px solid var(--ink);
  padding-block: 1.6rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.footer-row .caps { color: var(--ink-40); font-weight: 400; }
.footer-row nav {
  display: flex;
  gap: 2.25rem;
  flex-wrap: wrap;
}
.footer-row nav a {
  color: var(--ink-60);
  text-decoration: none;
}
.footer-row nav a:hover { color: var(--ember); }

/* ------------------------------------------------------------------
   Sub-pages (Care Guide, Shipping & Returns)
   ------------------------------------------------------------------ */
.subpage {
  padding-block: clamp(4rem, 10vh, 7rem);
  min-height: 60vh;
}
.subpage header.page-head {
  max-width: var(--measure);
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.subpage header.page-head .caps { color: var(--ink-40); }
.subpage h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  text-wrap: balance;
}
.subpage .prose h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--ink);
  margin: 2.5rem 0 0.8rem;
}
.subpage .back {
  display: inline-block;
  margin-top: 3.5rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.subpage .back:hover { color: var(--ember); border-color: var(--ember); }

/* ------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
