/* Fern & Wick – styles. You shouldn't need to edit this file. */

:root {
  --cream: #f3ede0;
  --paper: #fbf8f0;
  --ink: #1f2a22;
  --green: #2b4a37;
  --green-dark: #213a2b;
  --muted: #59625a;
  --line: #ddd4c0;
  --amber: #86570a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { 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: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

h1, h2, h3, .brand {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

a { color: var(--green); }
p { margin: 0 0 1em; }

/* Clear outline for keyboard users */
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
  left: 12px; top: 12px; background: #fff; color: var(--ink);
  padding: 10px 14px; z-index: 10; border-radius: 8px;
}

/* ---------- Banners (setup check / test mode) ---------- */
.banner {
  background: #f6e3b4; color: var(--ink); border-bottom: 2px solid var(--amber);
  padding: 12px 20px; font-size: 0.95rem;
}
.banner p { margin: 0 0 4px; }
.banner ul { margin: 4px 0 0; padding-left: 1.2em; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0 16px; min-height: 68px; padding-top: 6px; padding-bottom: 6px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.45rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand svg { width: 22px; height: 26px; color: var(--green); flex: none; }
nav { display: flex; align-items: center; gap: 8px; }
nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 10px 6px;
}
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
nav a.pill {
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px;
}
nav a.pill:hover { background: var(--green-dark); text-decoration: none; }

@media (max-width: 480px) {
  .brand { font-size: 1.25rem; }
  nav { gap: 4px; margin-left: -6px; }
  nav a.pill { padding: 10px 15px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: 12px 24px; border-radius: 999px;
  border: 2px solid var(--green); text-align: center; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.alt { background: transparent; color: var(--green); }
.btn.alt:hover { background: var(--green); color: #fff; }
/* Shown only on your own computer when a payment link hasn't been added yet */
.btn.pending {
  background: transparent; color: var(--amber); border: 2px dashed var(--amber);
  font-size: 0.9rem; padding: 10px 14px; cursor: not-allowed;
}
.btn.pending:hover { background: transparent; border-color: var(--amber); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 36px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.hero .small { font-size: 0.95rem; color: var(--muted); margin: 18px 0 0; }

@media (min-width: 800px) {
  .hero { padding: 80px 0 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
}

/* ---------- Photos / placeholders ---------- */
.photo {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 4 / 3; color: #fff;
}
.photo svg { width: 24%; aspect-ratio: 100 / 120; height: auto; }
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .photo { aspect-ratio: 4 / 3.6; border-radius: 28px; }
.hero .photo svg { width: 28%; }

.tone-sage  { background: linear-gradient(135deg, #a9b99a, #7f9a7a); }
.tone-leaf  { background: linear-gradient(135deg, #8fae83, #5f8466); }
.tone-ember { background: linear-gradient(135deg, #cfa57f, #a2704f); }
.tone-sand  { background: linear-gradient(135deg, #e0d3b0, #c4b283); }
.tone-moss  { background: linear-gradient(135deg, #5d7f66, #2b4a37); }
.tone-clay  { background: linear-gradient(135deg, #d4b8a0, #b08a72); }

/* ---------- Sections ---------- */
section { padding: 36px 0; }
.section-head { margin-bottom: 26px; max-width: 36em; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0 0 0.6em; }

.grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.55rem; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.card .desc { flex: 1; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 1.7rem; }
.note { font-size: 0.92rem; color: var(--muted); margin: 10px 0 0; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--paper); color: var(--green); font-size: 0.875rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}

.band { background: #ebe3d0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Text pages ---------- */
.page { padding: 44px 0 56px; }
.page h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 22px; }
.page h2 { font-size: 1.6rem; margin: 34px 0 10px; }
.prose { max-width: 38em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.callout {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 22px; margin: 22px 0;
}
.callout strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-block; padding: 6px 2px; }
