:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #141414;
  --gold: #bca46e;
  --line: #333;
  --muted: #aaa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f3f0e9;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--gold);
}
button,
.button {
  display: inline-block;
  background: #e8e4da;
  color: #111;
  border: 1px solid #e8e4da;
  padding: 15px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover,
.button:hover {
  background: var(--gold);
  color: #111;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
input,
textarea,
select {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid #555;
  color: #eee;
  padding: 13px;
  font: inherit;
  margin: 7px 0 18px;
}
textarea {
  min-height: 160px;
}
label {
  display: block;
  color: #ccc;
  font-size: 14px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
label.check input {
  width: auto;
  margin: 0;
}
form button {
  margin-top: 12px;
}
input:focus,
button:focus,
a:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -80px;
  background: white;
  color: black;
  z-index: 10;
}
.skip:focus {
  top: 0;
}
.announcement {
  background: #c3ad7a;
  color: #0c0c0c;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 9px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5%;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.logo {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -3px;
  font-weight: 900;
}
.logo span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.27em;
  margin-top: 7px;
}
nav,
.header-actions {
  display: flex;
  gap: 26px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(38px, 5.5vw, 85px);
  margin: 18px 0 25px;
}
h2 {
  font-size: clamp(27px, 3.5vw, 50px);
}
h3 {
  font-size: 18px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 690px;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: 85px 9%;
}
.hero-copy h1 {
  font-weight: 900;
  font-size: clamp(46px, 5.5vw, 86px);
  max-width: 700px;
}
.hero-copy p {
  color: #bbb;
  max-width: 440px;
}
.eyebrow {
  color: var(--gold) !important;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-art {
  position: relative;
  overflow: hidden;
  background: #1c1b18;
  display: flex;
  align-items: center;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.83);
}
.hero-art span {
  position: absolute;
  bottom: 28px;
  left: 30px;
  background: #0b0b0bcc;
  padding: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
}
.hero-foot {
  display: block;
  margin-top: 65px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.statement {
  text-align: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
}
.section {
  padding: 75px 5%;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}
.section-heading h2 {
  margin: 10px 0;
}
.section-heading > a {
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.product-image {
  background: #20201e;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover img {
  transform: scale(1.025);
}
.product-info {
  padding: 14px 0;
}
.product-info h3 {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 7px;
  letter-spacing: 0;
}
.product-info span {
  font-size: 13px;
  color: #bbb;
}
.mission {
  background: #191813;
  text-align: center;
  padding: 100px 20%;
  border-top: 1px solid #3c3524;
  border-bottom: 1px solid #3c3524;
}
.mission h2 {
  font-size: clamp(34px, 5vw, 70px);
}
.mission p {
  color: #ccc;
}
.mission a {
  color: var(--gold);
}
.scripture {
  max-width: 1050px;
  margin: auto;
  padding: 95px 8%;
  text-align: center;
}
.scripture blockquote {
  margin: 25px 0;
  font-size: clamp(21px, 2.4vw, 32px);
  font-family: Georgia, serif;
  line-height: 1.6;
}
.scripture > p:last-child {
  color: #aaa;
  font-size: 12px;
}
.remnant {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 75px 8%;
  gap: 60px;
}
.remnant h2 {
  margin: 14px 0;
}
.remnant form {
  align-self: center;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  margin: 20px 0;
}
.auth {
  max-width: 620px;
  margin: 70px auto;
}
.auth h1 {
  font-size: 42px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 25px;
}
.form-result {
  color: var(--gold);
  overflow-wrap: anywhere;
}
.search {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 650px;
  margin: 30px 0;
}
.search label {
  flex: 1;
}
.search input {
  margin-bottom: 0;
}
.search button {
  margin-top: 27px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.gallery img {
  width: 100%;
  height: auto;
}
.gallery img:first-child {
  grid-column: span 2;
}
.product-copy h1 {
  font-size: clamp(30px, 3.5vw, 52px);
}
.price {
  font-size: 26px;
  color: var(--gold);
}
details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.cart-line {
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}
.cart-line h2 {
  font-size: 23px;
}
.cart-line form {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-line input[type="hidden"] {
  display: none;
}
.cart-line label {
  max-width: 200px;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}
dd {
  margin: 0;
}
.cart-layout aside {
  align-self: start;
}
.cart-layout .button {
  display: block;
  text-align: center;
  margin-top: 25px;
}
.account-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.order h3 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.order span {
  color: var(--gold);
  font-size: 12px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.admin-nav {
  background: #151410;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
}
.admin-nav h2 {
  font-size: 17px;
}
.admin-nav a {
  display: block;
  padding: 9px 12px;
  text-transform: capitalize;
  font-size: 13px;
}
.admin-nav a.active {
  background: #332c1c;
  color: var(--gold);
}
.admin-content {
  padding: 45px;
  min-width: 0;
}
.admin-content h1 {
  text-transform: capitalize;
  font-size: 48px;
}
.table-wrap {
  overflow: auto;
  max-height: 550px;
  border: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
td,
th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  max-width: 260px;
  min-width: 120px;
  overflow-wrap: anywhere;
}
th {
  background: #24221c;
  color: var(--gold);
  position: sticky;
  top: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.metrics strong {
  display: block;
  font-size: 30px;
  color: var(--gold);
}
.metrics span {
  font-size: 12px;
}
.prose {
  max-width: 950px;
  margin: auto;
  min-height: 500px;
}
.prose h1 {
  font-size: 54px;
}
.prose p {
  line-height: 1.9;
}
.pagination {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}
.collection-card {
  background: #1b1914;
  padding: 40px;
  border: 1px solid #4d422a;
  min-height: 250px;
}
.collection-card > span {
  font-size: 50px;
  color: var(--gold);
  font-weight: 900;
}
.collection-card h2 {
  font-size: 30px;
}
footer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 65px 8% 25px;
  gap: 35px;
}
footer a:not(.logo) {
  display: block;
  font-size: 13px;
  margin: 10px 0;
  color: #aaa;
}
footer h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
footer p {
  color: #aaa;
  font-size: 13px;
}
.copyright {
  grid-column: span 3;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy {
    padding: 60px 8%;
  }
  .hero {
    min-height: 550px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  nav {
    gap: 14px;
  }
  .product-detail {
    gap: 30px;
  }
  .admin-content {
    padding: 25px;
  }
  .mission {
    padding: 70px 10%;
  }
}
@media (max-width: 640px) {
  header {
    flex-wrap: wrap;
    padding: 20px;
  }
  .logo {
    font-size: 34px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    font-size: 10px;
    gap: 10px;
  }
  .header-actions {
    font-size: 10px;
    gap: 15px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 45px 25px;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 58px);
    overflow-wrap: anywhere;
  }
  .hero-art {
    height: 420px;
  }
  .hero-foot {
    margin-top: 35px;
  }
  .section {
    padding: 50px 20px;
  }
  .section-heading {
    align-items: start;
    gap: 20px;
  }
  .section-heading > a {
    font-size: 11px;
  }
  .grid {
    gap: 14px;
  }
  .product-info h3 {
    font-size: 12px;
  }
  .statement {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .remnant {
    grid-template-columns: 1fr;
    padding: 45px 25px;
    gap: 10px;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .cart-layout,
  .account-settings {
    grid-template-columns: 1fr;
  }
  .auth {
    margin: 40px 15px;
    padding: 25px;
  }
  .auth h1 {
    font-size: 34px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    display: flex;
    overflow: auto;
    gap: 10px;
    padding: 12px;
  }
  .admin-nav h2 {
    display: none;
  }
  .admin-nav a {
    white-space: nowrap;
  }
  .admin-content {
    padding: 20px;
  }
  .metrics {
    gap: 10px;
  }
  .metrics .panel {
    padding: 15px;
  }
  .metrics strong {
    font-size: 23px;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    padding: 40px 25px;
  }
  footer > div:first-child {
    grid-column: span 2;
  }
  .copyright {
    grid-column: span 2;
  }
  .order h3 {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.category-links { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; }
.category-links a { border:1px solid var(--line); padding:10px 14px; border-radius:4px; }
.category-links a:hover,.category-links a[aria-current] { border-color:var(--gold); color:var(--gold); }
.collection-card img { width:100%; height:260px; object-fit:contain; background:#f4f1e7; }

/* Keep intrinsic photo and text widths inside their responsive grid tracks. */
img { max-width:100%; }
.grid > *, .product-detail > *, .gallery > * { min-width:0; }
.gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
.collection-card { overflow-wrap:anywhere; }
@media (max-width:640px) {
  header nav { flex-wrap:wrap; }
  .grid:has(> .collection-card) { grid-template-columns:minmax(0,1fr); }
  .collection-card { padding:24px; }
  .product-detail { grid-template-columns:minmax(0,1fr); }
  .product-copy select { min-width:0; max-width:100%; }
}

 .admin-product-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:24px}
 .admin-product-card {min-width:0;overflow-wrap:anywhere}
 .admin-product-card img {width:100%;height:240px;object-fit:contain;background:#222}
 .admin-product-card h2 {font-size:1.15rem}
 .admin-product-card a {display:block;margin-top:12px}
