:root {
  color-scheme: light;
  --paper: #1b191a;
  --surface: #e9e3d8;
  --ink: #13100f;
  --muted: #423934;
  --line: #b9aa98;
  --accent: #963c22;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 86% 0%, #442c29, transparent 48rem), var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 90rem; padding-inline: clamp(1rem, 4vw, 4rem); margin-inline: auto; }
header, .nav, .hero, .product-heading, .view-bar, form, .total, .basket li, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header { min-height: 5.7rem; }
.brand { font-weight: 760; text-decoration: none; font-size: 1.25rem; letter-spacing: -.045em; }
.nav { gap: .8rem; font-size: .91rem; }
.nav a, .status { display: inline-flex; align-items: center; min-height: 2.65rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #ede6d9; text-decoration: none; font-weight: 650; }
.nav a:hover { background: #f6eedb; border-color: #c9b580; }
.status { color: var(--muted); }
.hero {
  position:relative; isolation:isolate; overflow:hidden; display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:clamp(1rem,4vw,4rem); align-items:center;
  min-height:18rem; padding:clamp(1.75rem,4vw,3.5rem); margin:.25rem 0 clamp(1.4rem,3vw,2.5rem);
  border:1px solid #846350; border-radius:clamp(2rem,4vw,3.5rem);
  background:radial-gradient(ellipse at 81% 54%,#ab4e2c 0%,transparent 26%),linear-gradient(102deg,#d9c6ac 0%,#cbb296 43%,#735648 60%,#30272a 78%,#191619 100%);
}
.hero::before { content:""; position:absolute; z-index:-1; pointer-events:none; inset:.48rem; border:1px solid #af8d4a6b; border-radius:inherit; }
.hero h1, .product-heading h3, .basket h2 { font-family:"Baskervville",Palatino,"Palatino Linotype",Georgia,serif; font-weight:700; }
.hero h1 { color:#170f10; max-width:10em; text-wrap:balance; }
.hero .tower { display:block; justify-self:center; width:min(100%,21rem); height:auto; }
.brand { display:inline-flex; align-items:center; gap:.55rem; font-family:Palatino,Georgia,serif; color:#efdeca; }
.brand img { background:#d2bb99; border-radius:50%; padding:.2rem; display:block; width:2.55rem; height:2.55rem; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 680; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5.4rem); letter-spacing: -.065em; line-height: 1.04; }
.hero p { color: #251a18; margin-top: .8rem; max-width: 28rem; font-size: 1.08rem; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.7rem); align-items: stretch; }
.tile { min-width: 0; display: flex; flex-direction: column; padding: .8rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); box-shadow: 0 12px 30px #202e4812; }
.frame { aspect-ratio: 1; display: grid; place-items: center; background: #e6e8ea; color: var(--ink); overflow: hidden; border-radius: 1.5rem; }
.frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.view-bar { position: relative; margin: .85rem .45rem 1rem; min-height: 2.9rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .42rem; }
.thumbs button { display: block; padding: 3px; border: 2px solid transparent; border-radius: 999px; background: #f0f2f5; }
.thumbs button[aria-pressed=true] { border-color: var(--accent); background: #eed2b6; }
.thumbs img { display: block; width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 999px; }
.caption { text-align: right; color: var(--muted); font-size: .88rem; }
.product-heading { align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; padding: .2rem .55rem 0; }
.product-heading h3 { margin: 0; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.045em; line-height: 1.15; }
.price { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.description { color: var(--muted); margin: .55rem .55rem 1.3rem; }
form { margin-top: auto; gap: .65rem; padding: 0 .45rem .45rem; }
select, form button, .clear, .remove { border-radius: 999px; border: 1px solid var(--line); padding: .68rem 1rem; min-height: 2.85rem; color: var(--ink); background-color: #f7f5ef; }
select { appearance: none; padding-right: 2.15rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23626873' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
label { display: flex; align-items: center; gap: .45rem; font-size: .91rem; font-weight: 600; }
form button { flex: 1; background: #29191a; color: #fff; font-weight: 650; border-color: #29191a; }
form button:hover { background: #552b27; }
.basket { margin: clamp(2.2rem, 4vw, 4rem) 0 2rem; padding: clamp(1.5rem, 3vw, 2.6rem); border: 1px solid var(--line); border-radius: 2.25rem; background: var(--surface); box-shadow: 0 14px 32px #202e480e; }
.basket h2 { font-size: 2rem; letter-spacing: -.04em; }
.basketsmall, footer { color: var(--muted); font-size: .95rem; }
#empty { margin-top: 1.25rem; }
.basket ul { list-style: none; padding: 0; }
.basket li { border-top: 1px solid var(--line); padding: .7rem 0; }
.basket li span:first-child { flex: 1; }
.total { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.clear:disabled { opacity: .55; cursor: default; }
footer { color:#d8cbc0; border-top: 1px solid var(--line); padding: 1rem 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width: 66rem) and (min-width: 45.01rem) { .view-bar { align-items: start; flex-direction: column; gap: .35rem; } form { flex-wrap: wrap; } }
@media(max-width: 45rem) {
  .shelf { grid-template-columns: 1fr; gap: 1.15rem; }
  .tile { max-width: 34rem; width: 100%; justify-self: center; }
  .hero { background:radial-gradient(ellipse at 50% 20%,#a85938,transparent 40%),linear-gradient(180deg,#261c20 0%,#4b3632 25%,#d2b99a 66%,#ddcbb4 100%); grid-template-columns:minmax(0,1fr); min-height:0; gap:1rem; text-align:center; }
  .hero .tower { grid-row:1; width:clamp(9rem,37vw,14rem); }
  .hero h1, .hero p { margin-inline:auto; }
  .nav { gap: .4rem; } .status { display: none; }
  header { min-height: 4.7rem; } .basket li { flex-wrap: wrap; }
}
@media(max-width: 21rem) { .brand { font-size: 1.05rem; } .nav a { padding-inline: .65rem; } form { flex-wrap: wrap; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.collection-heading { margin: 2rem 0 1rem; color: #f3e7d8; font: 700 clamp(1.8rem,3vw,2.75rem)/1.15 Palatino,Georgia,serif; letter-spacing: -.035em; }
.collection, #sauron { scroll-margin-top: 1rem; }
.sauron-card .frame { background: white; }
.sauron-card .product-heading { margin-top: .9rem; }
.sauron-card h3 { margin: 0; font: 700 clamp(1.4rem,2vw,1.9rem)/1.15 Palatino,Georgia,serif; letter-spacing: -.04em; }
.color-options { display:flex; flex-wrap:wrap; gap:.4rem; margin:.9rem .45rem 1.1rem; }
.color-options button { display:inline-flex; align-items:center; gap:.4em; padding:.45em .65em; min-height:2.4rem; border:1px solid #b9aa98; border-radius:999px; background:transparent; color:#241c18; font-size:.84rem; }
.color-options button[aria-pressed=true] { background:#fff8eb; border-color:#733c2c; box-shadow:inset 0 0 0 1px #733c2c; }
.color-options button::before { content:''; width:.75rem; height:.75rem; border-radius:50%; background:var(--tone); border:1px solid #63534766; }
[data-tone=black] { --tone:#343235; } [data-tone=coffee] { --tone:#99775b; } [data-tone=grey] { --tone:#a09ea1; } [data-tone=khaki] { --tone:#e0d3bd; }

.collection-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.collection-links a { padding: .4rem .9rem; border: 1px solid #806750; border-radius: 2rem; background: #f3e4cd; font-weight: 650; text-decoration: none; }
.collection-links a:hover { background: #fff4e3; }
@media (max-width: 45rem) { .collection-links { justify-content: center; } }
@media (min-width: 45.01rem) { .collection .shelf { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 76rem) {
  #dark-lord .shelf { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #dark-lord .view-bar { flex-wrap: wrap; gap: .35rem; }
  #lands-and-legends .shelf { max-width: calc(50% - .5rem); }
}

#checkout { background:#29191a; color:white; border:0; border-radius:999px; min-height:44px; padding:.65rem 1.5rem; font:inherit; font-weight:650; }
#checkout:disabled { background:#645957; cursor:default; }
.total { flex-wrap:wrap; } .total strong { margin-right:auto; }
@media (max-width:45rem) {
  .collection-links a, .color-options button { min-height:44px; display:inline-flex; align-items:center; }
  .basket { padding:1.1rem; } .total { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  #checkout { grid-column:1/-1; width:100%; }
  .basket li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.4rem .65rem; }
  .basket li span:first-child { overflow-wrap:anywhere; } .basket .remove { justify-self:start; }
  .view-bar { flex-wrap:wrap; } .hero h1 { overflow-wrap:break-word; }
  form select {font-size:1rem;} .frame {min-width:0;}
}
