/* Wildra — shared stylesheet
   One file. Every colour and size lives here. */

:root {
  --paper:      #FBF7EF;   /* cream background */
  --paper-deep: #F2EBDD;   /* quiet blocks, panels */
  --ink:        #313131;   /* charcoal body text */
  --trail:      #2F483D;   /* brand green — headings, wordmark */
  --sun:        #CE6B27;   /* burnt orange — links, accents */
  --sepia:      #8A7A63;   /* captions, rules */
  --rule:       #DFD5C2;
  --on-photo:   #FBF7EF;   /* type over a photograph */

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "New York", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --reading: 34rem;   /* prose column */
  --wide:    50rem;   /* page frame */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ---- frame ---- */

.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose { max-width: var(--reading); }

/* ---- masthead ---- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem 0.875rem;
  flex-wrap: wrap;
}

@media (min-width: 34rem) {
  .masthead { padding-block: 1.75rem 1.5rem; }
}

.lockup { display: block; line-height: 0; }

/* The logo lockup — mark, word and rule as one SVG.
   Height is set here; the SVG keeps its own ratio. */
.lockup img { height: 32px; width: auto; max-width: 45vw; }

@media (min-width: 34rem) {
  .lockup img { height: 40px; }
}

/* Below 34rem the nav takes a row of its own — deterministic, rather than
   relying on the flex line breaking at the right moment. */
.masthead nav {
  display: flex;
  flex-basis: 100%;
  gap: 1.25rem;
  font-size: 0.9375rem;
  min-width: 0;
}

@media (min-width: 34rem) {
  .masthead nav {
    flex-basis: auto;
    gap: 1.5rem;
  }
}

.masthead nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  border-bottom-color: var(--sun);
}

/* ---- type ---- */

h1, h2, h3 {
  font-family: var(--display);
  color: var(--trail);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.1875rem; color: var(--ink); margin-bottom: 0.35em; }

p { margin: 0 0 1.15rem; }

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

strong { font-weight: 600; }

.lead {
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 30rem;
}

@media (min-width: 40rem) {
  .lead { font-size: 1.3125rem; }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
  margin: 0 0 0.75rem;
}

.note {
  font-size: 0.9375rem;
  color: var(--sepia);
  line-height: 1.5;
}

/* ---- photo hero ---- */

.hero {
  position: relative;
  min-height: min(86vh, 42rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--trail);   /* holds the shape before the photo loads */
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The scrim. Clear until nearly halfway — the sky is the sky —
   then deepening only where the words are. Same shape as first run. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 42%,
    rgba(0,0,0,0.30) 62%,
    rgba(0,0,0,0.55) 80%,
    rgba(0,0,0,0.88) 100%
  );
  pointer-events: none;
}

.hero-words {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 2.5rem;
  color: var(--on-photo);
}

@media (min-width: 40rem) {
  .hero-words { padding-bottom: 3.5rem; }
}

.hero-words h1 {
  color: var(--on-photo);
  font-size: clamp(3rem, 9vw, 5rem);
  margin-bottom: 0.35em;
}

.hero-words .lead { color: var(--on-photo); }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: settle 2.4s ease-out both; }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- sections ---- */

.band {
  padding-block: 3.5rem;
  border-top: 1px solid var(--rule);
}

.band.first { border-top: none; }

.quiet { background: var(--paper-deep); }

.stack > * + * { margin-top: 2.25rem; }

/* the four blocks of the walk */
.blocks {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44rem) {
  .blocks { grid-template-columns: 1fr 1fr; gap: 3rem 3.5rem; }
}

.block h3 {
  font-family: var(--display);
  color: var(--trail);
  font-size: 1.375rem;
}

.block p { margin: 0; max-width: 24rem; }

/* ---- photographs in the flow ---- */

figure { margin: 0; }

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

figcaption {
  font-size: 0.875rem;
  color: var(--sepia);
  margin-top: 0.6rem;
}

.portrait { max-width: var(--reading); margin-bottom: 2.5rem; }

.full-width { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* ---- sign-up ---- */

.signup {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
  max-width: 28rem;
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.signup input[type="email"]:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 1px;
  border-color: var(--sun);
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--trail);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.button:hover { background: var(--sun); color: var(--paper); }

.button:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

/* ---- membership ---- */

.price {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  max-width: var(--reading);
}

.price:last-of-type { border-bottom: 1px solid var(--rule); }

.price h3 {
  font-family: var(--display);
  font-size: 1.375rem;
  color: var(--trail);
}

.price p:last-child { margin-bottom: 0; }

.founding h3 { color: var(--sun); }

.aside { margin-top: 1.5rem; }

/* ---- support Q&A ---- */

.qa { max-width: var(--reading); }
.qa > div + div { margin-top: 1.75rem; }
.qa p { margin-bottom: 0; }

/* ---- footer ---- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-block: 2.5rem 3.5rem;
  font-size: 0.9375rem;
  color: var(--sepia);
}

.foot nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--sun); }

.foot p { margin: 0 0 0.35rem; }

/* ---- closing line ---- */

.closing {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--trail);
  margin: 0 0 1.25rem;
}

/* closing line / footnote given air without an inline style */
.closing.aside { margin-top: 2.5rem; }
