/* Cedarwood Yard Sale 2026 — palette pulled from the flyer */
:root {
  --maroon:      #8e2a44;
  --maroon-deep: #6d1f33;
  --blue:        #3d6fb4;
  --blue-deep:   #2f5789;
  --sage:        #7e9074;
  --terracotta:  #d9765c;
  --cream:       #fbf6ec;
  --paper:       #fffdf8;
  --ink:         #3b3238;
  --ink-soft:    #6d6169;
  --rule:        #e3d8c8;
  --shadow:      0 1px 2px rgba(59,50,56,.05), 0 8px 24px -14px rgba(59,50,56,.28);
  --radius:      14px;
}

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

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

body {
  margin: 0;
  font-family: Karla, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
}

/* Washed-out flyer, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(251,246,236,.35), rgba(251,246,236,.8) 65%, rgba(251,246,236,.95)),
    url("assets/flyer-bg.jpg") center center / cover no-repeat,
    var(--cream);
}

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

a { color: var(--blue-deep); }
a:hover { color: var(--maroon); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--maroon); color: #fff;
  padding: .6rem 1rem; z-index: 10; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

.wrap {
  width: min(100% - 2.5rem, 62rem);
  margin-inline: auto;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero h1 {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  margin: 0;
  line-height: .92;
  letter-spacing: -.015em;
  font-size: clamp(2.9rem, 12vw, 6.2rem);
  color: var(--maroon);
  text-wrap: balance;
}
.hero h1 span { color: var(--maroon-deep); }
.hero h1 em {
  display: block;
  font-style: normal;
  font-family: Karla, sans-serif;
  font-weight: 700;
  font-size: .26em;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--sage);
  margin-top: .9rem;
}

.hero-date {
  margin: 1.6rem 0 .3rem;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  color: var(--blue-deep);
}
.hero-date strong { font-weight: 700; }
.hero-date .dot { color: var(--sage); margin: 0 .55rem; }
.hero-date .time { white-space: nowrap; }

@media (max-width: 30rem) {
  .hero-date .dot { display: none; }
  .hero-date .time { display: block; margin-top: .15rem; }
}

.hero-rain {
  margin: 0;
  color: var(--ink-soft);
  font-size: .96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: 2rem 0 1.25rem;
}

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--maroon); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--maroon-deep); color: #fff; }

.btn-ghost { border-color: var(--maroon); color: var(--maroon); background: rgba(255,253,248,.7); }
.btn-ghost:hover { background: var(--maroon); color: #fff; }

.hero-deadline {
  margin: 0;
  font-size: .93rem;
  color: var(--ink-soft);
}
.hero-deadline strong { color: var(--maroon); }

/* ---------- Sections ---------- */

main > section { margin-bottom: clamp(3rem, 8vw, 4.75rem); }

.intro { text-align: center; margin-bottom: clamp(2.5rem, 7vw, 4rem); }

.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 44rem;
  margin: 0 auto;
  color: var(--ink);
  text-wrap: pretty;
}

.section-title {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  color: var(--maroon-deep);
  margin: 0 0 .35rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--rule);
}

.section-sub {
  margin: .9rem 0 1.4rem;
  color: var(--ink-soft);
}

.note {
  margin: 1.25rem 0 0;
  font-size: .92rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Cards ---------- */

.cards {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 34rem) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--maroon); }

.card-primary {
  border-color: var(--maroon);
  border-width: 2px;
  background:
    linear-gradient(to bottom, rgba(142,42,68,.045), rgba(255,253,248,0) 60%),
    var(--paper);
}

.card-kind {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.card-primary .card-kind { color: var(--maroon); }

.card h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: .5rem 0 .5rem;
  color: var(--maroon-deep);
}
.card h3 a {
  color: inherit;
  text-decoration: none;
}
/* whole card is clickable, link text stays the accessible target */
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--maroon); }

.card p {
  margin: 0 0 1.1rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

.card-go {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue);
}

/* ---------- White Elephant panel ---------- */

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--terracotta);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.panel h2 {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--maroon);
  margin: 0 0 .7rem;
}
.panel p { margin: 0; text-wrap: pretty; }
.panel strong { color: var(--maroon-deep); }

.panel-art {
  width: 100%;
  max-width: 15rem;
  margin-inline: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

@media (min-width: 46rem) {
  .panel { grid-template-columns: 1fr 14rem; }
  .panel-art { max-width: none; }
}

/* ---------- Map ---------- */

.mapfig { margin: 0; }
.mapfig a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.mapfig img, .mapfig picture { width: 100%; display: block; }
.mapfig figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Organizers ---------- */

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.people li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.people h3 {
  margin: 0 0 .2rem;
  font-size: 1.15rem;
  color: var(--maroon-deep);
}
.people p { margin: 0 0 .25rem; }
.people .addr { color: var(--ink-soft); font-size: .95rem; }
.people a { word-break: break-word; }
.people .tag {
  margin-top: .8rem;
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 2px solid var(--rule);
  padding: 2.25rem 0 3rem;
  text-align: center;
}
.sign {
  margin: 0 0 .3rem;
  font-family: Karla, sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--maroon);
}
.small { margin: 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

sup { font-size: .62em; vertical-align: super; line-height: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Print ---------- */

@media print {
  body::before, .hero-actions, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  .card, .panel, .people li, .mapfig a { box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .card h3 a::after { content: ""; position: static; }
  .card-go { display: none; }
}
