/* Timeless Solutions — static site, no tracking, no framework */
:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #1a2226;
  --muted: #4b555c;
  --line: #d8d0c4;
  --accent: #1d3d3a;
  --accent-hover: #132c2a;
  --cta: #8b2a1c;
  --cta-hover: #6e2116;
  --cta-text: #fff;
  --max: 68rem;
  --text: 40rem;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner,
.site-footer .footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
}
.brand:hover { color: var(--accent); }
.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main { flex: 1; padding: 1.75rem 0 3rem; }
.wrap-narrow { width: min(var(--text), calc(100% - 2rem)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
h2 { font-size: 1.2rem; margin-top: 1.75rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0.3rem 0; }
.lede, .muted { color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }

.product {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .product {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
  }
}
.product-image {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.5rem;
}
.product-image img { width: 100%; }
.product-meta { display: flex; flex-direction: column; gap: 0.75rem; }
.price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.currency { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 0.25rem; }
.badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.15rem 0.5rem;
  width: fit-content;
}

.btn-etsy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: var(--cta-text);
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 1.25rem;
  min-height: 3rem;
  min-width: 12rem;
  border-radius: 2px;
  width: 100%;
  text-align: center;
}
.btn-etsy:hover,
.btn-etsy:focus {
  background: var(--cta-hover);
  color: var(--cta-text);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.details { margin-top: 2.5rem; max-width: var(--text); }
.details p:first-of-type { font-size: 1.05rem; }

.card-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.card-list li { margin: 0 0 1rem; }
.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--accent); }
.card h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.5rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { color: var(--accent); }

.details .cta-wrap { margin: 1.5rem 0 0; }
@media (min-width: 800px) {
  .details .btn-etsy { width: auto; min-width: 14rem; }
}
.details {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Template cards: one card now, more can drop in beside it */
.template-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .template-grid {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 24rem));
  }
}
.template-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.template-card:hover,
.template-card:focus {
  border-color: var(--accent);
  color: inherit;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.template-card .card-image {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.template-card .card-image img {
  width: 100%;
  aspect-ratio: 957 / 556;
  object-fit: cover;
}
.template-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.05rem 1.1rem;
  flex: 1;
}
.template-card h2 {
  margin: 0;
  font-size: 1.12rem;
}
.template-card .card-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.template-card .price {
  font-size: 1.15rem;
  margin: 0.35rem 0 0;
}

.home-intro { margin-bottom: 2rem; max-width: var(--text); }
