/* VividoriaArts — stage 1 link hub
   Primary style: Luffu (https://styles.refero.design/style/3da7b444-ded8-406b-90b7-96851604b92b)
   Borrowed: Frontify dark editorial surface + 18px+ body tracking
   Brand colors from the KDP covers. */

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Variable.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Italic-Variable.woff") format("woff");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Variable.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Italic-Variable.woff") format("woff");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-deep-teal: #16454b;
  --color-deep-teal-hover: #12393f;
  --color-parchment: #f5f5ee;
  --color-linen: #e4e7da;
  --color-pressed-cotton: #d7d7cb;
  --color-graphite: #2f3136;
  --color-slate: #535557;
  --color-dusk: #424e52;
  --color-white: #ffffff;
  --color-gold: #cda85c;
  --color-terracotta: #ab664e;
  --color-hairline: #c5c6b8;

  --font-display: "Playfair Display", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --text-caption: 1.0625rem;
  --text-body: 1.25rem;
  --text-body-lg: 1.375rem;
  --leading-body: 1.55;
  --tracking-body: 0.01em;
  --tracking-display: -0.02em;
  --tracking-wordmark: -0.03em;

  --page-max: 72rem;
  --content-max: 40rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
  --space-9: 7rem;

  --radius-btn: 6px;
  --radius-card: 8px;
  --radius-img: 6px;

  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--color-parchment);
  color: var(--color-graphite);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-deep-teal); }
a:hover { color: var(--color-deep-teal-hover); }

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-hairline);
}

.header-inner,
.wrap {
  width: min(100% - 2.5rem, var(--page-max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: var(--tracking-wordmark);
  color: var(--color-graphite);
  text-decoration: none;
  line-height: 1;
  text-wrap: balance;
}
.wordmark:hover { color: var(--color-deep-teal); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.nav a {
  color: var(--color-graphite);
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--color-deep-teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  text-wrap: balance;
}
.btn-primary {
  background: var(--color-deep-teal);
  color: var(--color-white);
  border-color: var(--color-deep-teal);
}
.btn-primary:hover {
  background: var(--color-deep-teal-hover);
  color: var(--color-white);
  border-color: var(--color-deep-teal-hover);
}
.btn-on-dark {
  background: var(--color-parchment);
  color: var(--color-deep-teal);
  border-color: var(--color-parchment);
}
.btn-on-dark:hover {
  background: var(--color-white);
  color: var(--color-deep-teal-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--color-deep-teal);
  border-color: var(--color-deep-teal);
}
.btn-ghost:hover {
  background: var(--color-deep-teal);
  color: var(--color-white);
}
.btn-ghost-on-dark {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-ghost-on-dark:hover {
  background: var(--color-white);
  color: var(--color-deep-teal);
}
.btn-soon,
.btn[aria-disabled="true"] {
  background: var(--color-pressed-cotton);
  color: var(--color-graphite);
  border-color: var(--color-pressed-cotton);
  cursor: default;
  pointer-events: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}
.hero-inner {
  width: min(100% - 2.5rem, var(--page-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--color-gold);
  letter-spacing: 0;
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  margin: 0 0 1.15rem;
  text-wrap: balance;
  color: var(--color-white);
}
.hero .lead {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0;
  color: rgba(245, 245, 238, 0.92);
  text-wrap: pretty;
}
.hero-visual {
  position: relative;
  min-height: 22rem;
}
.cover-stack {
  position: relative;
  height: 100%;
  min-height: 26rem;
}
.cover-stack .cover {
  position: absolute;
  width: min(58%, 19rem);
  border: 2px solid rgba(245, 245, 238, 0.7);
  border-radius: 2px;
  background: var(--color-parchment);
}
.cover-stack .cover img {
  width: 100%;
  height: auto;
}
.cover-stack .cover-a {
  left: 0;
  top: 6%;
  transform: rotate(-3.5deg);
  z-index: 1;
}
.cover-stack .cover-b {
  right: 4%;
  top: 16%;
  transform: rotate(3deg);
  z-index: 2;
}

/* ---------- Sections ---------- */
section { padding: var(--space-8) 0; }
.section-linen { background: var(--color-linen); }
.section-head {
  max-width: 38rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-terracotta);
  margin: 0 auto 1.25rem;
  border: 0;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: var(--tracking-display);
  margin: 0 0 0.85rem;
  text-wrap: balance;
  color: var(--color-graphite);
}
.section-head p {
  margin: 0;
  color: var(--color-slate);
  font-size: var(--text-body-lg);
  text-wrap: pretty;
}
.center-cta { text-align: center; margin-top: 2rem; }
.note {
  margin: 1rem 0 0;
  font-size: var(--text-caption);
  color: var(--color-slate);
}

/* Sample preview row */
.sample-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0 auto 0.5rem;
  max-width: 56rem;
}
.sample-preview figure {
  margin: 0;
  background: var(--color-parchment);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-hairline);
}
.sample-preview img {
  width: 100%;
  height: auto;
}
.sample-preview figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: var(--text-caption);
  color: var(--color-slate);
}

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.book-card,
.shop-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.book-card .cover-link,
.book-card .cover-frame {
  display: block;
  align-self: center;
  width: min(100%, 18rem);
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--color-hairline);
}
.book-card h3,
.shop-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  text-wrap: balance;
}
.book-card .meta,
.shop-card .meta {
  margin: 0 0 0.75rem;
  color: var(--color-slate);
  font-size: var(--text-caption);
}
.book-card p,
.shop-card p {
  margin: 0;
  text-wrap: pretty;
}
.book-card .btn,
.shop-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Shops ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.why-item p { margin: 0; color: var(--color-slate); text-wrap: pretty; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: 4rem 0 2.5rem;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--page-max));
  margin-inline: auto;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  letter-spacing: var(--tracking-wordmark);
  line-height: 0.95;
  margin: 0 0 0.75rem;
  color: var(--color-white);
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gold);
  font-size: 1.25rem;
  margin: 0 0 2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.125rem;
}
.footer-links a:hover { color: var(--color-gold); }
.footer-legal {
  margin: 0;
  font-size: var(--text-caption);
  color: rgba(245, 245, 238, 0.8);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner,
  .book-grid,
  .shop-grid,
  .sample-preview,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .cover-stack {
    min-height: 18.25rem;
    max-width: min(22rem, 100%);
    margin: 0 auto 0.5rem;
  }
  .cover-stack .cover { width: 58%; }
  .cover-stack .cover-a { left: 5%; top: 8%; }
  .cover-stack .cover-b { right: 5%; top: 18%; }
  section { padding: 4rem 0; }
  .header-inner { flex-wrap: wrap; padding: 0.6rem 0; }
  .book-card .btn,
  .shop-card .btn { align-self: stretch; }
}

@media (max-width: 520px) {
  .header-inner, .wrap, .hero-inner, .footer-inner {
    width: min(100% - 1.5rem, var(--page-max));
  }
  .wordmark { font-size: 1.45rem; }
  .nav { gap: 0.2rem 1.15rem; }
  .hero h1 { font-size: 2.15rem; }
  .btn { width: 100%; }
  .cover-stack { min-height: 17.75rem; }
  .cover-stack .cover-a { left: 4%; top: 6%; }
  .cover-stack .cover-b { right: 4%; top: 16%; }
  .why-grid { gap: 1.75rem; }
}

@media (min-width: 1100px) {
  .book-card {
    flex-direction: row;
    align-items: stretch;
    gap: 1.75rem;
  }
  .book-card .cover-frame,
  .book-card .cover-link {
    width: 13.5rem;
    flex: 0 0 13.5rem;
    align-self: flex-start;
  }
  .book-body { display: flex; flex-direction: column; flex: 1; }
  .book-body .btn { margin-top: auto; align-self: stretch; }
}
