/* ---------------------------------------------------------------
   Leather-Hats.com — launch page
   Hand-written. No framework.
   --------------------------------------------------------------- */

/* ---- tokens ---------------------------------------------------- */
:root {
  --paper:        #ece4d4;
  --paper-input:  #f2ecdd;
  --paper-note:   #e2d6bd;

  --ink:          #2b201a;
  --ink-soft:     #3a2c22;
  --ink-softer:   #4a3527;
  --muted:        #8d8069;

  --rule:         #d3c5aa;
  --rule-strong:  #b7a686;

  --accent:       #6e2a24;
  --accent-deep:  #5a221d;
  --tan:          #a97a4e;

  --dark:         #241a15;
  --darkest:      #1d1511;
  --on-dark:      #ded3bd;
  --on-dark-hi:   #ece4d4;
  --on-dark-mute: #c9b18e;

  --display: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --body:    'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --gutter:  clamp(16px, 4vw, 48px);
  --measure: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: var(--accent); }
a:hover { color: var(--ink-softer); }

:is(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell { max-width: var(--measure); margin-inline: auto; }

/* Visible to screen readers only. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---- header ---------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font: 700 21px/1 var(--display); }
.brand__tld  { color: var(--accent); }

.status-badge {
  margin-left: auto;
  font: 600 11px/1 var(--body);
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1.5px solid var(--tan);
  padding: 9px 14px;
}

/* ---- hero ------------------------------------------------------ */
.hero {
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(40px, 5vw, 72px);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  font: 700 12px/1.4 var(--body);
  letter-spacing: 0.2em;
  color: var(--accent);
}

.hero__title {
  margin-bottom: 18px;
  font: 400 clamp(32px, 4.6vw, 54px)/1.1 var(--display);
  text-wrap: pretty;
}

.hero__lede {
  margin-bottom: 16px;
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero__sub {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-softer);
}

.hero__figure {
  margin: 0;
  /* The photo is square; cap it so it never outgrows the copy beside it. */
  max-width: 541px;
  margin-inline: auto;
}
.hero__figure picture { display: block; }
.hero__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1.5px solid var(--rule-strong);
  background: var(--paper-note);
}

/* ---- notify form ----------------------------------------------- */
.notify {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 460px;
}
@media (max-width: 460px) {
  .notify { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; }

.field__label {
  font: 600 12px/1.4 var(--body);
  letter-spacing: 0.08em;
  color: var(--ink-softer);
  margin-bottom: 6px;
}

.field__input {
  height: 50px;
  border: 1.5px solid var(--rule-strong);
  background: var(--paper-input);
  color: var(--ink);
  font: 400 15px var(--body);
  padding: 0 14px;
  width: 100%;
  border-radius: 0;
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { border-color: var(--accent); }

/* Honeypot: hidden from people, appealing to bots. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  grid-column: 1 / -1;
  height: 52px;
  background: var(--accent);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  font: 600 15px var(--body);
  cursor: pointer;
  transition: background-color 140ms ease;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { background: var(--ink); }

.notify__note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- form result banner ---------------------------------------- */
.notice {
  max-width: 460px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: var(--paper-input);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.notice--ok { border-left-color: #4a6b3f; }

/* ---- styles list ----------------------------------------------- */
.styles {
  border-top: 2px dashed var(--rule-strong);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}

.section__title {
  margin-bottom: 12px;
  font: 400 clamp(24px, 2.8vw, 34px)/1.2 var(--display);
}

.section__intro {
  margin-bottom: 28px;
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.style-grid li {
  border: 1.5px solid var(--rule-strong);
  padding: 16px 18px;
  font: 400 16px var(--display);
}

/* ---- why (dark band) ------------------------------------------- */
.why {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.why .section__title { color: var(--on-dark-hi); }
.why p {
  font-size: 15.5px;
  line-height: 1.7;
}
.why p + p { margin-top: 14px; }
.why strong { color: var(--on-dark-hi); }

.anatomy { width: 100%; height: auto; display: block; }

/* ---- faq -------------------------------------------------------- */
.faq { padding: clamp(44px, 6vw, 80px) var(--gutter); }
.faq__shell { max-width: 820px; margin-inline: auto; }
.faq .section__title { margin-bottom: 24px; }

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.faq-item__q {
  cursor: pointer;
  font: 600 16px/1.4 var(--body);
  padding: 14px 0;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}
.faq-item[open] .faq-item__q::after { content: '\2212'; }

.faq-item p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-softer);
}

/* ---- footer ----------------------------------------------------- */
.site-footer {
  background: var(--darkest);
  color: var(--muted);
  padding: 28px var(--gutter);
}
.site-footer p {
  font-size: 12.5px;
  line-height: 1.7;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--on-dark); }

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

/* Result pages (subscribe.php) run narrower than the launch page. */
.shell--narrow { max-width: 640px; }
.shell--narrow .hero__title { margin-bottom: 18px; }
