/* Broom With A View
   One stylesheet. Mobile first. Flat fills, no shadows, no gradients. */

:root {
  --ink: #2B2E26;
  --forest: #3F5330;
  --sage: #7E9862;
  --sage-light: #A9BE8B;
  /* Text-safe sage. Plain --sage sits at 2.9:1 on --cream, which misses AA
     even at display sizes, so anything that is words uses this instead. */
  --sage-text: #6A8350;
  --wash: #DCE5CC;
  --cream: #F6F2E6;
  --paper: #FBF9F3;

  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 68rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  scroll-padding-top: 5rem;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 160ms ease; }
a:hover { color: var(--sage-text); }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--cream);
  padding: 0.75rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: 48rem; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 9vw, 3.9rem); }
h1 em { font-style: normal; color: var(--sage-text); }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.4rem); margin-top: 0; }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.35rem); }
h3.sub { margin-top: 2.75rem; }

p { margin: 0 0 1.1em; }
.lede { font-size: 1.15rem; }
.fine { font-size: 0.95rem; color: var(--forest); }

section { padding: 3.5rem 0; }
.band { background: var(--wash); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--sage-light);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.header.is-stuck {
  border-bottom-color: var(--sage);
  box-shadow: 0 10px 22px -20px rgba(43, 46, 38, 0.65);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest);
}

.mark { flex: none; width: 46px; height: 57px; }

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-1 {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.09em;
  color: var(--forest);
}
.wordmark-2 {
  font-family: var(--body);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--forest);
  margin-top: 0.3rem;
}

.actions { display: flex; gap: 0.5rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn {
  transition: background-color 180ms ease, color 180ms ease,
              border-color 180ms ease, transform 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-primary:hover { background: #33421e; color: var(--cream); }

.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-ghost { background: var(--paper); color: var(--forest); border-color: var(--sage-light); }
.btn-ghost:hover { background: var(--wash); color: var(--forest); }

.btn-lg { min-height: 3.25rem; padding: 0.8rem 1.6rem; font-size: 1.05rem; }

@media (max-width: 27rem) {
  :root { --gutter: 1rem; }
  .hero-actions .btn { width: 100%; }
  .header .btn { padding: 0.55rem 0.9rem; }
  .header .btn-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header .btn svg { width: 1.3rem; height: 1.3rem; }
}

/* ---------- Hero ---------- */

.hero { padding-top: 2.5rem; }
.hero-in { display: grid; gap: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }

/* ---------- The arch, reused ---------- */

.arch-frame {
  background: var(--wash);
  border: 2px solid var(--forest);
  border-radius: 9999px 9999px 14px 14px;
  overflow: hidden;
}
.arch-frame-hero { aspect-ratio: 4 / 5; }
.arch-frame-hero > * { width: 100%; height: 100%; object-fit: cover; }

.arch-frame-book {
  /* A capped radius, so the crown of the arch stays clear of the widget
     no matter how wide the frame gets. */
  border-radius: 180px 180px 14px 14px;
  padding: 5.5rem 1.25rem 1.25rem;
  background: var(--paper);
  overflow: visible;
}
.cal-embed {
  min-height: 34rem;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
}
.cal-embed.is-empty { min-height: 0; }
.fine.loud {
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--paper);
  border: 2px solid var(--sage);
  border-radius: 12px;
  padding: 1rem;
}

/* ---------- Lists ---------- */

.plain { list-style: none; margin: 0; padding: 0; }
.plain li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--sage-light);
}
.plain li:last-child { border-bottom: 1px solid var(--sage-light); }
.plain strong { color: var(--forest); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.steps li { position: relative; padding-left: 3.25rem; }
.steps h3 { margin-bottom: 0.35em; }
.steps p { margin-bottom: 0; }
.step-n {
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.towns {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  color: var(--forest);
  line-height: 1.6;
}

/* ---------- Proof ---------- */

.quotes { display: grid; gap: 1.25rem; }
.quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--sage-light);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}
.quote p { font-size: 1.05rem; margin-bottom: 0.6em; }
.quote cite { font-style: normal; font-weight: 600; color: var(--forest); }
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--wash);
}
.example-chip {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.1rem 0.5rem;
  border: 1px dashed var(--sage);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-text);
}

.gallery { display: grid; gap: 1.25rem; }
.photo { margin: 0; border-radius: 12px; overflow: hidden; }
.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.photo:hover img { transform: scale(1.04); }
.portrait {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  border-radius: 12px;
  max-width: 17rem;
  margin-inline: auto;
}

.meet { display: grid; gap: 1.5rem; margin-top: 2.75rem; align-items: center; }
.meet-copy p:last-child { margin-bottom: 0; }

/* ---------- Placeholder slots ---------- */

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  margin: 0;
  padding: 1.5rem 1.25rem;
  background: var(--wash);
  border: 2px dashed var(--sage);
  border-radius: 12px;
  color: var(--forest);
}
.slot-label { font-family: var(--display); font-size: 1.1rem; }
.slot-note { font-size: 0.9rem; color: var(--ink); max-width: 22rem; }

.slot-quote { min-height: 9rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--forest);
  color: var(--cream);
  padding: 2.75rem 0;
}
.footer a { color: var(--cream); }
.footer-in { display: grid; gap: 1.75rem; }
.footer p { margin: 0 0 0.4em; }
.footer-name {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.footer-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer .btn-primary { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.footer .btn-primary:hover { background: var(--wash); color: var(--forest); }
.footer .btn-outline { color: var(--cream); border-color: var(--cream); }
.footer .btn-outline:hover { background: var(--cream); color: var(--forest); }
.footer :focus-visible { outline-color: var(--cream); }

/* ---------- Wider screens ---------- */

@media (min-width: 46rem) {
  section { padding: 4.5rem 0; }
  .hero { padding-top: 3.5rem; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .meet { grid-template-columns: 0.55fr 1fr; gap: 2.5rem; }
  .footer-in { grid-template-columns: 1fr auto; align-items: center; }
  .arch-frame-book { padding: 6rem 2rem 2rem; }
  .portrait { max-width: none; }
}

/* The hero only splits in two once there is room for the arch to read properly. */
@media (min-width: 52rem) {
  .hero-in {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3.5rem;
  }
}

/* ---------- Flourishes ---------- */

/* Sections ease in the first time they are seen. The class is added by script,
   so with no script everything is simply visible. */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.sparkles {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.sparkle {
  position: fixed;
  width: 17px;
  height: 17px;
  margin: -8.5px 0 0 -8.5px;
  pointer-events: none;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z' fill='%237E9862'/%3E%3C/svg%3E");
  animation: sweep-sparkle 720ms ease-out forwards;
}
@keyframes sweep-sparkle {
  0%   { opacity: 0; transform: rotate(var(--r)) scale(0.2); }
  18%  { opacity: 1; transform: rotate(var(--r)) scale(var(--s)); }
  55%  { opacity: 0.85; }
  100% { opacity: 0; transform: rotate(calc(var(--r) + 35deg)) scale(0.15) translateY(8px); }
}

/* The broom follows the pointer. Fine pointers only, and never on a phone. */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("/cursor-broom.png") 3 33, auto; }
  a, .btn, button, summary { cursor: url("/cursor-broom-hover.png") 3 33, pointer; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; }
  .sparkles { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
