/* sorenvaldane.com: base, header, footer, pages, product. The homepage section styles are inlined from _src/landing.css. */
:root {
  --color-background: #0a0810;
  --color-foreground: #ece7f3;
  --gold: #c9a35c;
  --violet: #5b2f8f;
  --font-heading--family: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --padding-4xl: 56px;
  --padding-6xl: 96px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading--family); font-weight: 400; line-height: 1.15; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--gold); color: #0a0810; padding: 8px 12px; }

/* Announcement bar: two messages, crossfade */
.announce { background: #120c1a; border-bottom: 1px solid rgb(201 163 92 / 0.2); font-size: 0.8rem; letter-spacing: 0.06em; text-align: center; }
.announce__track { position: relative; height: 38px; }
.announce__track > * { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; text-decoration: none; color: var(--color-foreground); opacity: 0; transition: opacity 0.6s ease; }
.announce__track > .is-on { opacity: 1; }
.announce__track > a:hover { color: var(--gold); }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: #0a0810; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 14px max(16px, 4vw); }
.header__logo img { display: block; height: 30px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 28px; }
.nav a, .nav__drop-btn { color: var(--color-foreground); text-decoration: none; font: inherit; font-size: 0.95rem; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.nav a:hover, .nav__drop-btn:hover { color: var(--gold); }
.nav__drop { position: relative; }
.nav__drop-btn span { font-size: 0.7rem; margin-left: 4px; }
.nav__sub { position: absolute; right: 0; top: 100%; min-width: 220px; padding: 10px 0 !important; background: #120c1a; border: 1px solid rgb(201 163 92 / 0.25); box-shadow: 0 20px 40px rgb(0 0 0 / 0.5); display: none; }
.nav__sub a { display: block; padding: 8px 18px; }
.nav__drop:hover .nav__sub, .nav__drop.is-open .nav__sub { display: block; }
.header__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
.header__toggle span { display: block; height: 2px; margin: 5px 0; background: var(--color-foreground); transition: transform 0.2s ease, opacity 0.2s ease; }

@media (max-width: 749px) {
  .header__toggle { display: block; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-bottom, 102px); visibility: hidden; background: #0a0810; padding: 12px 16px 40px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease, visibility 0.25s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .nav a, .nav__drop-btn { display: block; width: 100%; text-align: left; padding: 14px 0; font-size: 1.05rem; }
  .nav__sub { position: static; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 10px 14px !important; }
  .nav__sub a { padding: 8px 0; font-size: 0.95rem; opacity: 0.85; }
  .header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Buttons (pages outside the landing) */
.button { display: inline-block; padding: 15px 28px; border: 1px solid var(--gold); border-radius: 2px; text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; font-family: var(--font-body); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(201 163 92 / 0.3); }
.button--primary { background: var(--gold); color: #0a0810; }

/* Story pages and policies */
.page { max-width: 760px; margin: 0 auto; padding: 48px max(16px, 4vw) 96px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 28px; }
.page figure { margin: 0 0 28px; }
.rte { font-size: 1.05rem; line-height: 1.75; }
.rte h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2em 0 0.6em; color: var(--color-foreground); }
.rte h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.rte a { color: var(--gold); }
.rte blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 2px solid var(--gold); background: rgb(255 255 255 / 0.03); font-family: var(--font-heading--family); font-style: italic; font-size: 1.2rem; }
.rte blockquote p { margin: 0; }
.rte ul { padding-left: 1.2em; }
.rte strong { color: #fff; }
.page--policy .rte { font-size: 0.98rem; }
.page--policy .rte h2 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; }

/* Contact form */
.contact { display: grid; gap: 16px; margin-top: 28px; }
.contact label { display: grid; gap: 6px; font-size: 0.9rem; }
.contact input, .contact textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--color-foreground); background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.15); border-radius: 2px; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--gold); }
.contact .button { justify-self: start; }
.contact__note { margin: 0; font-size: 0.8rem; opacity: 0.6; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); max-width: 1100px; margin: 0 auto; padding: 56px max(16px, 4vw) 96px; align-items: start; }
.gallery { position: sticky; top: 90px; text-align: center; }
.gallery__main { width: min(100%, 440px); filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.7)) drop-shadow(0 0 40px rgb(91 47 143 / 0.45)); }
.gallery__thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.gallery__thumb { width: 64px; height: 84px; padding: 0; border: 1px solid rgb(255 255 255 / 0.15); background: #120c1a; cursor: pointer; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--gold); }
.product__info h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 12px; }
.product__price { margin: 0; font-size: 1.4rem; color: var(--gold); }
.product__price span { font-size: 0.8rem; opacity: 0.7; color: var(--color-foreground); }
.product__format { margin: 6px 0 20px; font-size: 0.9rem; opacity: 0.75; }
.product__buy { display: block; text-align: center; }
.product__delivery { margin: 16px 0 8px; font-size: 0.9rem; opacity: 0.8; }
.product__delivery p { margin: 4px 0; }
.product__delivery a { color: var(--gold); }
.product__desc h3 { color: var(--gold); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 28px; }
.product__desc .pg-page { margin: 24px 0; padding: 24px; background: #efe6d2; color: #2a2118; box-shadow: 0 20px 50px rgb(0 0 0 / 0.5); font-family: Georgia, "Times New Roman", serif; line-height: 1.65; }
.product__desc .pg-page p:first-child { color: #7a5a24; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; }
.product__desc .pg-page em { color: #4b2a6b; }
.product__desc .pg-page strong { color: inherit; }
.sticky-buy { display: none; }

@media (max-width: 749px) {
  .product { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .gallery { position: static; }
  .gallery__main { max-height: 34vh; width: auto; }
  .sticky-buy { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(10 8 16 / 0.94); border-top: 1px solid rgb(201 163 92 / 0.35); transform: translateY(110%); transition: transform 0.3s ease; }
  .sticky-buy.is-shown { transform: none; }
  .sticky-buy .button { display: block; text-align: center; }
}

/* Footer */
.footer { background: #120c1a; border-top: 1px solid rgb(201 163 92 / 0.2); padding: 56px max(16px, 4vw) 28px; font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; max-width: 1200px; margin: 0 auto; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer a { text-decoration: none; opacity: 0.85; }
.footer a:hover { color: var(--gold); opacity: 1; }
.footer p { margin: 0 0 10px; opacity: 0.8; }
.footer__brand { font-family: var(--font-heading--family); font-size: 1.3rem; color: var(--gold); opacity: 1 !important; }
.footer__head { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--gold); opacity: 1 !important; }
.footer__copy { max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 0.8rem; opacity: 0.6; }
@media (max-width: 749px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  body.home .footer, body.product-page .footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .announce__track > * , .nav, .button, .sticky-buy { transition: none; }
}
