/* Tim's Collective. One stylesheet for every page; no build step. */

:root {
  --bg: #f7f2e8;
  --panel: #efe6d4;
  --ink: #2a251f;
  --muted: #6b6153;
  --rule: #ddd1bb;
  --accent: #8a5a2b;
  --accent-ink: #fffaf0;
  --tan: #c9a877;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a16;
    --panel: #29241e;
    --ink: #efe7da;
    --muted: #b3a792;
    --rule: #3d362d;
    --accent: #d6a466;
    --accent-ink: #1d1a16;
    --tan: #a8865a;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 0.4rem; }
h2 { font-size: 1.45rem; margin: 2.6rem 0 0.8rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.3rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }

main { padding: 2.2rem 0 3rem; }

.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.6rem; }

.photo {
  margin: 0 0 1.8rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}
.photo img { display: block; width: 100%; height: auto; }
.photo-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--tan);
  border-radius: 6px;
}

.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 20px;
  margin: 0 0 2rem;
  background: var(--panel);
  border-radius: 6px;
}
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.price small { display: block; margin-top: 8px; line-height: 1.4; font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.button {
  display: inline-block;
  margin-left: auto;
  padding: 12px 26px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button[aria-disabled="true"] { background: var(--rule); color: var(--muted); cursor: default; filter: none; }
.buy-note { flex-basis: 100%; margin: 0; font-size: 0.9rem; color: var(--muted); }

.facts { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--rule); }
.facts li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts b { flex: 0 0 8.5rem; font-weight: 600; }

.small { font-size: 0.9rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--rule); padding: 1.4rem 0 2.4rem; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 0 0 0.4rem; }

.home { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.home h1 { margin-bottom: 0.6rem; }
.home p { color: var(--muted); max-width: 30rem; margin-left: auto; margin-right: auto; }

@media (max-width: 30rem) {
  .facts li { flex-direction: column; gap: 0; }
  .facts b { flex-basis: auto; }
  .button { margin-left: 0; width: 100%; text-align: center; }
}
