/* Side Quest Printing — one-page site
   Layout: forest-green hero and contact bands bookend cream content sections;
   print "layer lines" stripes are the recurring texture, and a dotted trail
   (from the path in the logo) links the ordering steps. */

:root {
  /* Color, sampled from the logo */
  --forest: #013a12;      /* deepest green: hero, contact */
  --forest-2: #034a19;    /* stripe on forest */
  --green: #01641b;       /* shield green: headings, links */
  --leaf: #53c15c;        /* bright filament green: accents on dark */
  --orange: #f47a12;      /* filament orange: buttons, star */
  --orange-ink: #a84a00;  /* orange dark enough for text on cream */
  --cream: #fcf8f1;       /* logo field */
  --paper: #fffdf9;       /* cards */
  --ink: #0a1a10;         /* body text */
  --ink-soft: #3d4f43;    /* secondary text */
  --line: #dfe5d6;        /* borders */

  /* Type */
  --font-display: "Bree Serif", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4vw, 2.4rem);
  --step-4: clamp(2.3rem, 6vw, 3.6rem);

  --radius: 10px;
  --wrap: 72rem;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--orange);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Placeholders Derek still needs to fill in */
.ph {
  background: #fff1d9;
  color: #6b3100;
  border: 1px dashed var(--orange);
  border-radius: 4px;
  padding: 0 0.3em;
  font-weight: 500;
}

/* Shared layer-lines texture */
.layers {
  background-color: var(--forest);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--forest) 0 8px,
    var(--forest-2) 8px 14px
  );
}

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  color: var(--cream);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
}
.brand:hover { color: var(--cream); }
.brand img { width: 44px; height: 44px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  display: inline-block;
}
.site-nav a:hover { color: var(--leaf); }

/* ---------- Hero ---------- */
.hero { color: var(--cream); }
.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 2.5rem 3.5rem;
}
.hero picture { justify-self: center; }
.hero-logo {
  width: min(78vw, 22rem);
  filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.35));
}
.hero-copy { display: grid; gap: 1.1rem; max-width: 34rem; }
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  background: var(--orange);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.hero .eyebrow, .contact .eyebrow { color: var(--leaf); }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lede { font-size: var(--step-1); font-weight: 500; color: var(--cream); }
.asks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: #dfeadf;
}
.asks li { display: flex; gap: 0.6rem; align-items: baseline; }
.asks li::before {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--leaf);
  transform: translateY(0.05rem);
}
.hero .make {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--orange);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ff8d2b; color: var(--ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--forest); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Sections ---------- */
.section .wrap { padding-block: 4rem; display: grid; gap: 2.25rem; }
.section-head { display: grid; gap: 0.6rem; max-width: 40rem; }
.section-head h2 { font-size: var(--step-3); color: var(--green); }
.section-head p { color: var(--ink-soft); }

/* Quest types (services) */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  min-width: 0;
}
.card svg { width: 44px; height: 44px; }
.card h3 { font-size: var(--step-1); color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* Quest log (ordering steps) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  align-content: start;
  counter-increment: step;
  min-width: 0;
}
.step::before {
  content: counter(step);
  grid-row: span 2;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: var(--step-1);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--cream);
}
.step:last-child::before { background: var(--orange); color: var(--ink); }
/* dotted trail between markers */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1.5px);
  top: 3rem;
  bottom: -1.75rem;
  border-left: 3px dotted var(--orange);
}
.step h3 { font-size: var(--step-1); align-self: end; }
.step p { color: var(--ink-soft); }

/* Trophy case (gallery) */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.shot { margin: 0; display: grid; gap: 0.6rem; min-width: 0; }
.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #e9efe2;
}
.shot figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.tile {
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: var(--radius);
  display: grid;
  place-items: end start;
  padding: 0.75rem;
  background-color: #e9efe2;
  background-image: repeating-linear-gradient(
    to bottom,
    #e9efe2 0 7px,
    #dfe7d6 7px 12px
  );
  border: 1px dashed #b9c7ad;
  overflow: hidden;
}
.tile span {
  background: var(--paper);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Contact */
.contact { color: var(--cream); }
.contact .wrap {
  padding-block: 4rem;
  display: grid;
  gap: 2.5rem;
}
.contact h2 { font-size: var(--step-3); color: var(--cream); }
.contact .section-head p { color: #dfeadf; }
.contact-grid { display: grid; gap: 1.25rem; }
.panel {
  background: rgb(252 248 241 / 0.08);
  border: 1px solid rgb(252 248 241 / 0.22);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
}
.panel h3 { font-size: var(--step-1); color: var(--cream); }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: baseline; }
.checklist li::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--leaf);
  transform: translateY(0.05rem);
}
.contact-list { margin: 0; display: grid; gap: 0.8rem; }
.contact-list div { display: grid; gap: 0.1rem; }
.contact-list dt {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf);
  font-weight: 600;
}
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact a { color: var(--cream); }
.contact a:hover { color: var(--leaf); }
.contact .ph { color: #6b3100; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d4cb; font-size: var(--step--1); }
.site-footer .wrap {
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { font-size: 1rem; }
.site-footer .brand img { width: 32px; height: 32px; }

/* ---------- Wider screens ---------- */
@media (min-width: 48rem) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; padding-block: 4rem 5rem; }
  .hero picture { order: 2; }
  .hero-logo { width: min(100%, 24rem); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .step { grid-template-columns: 1fr; gap: 0.75rem; }
  .step::before { grid-row: auto; }
  .step:not(:last-child)::after {
    left: 3.5rem;
    right: -1.5rem;
    top: calc(1.5rem - 1.5px);
    bottom: auto;
    border-left: 0;
    border-top: 3px dotted var(--orange);
  }
  .step h3 { align-self: start; }
}
