/* The Porch - Boring, Oregon */
/* Palette: Spruce #24352E | Meadow paper #EFEBE0 | Dusk amber #DFA14C | Hay #C2A878 | Kiln rust #8E4326 */

:root {
  --spruce: #24352e;
  --spruce-deep: #1a2822;
  --paper: #efebe0;
  --paper-dim: #e6e0d1;
  --amber: #dfa14c;
  --hay: #c2a878;
  --rust: #8e4326;
  --ink: #2b2b26;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  color: var(--spruce);
  letter-spacing: -0.01em;
}

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

a { color: var(--rust); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(239, 235, 224, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-dim);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.85rem 1.25rem;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem; color: var(--spruce);
  text-decoration: none; font-weight: 600;
}
.wordmark span { color: var(--rust); }
.nav-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.86rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--spruce); text-decoration: none;
}
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--amber); }
.nav-links a:hover { color: var(--rust); }

/* ---------- Signature: string-light divider ---------- */
.lights {
  border: none; height: 26px; margin: 0 auto; max-width: 520px;
  background-image:
    radial-gradient(circle 4px at 10% 60%, var(--amber) 55%, transparent 60%),
    radial-gradient(circle 4px at 30% 40%, var(--amber) 55%, transparent 60%),
    radial-gradient(circle 4px at 50% 62%, var(--amber) 55%, transparent 60%),
    radial-gradient(circle 4px at 70% 40%, var(--amber) 55%, transparent 60%),
    radial-gradient(circle 4px at 90% 60%, var(--amber) 55%, transparent 60%),
    linear-gradient(to bottom, transparent 46%, var(--hay) 48%, transparent 54%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  color: #fff;
}
.slideshow { position: absolute; inset: 0; overflow: hidden; }
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero img.bg.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero img.bg { transition: none; }
  .hero img.bg:not(:first-child) { display: none; }
  .hero img.bg:first-child { opacity: 1; }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 40, 34, 0.82) 0%, rgba(26, 40, 34, 0.15) 55%, rgba(26, 40, 34, 0) 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: 3rem 1.25rem 3.5rem;
}
.hero-copy h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); max-width: 16ch;
}
.hero-copy p {
  margin-top: 0.9rem; max-width: 44ch; font-size: 1.1rem; color: #efe9da;
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 0.8rem;
}

/* ---------- Sections ---------- */
section { padding: 4rem 1.25rem; }
.inner { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }
section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.lede { font-size: 1.15rem; max-width: 58ch; }

.dark { background: var(--spruce-deep); color: #ddd8c9; }
.dark h2, .dark h3 { color: #f2eddd; }
.dark .eyebrow { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.7rem;
  background: var(--rust); color: #fff; text-decoration: none;
  font-family: "Karla", sans-serif; font-size: 0.95rem;
  letter-spacing: 0.05em; border: none; cursor: pointer;
  border-radius: 3px;
}
.btn:hover { background: #7a3820; }
.btn.ghost {
  background: transparent; color: var(--spruce);
  border: 1.5px solid var(--spruce);
}
.dark .btn.ghost { color: #f2eddd; border-color: #f2eddd; }

/* ---------- Grid / gallery ---------- */
.grid { display: grid; gap: 1rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.tall { grid-row: span 2; }

figure.framed { position: relative; }
figure.framed figcaption {
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--spruce);
  margin-top: 0.45rem;
}

/* ---------- Fact list ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; margin-top: 2rem; }
.fact h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.fact p { font-size: 0.95rem; }
.fact .big {
  font-family: "Fraunces", Georgia, serif; font-size: 2.1rem;
  color: var(--rust); display: block; line-height: 1;
}
.dark .fact .big { color: var(--amber); }

/* ---------- Honesty notice ---------- */
.notice {
  border: 1.5px solid var(--hay);
  padding: 2rem;
  border-radius: 4px;
  background: var(--paper-dim);
  max-width: 720px;
}
.notice h3 { margin-bottom: 0.6rem; }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.card {
  background: #fff; border: 1px solid var(--paper-dim);
  border-radius: 4px; padding: 1.8rem;
}
.card h3 { font-size: 1.15rem; }
.card .price {
  font-family: "Fraunces", Georgia, serif; font-size: 2.3rem;
  color: var(--rust); margin: 0.5rem 0 0.2rem;
}
.card .per { font-size: 0.85rem; color: #6c6a5f; }
.card ul { list-style: none; margin-top: 1rem; }
.card li { padding: 0.32rem 0; font-size: 0.95rem; border-top: 1px dotted var(--hay); }
.tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--amber); color: var(--spruce-deep);
  padding: 0.2rem 0.6rem; border-radius: 2px; margin-bottom: 0.6rem;
}

/* ---------- Form ---------- */
form { display: grid; gap: 1.1rem; max-width: 640px; }
label { font-size: 0.88rem; letter-spacing: 0.05em; font-weight: 700; color: var(--spruce); display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font-family: "Karla", sans-serif; font-size: 1rem;
  border: 1.5px solid var(--hay); border-radius: 3px;
  background: #fff; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: 0.88rem; color: #6c6a5f; }

/* ---------- Footer ---------- */
footer { background: var(--spruce-deep); color: #b9b4a4; padding: 2.5rem 1.25rem; font-size: 0.9rem; }
footer .inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
footer a { color: var(--amber); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid.cols-3, .price-cards, .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid.cols-3, .grid.cols-2, .price-cards, .facts, .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 66vh; }
  section { padding: 3rem 1.25rem; }
}

/* ---------- Q&A ---------- */
.qa-block { padding-top: 2rem; padding-bottom: 2rem; }
.qa-block h2 {
  font-size: 1.5rem; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--amber);
}
details {
  border-bottom: 1px solid var(--paper-dim);
  padding: 0.85rem 0;
}
details summary {
  cursor: pointer; font-weight: 700; color: var(--spruce);
  list-style: none; position: relative; padding-right: 1.8rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 0; top: -0.1rem;
  font-family: "Fraunces", Georgia, serif; font-size: 1.3rem;
  color: var(--rust); line-height: 1;
}
details[open] summary::after { content: "\2013"; }
details summary:hover { color: var(--rust); }
details p { margin-top: 0.6rem; font-size: 0.98rem; color: #4a483f; }
