/* Maker's Haven store theme — BEACHY (Jonathan's FINAL direction
   2026-11-18, superseding the logo-sampled charcoal/taupe/rose,
   the "lighten a tad" pass, and the sunset-orange beach pass).
   NO brown, no woody/tan tones anywhere. Pale warm-sand ground,
   white + pale-seafoam panels, deep ocean teal header, seafoam /
   aqua secondary accents, coral buttons, silver-gray borders,
   soft gold sparingly (logo ring, header rule, hovers).
   Coral contrast split (measured): bright coral #E8765A is the
   button/chip FILL with deep sea-ink text (4.52:1 — white text on
   it measures only 2.93:1); coral TEXT (links, lane labels) uses
   the hue-preserved deepened shade --accent-ink #A75541
   (≥4.68:1 on sand, white and seafoam). Button hover deepens to
   --accent2 #A75541 with white text (5.23:1). Secondary text uses
   deepened silver-sea-gray #52666B (the raw silver #8A9499 family
   sits in --line borders; as text it measures only ~2.9:1).
   Header: nav left; "The Unruly Maker" wordmark with the round
   logo at the RIGHT. */
:root {
  --bg: #F7F2E7;
  --panel: #FFFFFF;
  --panel2: #EFF7F3;
  --ink: #14343C;
  --muted: #52666B;
  --accent: #E8765A;
  --accent2: #A75541;
  --accent-ink: #A75541;
  --taupe: #7FBFB2;
  --line: #C9D2D4;
  --ok: #2F6F5E;
  --err: #B3402A;
  --gold: #D9A441;
  --silver: #A8D5CB;
  --header-bg: #0E4A56;
  --header-ink: #FFFFFF;
  --header-muted: #A8D5CB;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.5;
}
a { color: var(--accent-ink); }
header.site {
  background: var(--header-bg);
  border-bottom: 3px solid var(--gold);
  padding: 0.7rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  align-items: center;
}
header.site nav { display: flex; flex-wrap: wrap; align-items: center; }
header.site nav a { margin-right: 1.1rem; text-decoration: none; font-size: .95rem; color: var(--header-muted); }
header.site nav a:hover { color: var(--gold); }
/* The TheUnrulyMaker.com nav item is the HOME button: a gold-rimmed
   pill so it clearly reads as the way back to the main site. */
header.site nav a.home-btn {
  border: 2px solid #e9b44c; border-radius: 999px;
  padding: 0.28rem 0.85rem; font-weight: bold; color: var(--header-ink);
}
header.site nav a.home-btn:hover { color: #e9b44c; }
.brand-block {
  margin-left: auto; display: flex; align-items: center; gap: 0.7rem;
}
.brand-name {
  font-size: 1.45rem; font-weight: bold; letter-spacing: .02em;
  color: var(--header-ink); text-decoration: none; white-space: nowrap;
}
.brand-sub { color: var(--header-muted); font-size: 1rem; }
.site-logo {
  height: 64px; width: 64px; border-radius: 50%; object-fit: cover;
  display: block; border: 2px solid var(--gold);
  background: var(--header-bg);
}
@media (max-width: 560px) {
  .site-logo { height: 52px; width: 52px; }
  .brand-name { font-size: 1.2rem; }
  header.site nav a { margin-right: 0.8rem; font-size: .9rem; }
}
/* Button rows: side by side on wide screens, clean full-width stack
   with real spacing on phones (no overlap, no margin collapse). */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1rem 0; }
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}
/* Category browsing: storefront lane tabs + library category chips. */
.lane-tabs, .cat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.cat-chips { margin: 0.25rem 0 1rem; }
.lane-tab, .cat-chip {
  background: var(--panel); color: var(--ink); border: 1px solid var(--taupe);
  border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.92rem;
  cursor: pointer;
}
.lane-tab:hover, .cat-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.lane-tab.on, .cat-chip.on { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: bold; }
.dl-lane { margin: 1.5rem 0 0.25rem; font-size: 1.15rem; }
/* Library items carry their design's preview picture — members browse
   by sight, not just by name. Tap the picture for the big view. */
.dl-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.5rem; }
.dl-thumb {
  width: 96px; height: 96px; flex: none; object-fit: cover; cursor: zoom-in;
  border-radius: 16px; border: 1px solid var(--line); background: var(--panel2);
}
.dl-meta { min-width: 0; }
#lightbox {
  position: fixed; inset: 0; z-index: 60; padding: 1rem;
  background: rgba(11, 44, 47, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#lightbox[hidden] { display: none; }
#lightbox img {
  max-width: 100%; max-height: 82vh; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--taupe);
}
#lb-cap { color: #FDFAF2; margin-top: 0.75rem; text-align: center; font-size: 1.05rem; }
#lb-close {
  position: absolute; top: 0.5rem; right: 1rem; background: transparent;
  border: none; color: #FDFAF2; font-size: 2.2rem; line-height: 1; cursor: pointer;
}
main { max-width: 1080px; margin: 0 auto; padding: 1.25rem; }
.hero {
  background: linear-gradient(135deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px; padding: 2rem; margin-bottom: 2rem;
}
.hero h1 { margin: 0 0 .5rem; font-size: 2rem; }
.hero p { color: var(--muted); max-width: 46em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card .body { padding: .7rem; gap: .35rem; }
  .card h3 { font-size: .92rem; }
  .card .price { font-size: 1rem; }
  .card .btn { font-size: .85rem; padding: .55rem .7rem; }
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card > a { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--panel2); }
.card img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--panel2); }
.card .body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card .lane { color: var(--accent-ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.card .price { font-size: 1.15rem; font-weight: bold; margin-top: auto; }
.btn {
  display: inline-block; background: var(--accent); color: var(--ink); border: none;
  padding: .65rem 1.2rem; border-radius: 999px; font-weight: bold; cursor: pointer;
  text-decoration: none; font-size: 1rem; text-align: center;
}
.btn:hover { background: var(--accent2); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-ink); border: 1px solid var(--accent-ink); }
.btn:disabled { opacity: .55; cursor: wait; }
.club-band {
  border: 2px solid var(--accent); border-radius: 18px; padding: 1.75rem;
  background: var(--panel); margin-bottom: 2rem;
}
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; text-align: center; }
.tier .amount { font-size: 1.9rem; font-weight: bold; }
.tier .per { color: var(--muted); }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .product-hero { grid-template-columns: 1fr; } }
.product-hero img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.notice { border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1rem; background: var(--panel); margin: 1rem 0; }
.notice.warn { border-color: var(--accent2); }
.muted { color: var(--muted); }
table.summary { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.summary th, table.summary td { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: right; }
table.summary th:first-child, table.summary td:first-child { text-align: left; }
table.summary th:nth-child(2), table.summary td:nth-child(2) { text-align: left; }
.totals { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.totals .stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.25rem; }
.totals .stat .v { font-size: 1.4rem; font-weight: bold; }
input[type=email], input[type=text], input[type=password], input[type=search] {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: .6rem .8rem; font-size: 1rem; width: 100%;
}
footer.site { border-top: 2px solid var(--line); padding: 1.5rem 1.25rem; color: var(--muted); font-size: .9rem; margin-top: 3rem; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
code {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 6px;
  padding: .1rem .45rem; font-size: .95em; word-break: break-all;
}

.pw-wrap { display: flex; gap: .4rem; align-items: stretch; }
.pw-wrap input { flex: 1; }
.pw-eye {
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 0 .6rem; cursor: pointer; display: flex; align-items: center;
}
.pw-eye:hover { color: var(--ink); }
.pw-eye.on { color: var(--accent-ink); border-color: var(--accent); }
