/* site.css: terrireneedesigns.com. Same layout as the old Big Cartel store, in the colours of
   Terri's logos: cream, black, gold and oxblood. */
:root {
  --ink: #201C19;
  --cream: #F9F6F0;
  --panel: #F0ECE2;
  --gold: #D4AF5A;       /* rules and accents; text only on black */
  --gold-text: #80621A;  /* gold words on cream */
  --oxblood: #6E1A1E;
  --oxblood-dark: #561316;
  --muted: #6B6359;
  --line: #DDD6C8;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 960px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */

.site-top { background: var(--ink); color: var(--cream); }
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); min-width: 0; }
.brand img { width: 62px; height: auto; flex: none; }
.brand span {
  font: 600 clamp(22px, 5vw, 38px)/1.05 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase;
}
.request-link {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: var(--cream); text-decoration: none; font: 500 15px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 0;
}
.request-link .count {
  min-width: 24px; height: 24px; border-radius: 12px; background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; padding: 0 6px;
}

.site-nav { border-bottom: 2px solid var(--gold); }
.site-nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 52px; }
.menu { position: relative; }
.menu > button, .site-nav .plain {
  background: none; border: 0; padding: 14px 0; cursor: pointer; color: var(--ink); text-decoration: none;
  font: 600 18px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.menu > button::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.menu-list {
  position: absolute; left: 0; top: 100%; z-index: 20; min-width: 240px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--cream); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: 0 8px 24px rgba(32, 28, 25, 0.12);
}
.menu-list[hidden] { display: none; }
.menu-list a { display: block; padding: 10px 18px; text-decoration: none; font: 600 17px/1.3 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; }
.menu-list a:hover, .menu-list a:focus-visible { background: var(--panel); }
.search { margin-left: auto; display: flex; align-items: center; }
.search input {
  width: 150px; border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 8px 4px;
  font: 600 16px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.search input::placeholder { color: var(--ink); opacity: 1; }
.search input:focus { border-bottom-color: var(--gold); outline: none; }

/* ---------- page parts ---------- */

main { min-height: 50vh; }
.page-title { margin: 28px 0 0; font: 600 34px/1.15 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-style: italic; font-family: var(--font-head); font-size: 20px; }
.rule { border: 0; border-top: 2px solid var(--gold); margin: 20px 0; }
.label { font: 600 22px/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; margin: 32px 0 16px; }

/* slideshow */
.slideshow { position: relative; margin-top: 24px; background: var(--ink); aspect-ratio: 4 / 5; max-height: 78vh; overflow: hidden; width: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide a { display: block; height: 100%; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--cream); background: transparent; padding: 0; cursor: pointer; }
.slide-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.card a { text-decoration: none; display: block; }
.card .img { aspect-ratio: 1; background: var(--panel); overflow: hidden; position: relative; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card a:hover img { transform: scale(1.03); }
.card .name { margin-top: 10px; font: 600 18px/1.25 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; }
.card .price { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tag-sold {
  position: absolute; top: 10px; left: 10px; background: var(--oxblood); color: var(--cream);
  font: 500 12px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 9px;
}
.view-all { display: flex; justify-content: flex-end; border-top: 2px solid var(--gold); margin-top: 36px; padding-top: 14px; }
.view-all a { text-decoration: none; font: 600 18px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.view-all a::after { content: ' →'; }

/* product page */
.product { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.product-head { margin-top: 28px; }
.product-head .price { font-size: 19px; margin: 4px 0 0; }
.gallery .main { background: var(--panel); }
.gallery .main img { width: 100%; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: var(--panel); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 18px;
  border: 2px solid var(--oxblood); border-radius: var(--radius); background: var(--oxblood); color: var(--cream); cursor: pointer;
  font: 500 15px/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.btn:hover { background: var(--oxblood-dark); border-color: var(--oxblood-dark); }
.btn-outline { background: transparent; color: var(--oxblood); }
.btn-outline:hover { background: var(--oxblood); color: var(--cream); }
.status-note { text-align: center; font: italic 500 18px/1.3 var(--font-head); color: var(--oxblood); margin: 2px 0 0; }
.description { margin-top: 18px; }
.description p { margin: 0 0 12px; }
.added { background: var(--panel); border-left: 3px solid var(--gold); padding: 10px 14px; font-size: 15px; }
.added a { color: var(--oxblood); font-weight: 500; }

/* request list */
.request-items { list-style: none; margin: 0; padding: 0; }
.request-items li { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.request-items img { width: 88px; height: 88px; object-fit: cover; background: var(--panel); }
.request-items .name { font: 600 19px/1.25 var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.request-items .small { font-size: 14px; color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--oxblood); text-decoration: underline; cursor: pointer; font: 500 15px var(--font-body); padding: 8px; }
.notice { background: var(--panel); border-left: 3px solid var(--gold); padding: 14px 16px; margin: 20px 0; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* contact */
.prose { max-width: 640px; }
.prose a { color: var(--oxblood); }

/* ---------- footer ---------- */

.site-foot { margin-top: 64px; background: var(--ink); color: var(--cream); padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-foot img { width: 120px; height: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--cream); text-decoration: none; font: 600 17px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.site-foot a:hover { color: var(--gold); }
.site-foot .copy { width: 100%; font-size: 13px; color: rgba(249, 246, 240, 0.7); }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .product { grid-template-columns: 1fr; }
  .site-nav .wrap { gap: 18px; }
  .search input { width: 96px; }
  .brand img { width: 48px; }
  .site-top .wrap { min-height: 72px; }
  .request-link .word { display: none; }
}
