/* ============================================================
   TEN WEST PUBLISHING — fine-press edition
   Gold tooling on bottle-green leather; letterpress paper;
   gaslight and iron. A street corner at dusk, implied.
   ============================================================ */

:root {
  --night:     #0c1f1a;   /* near-black bottle green */
  --night-2:   #112823;
  --pine:      #1a3630;
  --paper:     #f4edda;
  --paper-2:   #ede3c8;
  --ink:       #241f17;
  --ink-soft:  #57503f;
  --gold:      #c9a35c;
  --gold-lt:   #ecd7a0;
  --gold-deep: #96793f;
  --oxblood:   #6e2a30;
  --glow:      #e9b96a;
  --hairline:  rgba(201, 163, 92, 0.38);
  --hairline-paper: rgba(120, 98, 52, 0.34);

  --display: "Fraunces", Georgia, serif;
  --caps:    "Cinzel", Georgia, serif;
  --body:    "Spectral", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
a { color: var(--oxblood); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.center { text-align: center; }

/* ---------- Editorial section heads: — Nº II · The Catalogue — ---------- */
.sec-head {
  display: flex; align-items: center; gap: 1.3rem;
  max-width: 560px; margin: 0 auto 2.4rem;
}
.sec-rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--hairline-paper)); }
.sec-rule:last-child { background: linear-gradient(90deg, var(--hairline-paper), transparent); }
.sec-no {
  font-family: var(--caps); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-deep); white-space: nowrap;
}
.sec-head-light .sec-no { color: var(--gold); }
.sec-head-light .sec-rule { background: linear-gradient(90deg, transparent, var(--hairline)); }
.sec-head-light .sec-rule:last-child { background: linear-gradient(90deg, var(--hairline), transparent); }

.eyebrow {
  font-family: var(--caps); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.34em;
  font-size: 0.72rem; margin: 0 0 1.4rem;
}
.eyebrow-gold { color: var(--gold); }

.lede-line {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--gold-deep);
  margin: 0.9rem 0 0;
}
.section-night .lede-line { color: var(--gold); }

/* ---------- Buttons: gold foil + ghost ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--caps); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.76rem;
  padding: 1rem 2.1rem; border-radius: 2px;
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-foil {
  color: #241a09;
  background: linear-gradient(105deg, #b28d49 0%, #e9d193 28%, #c9a35c 52%, #f0dca4 74%, #ad8845 100%);
  background-size: 220% 100%;
  box-shadow: 0 10px 26px rgba(160, 124, 60, 0.35), inset 0 0 0 1px rgba(255, 250, 230, 0.4);
}
.btn-foil:hover {
  background-position: 90% 0;
  box-shadow: 0 14px 32px rgba(160, 124, 60, 0.5), inset 0 0 0 1px rgba(255, 250, 230, 0.55);
}
.btn-ghost {
  color: var(--gold-lt);
  border: 1px solid var(--hairline);
  background: rgba(201, 163, 92, 0.05);
}
.btn-ghost:hover { border-color: var(--gold); color: #fff8e6; background: rgba(201,163,92,0.12); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem clamp(1.2rem, 5vw, 4rem);
  background: rgba(10, 24, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--gold-lt); }
.brand:hover { text-decoration: none; color: #fff4d6; }
.brand-glyph { width: 24px; height: 24px; }
.brand-name {
  font-family: var(--caps); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2.1rem); }
.site-nav a {
  color: #cfc4a6; font-family: var(--caps); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem;
}
.site-nav a:hover { color: var(--gold-lt); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--hairline); border-radius: 2px;
  padding: 0.5rem 1rem; color: var(--gold) !important;
}
.nav-cta:hover { background: rgba(201, 163, 92, 0.12); }
@media (max-width: 760px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(130% 100% at 50% 0%, #16342d 0%, var(--night-2) 45%, var(--night) 100%);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.2rem, 5vw, 4rem) 0;
  text-align: center;
}
/* stars + vignette */
.hero-atmos {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(244, 237, 218, 0.55), transparent),
    radial-gradient(1px 1px at 26% 9%, rgba(244, 237, 218, 0.4), transparent),
    radial-gradient(1.4px 1.4px at 41% 22%, rgba(244, 237, 218, 0.35), transparent),
    radial-gradient(1px 1px at 58% 7%, rgba(244, 237, 218, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 71% 16%, rgba(244, 237, 218, 0.4), transparent),
    radial-gradient(1px 1px at 86% 10%, rgba(244, 237, 218, 0.5), transparent),
    radial-gradient(1.3px 1.3px at 93% 26%, rgba(244, 237, 218, 0.3), transparent),
    radial-gradient(120% 70% at 50% 108%, rgba(5, 13, 11, 0.85), transparent 60%);
}

/* distant theater */
.theater {
  position: absolute; right: clamp(-140px, -4vw, 0px); bottom: 0;
  height: min(78%, 560px); width: auto;
  opacity: 0.85; pointer-events: none; will-change: transform;
}
.blade-txt {
  font-family: var(--caps); font-size: 26px; font-weight: 600;
  fill: var(--glow); text-anchor: middle; opacity: 0.9;
}
.marquee-txt {
  font-family: var(--caps); font-size: 13.5px; letter-spacing: 3.5px;
  fill: var(--glow); text-anchor: middle; opacity: 0.95;
}
.bulb { fill: #f2d9a2; }
.bulb:nth-of-type(odd)  { animation: bulb 2.6s ease-in-out infinite; }
.bulb:nth-of-type(even) { animation: bulb 2.6s ease-in-out 1.3s infinite; }
.bulb:nth-of-type(3n)   { animation-duration: 3.4s; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

/* hanging shingle */
.shingle-wrap { position: relative; display: flex; justify-content: center; }
.lamp-glow {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%);
  width: min(74vw, 620px); aspect-ratio: 1.9 / 1; pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(233, 185, 106, 0.34), rgba(233, 185, 106, 0.10) 48%, transparent 72%);
  filter: blur(10px);
  animation: gasFlicker 6s ease-in-out infinite;
}
@keyframes gasFlicker {
  0%, 100% { opacity: 0.85; } 38% { opacity: 1; }
  52% { opacity: 0.74; } 64% { opacity: 0.96; } 81% { opacity: 0.86; }
}
.shingle { width: min(560px, 92vw); height: auto; position: relative; z-index: 1; }
.shingle-sway { transform-origin: 280px 14px; animation: sway 7.5s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-0.7deg); }
  50%      { transform: rotate(0.7deg); }
}
.shingle-name {
  font-family: var(--caps); font-weight: 600; font-size: 53px;
  letter-spacing: 8px; text-anchor: middle; fill: url(#foil);
}
.shingle-sub {
  font-family: var(--caps); font-weight: 500; font-size: 15.5px;
  letter-spacing: 7px; text-anchor: middle; fill: var(--gold-lt); opacity: 0.85;
}

.hero-tag {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.9rem); color: var(--gold-lt);
  margin: 1.4rem 0 0.9rem;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.9vw, 1.18rem); font-weight: 300;
  color: #d6ccb2; max-width: 47ch; margin: 0 auto;
}

/* wrought-iron balcony rail */
.iron-rail {
  position: relative; z-index: 3;
  height: 46px; margin-top: clamp(2.6rem, 6vw, 4.5rem);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='46' viewBox='0 0 72 46'%3E%3Cg fill='none' stroke='%23c9a35c' stroke-width='1.5'%3E%3Cpath d='M0 3h72M0 43h72' stroke-width='2.2'/%3E%3Cpath d='M12 3v40M60 3v40'/%3E%3Cpath d='M36 8c-9 0-14 6-14 12s5 12 14 12 14-6 14-12-5-12-14-12zm0 4c6.5 0 10 4 10 8s-3.5 8-10 8-10-4-10-8 3.5-8 10-8z'/%3E%3Ccircle cx='36' cy='20' r='2.4' fill='%23c9a35c'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
  opacity: 0.6;
}
.iron-rail::before {
  content: ""; position: absolute; inset: -34px 0 100%;
  background: linear-gradient(to top, rgba(233, 185, 106, 0.08), transparent);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 4rem); }
.section-paper { background: var(--paper); }
.section-night {
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(233, 185, 106, 0.07), transparent 55%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: var(--paper);
}
.section-night h2 { color: var(--paper); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

/* prose */
.prose { font-size: 1.14rem; color: var(--ink-soft); max-width: 62ch; margin: 2.2rem auto 0; }
.prose p { margin: 0 0 1.25rem; }
.prose-columns { text-align: left; }
.dropcap > p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 600;
  font-size: 3.9rem; line-height: 0.72;
  float: left; margin: 0.4rem 0.6rem 0 0; color: var(--gold-deep);
}

/* ---------- Catalogue: books on a brass shelf ---------- */
.shelf-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3.4vw, 3rem);
  margin-top: 3rem;
}
.shelf-book { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cover {
  display: inline-block; position: relative; width: 220px;
  padding-bottom: 12px; border-bottom: 2px solid var(--hairline);
}
.cover-inner { display: block; will-change: transform; }
.cover img {
  width: 220px; aspect-ratio: 2 / 3; object-fit: cover; display: block;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 244, 214, 0.12),
    0 24px 44px rgba(0, 0, 0, 0.5);
  transition: transform .3s ease, box-shadow .3s ease;
}
/* reflection on the "shelf" */
.cover::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 44%;
  background-image: inherit;
  background: linear-gradient(to bottom, rgba(233, 185, 106, 0.13), transparent 70%);
  transform: scaleY(-1); opacity: 0.5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 30%, black);
  mask-image: linear-gradient(to top, transparent 30%, black);
}
.shelf-book:hover .cover img { transform: translateY(-10px) scale(1.01); box-shadow: 0 1px 0 rgba(255,244,214,0.15), 0 34px 56px rgba(0,0,0,0.6); }
.shelf-book h3 { margin-top: 1.5rem; color: var(--paper); }
.book-author {
  font-family: var(--caps); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.24em; font-size: 0.66rem; color: var(--gold);
  margin: 0.5rem 0 0.85rem;
}
.book-line { color: #c4b998; font-weight: 300; font-size: 0.99rem; margin: 0 auto 0.9rem; max-width: 30ch; min-height: 4.7em; }
.book-links { font-size: 0.9rem; }
.book-links a { color: var(--gold-lt); }
.book-links a:hover { color: #fff4d6; }
.dot { color: var(--gold-deep); margin: 0 0.45rem; }

/* ---------- Authors: cameo frames ---------- */
.cameo-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center; gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3rem;
}
.cameo { text-align: center; }
.cameo-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #16342d, var(--night) 78%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px var(--hairline-paper), 0 12px 26px rgba(0, 0, 0, 0.22),
              inset 0 0 0 4px rgba(201, 163, 92, 0.16);
}
.cameo-mono {
  font-family: var(--display); font-weight: 500; font-size: 2.5rem;
  letter-spacing: 0.03em; color: var(--gold-lt);
}
.cameo h3 { margin-top: 1.3rem; }
.cameo-line { color: var(--ink-soft); margin: 0.5rem auto 0.9rem; max-width: 30ch; font-size: 1rem; }
.cameo-link {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.68rem; color: var(--gold-deep);
}
.cameo-link:hover { color: var(--oxblood); }

/* ---------- The Invitation ---------- */
.section-invite { padding-bottom: clamp(5rem, 10vw, 8rem); }
.invite-card {
  position: relative; text-align: center;
  background: linear-gradient(180deg, #f6f0df, var(--paper-2));
  color: var(--ink);
  border: 1px solid rgba(201, 163, 92, 0.65);
  outline: 1px solid rgba(201, 163, 92, 0.35);
  outline-offset: 6px;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.6rem, 5vw, 4.5rem) clamp(3rem, 6vw, 4.2rem);
  margin-top: 1.2rem;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}
.invite-corner {
  position: absolute; width: 26px; height: 26px; pointer-events: none;
  border: 1.4px solid var(--gold-deep);
}
.invite-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.invite-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.invite-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.invite-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.invite-kicker {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.32em; font-size: 0.7rem; color: var(--oxblood);
  margin: 0 0 1.1rem;
}
.invite-card h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--ink); }
.invite-body { font-size: 1.1rem; color: var(--ink-soft); max-width: 54ch; margin: 1.4rem auto 0; }
.invite-how { font-size: 1rem; color: var(--ink-soft); max-width: 54ch; margin: 0.9rem auto 1.8rem; }
.invite-how strong { font-family: var(--caps); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.wax-seal { width: 72px; height: 72px; margin: 2.2rem auto 0; display: block; transform: rotate(-6deg); }
.seal-txt {
  font-family: var(--caps); font-weight: 600; font-size: 26px;
  letter-spacing: 2px; fill: #e8cfa8; text-anchor: middle; opacity: 0.9;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #081511; color: #b3a888;
  text-align: center;
}
.iron-rail-top { margin: 0; opacity: 0.4; transform: scaleY(-1); height: 40px; }
.footer-inner { padding: 2.6rem clamp(1.2rem, 5vw, 4rem) 3rem; }
.footer-glyph { width: 26px; height: 26px; margin: 0 auto 0.8rem; color: var(--gold); }
.footer-brand {
  font-family: var(--caps); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--gold-lt); font-size: 1rem; margin: 0 0 0.35rem;
}
.footer-tag { font-family: var(--display); font-style: italic; color: var(--gold); margin: 0 0 1.4rem; }
.footer-links { font-size: 0.94rem; margin: 0.4rem 0; }
.footer-links a { color: var(--gold); }
.footer-links a:hover { color: var(--gold-lt); }
.footer-copy { font-size: 0.78rem; color: #6f6752; margin-top: 1.4rem; letter-spacing: 0.04em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .theater { opacity: 0.4; right: -180px; }
}
@media (max-width: 820px) {
  .shelf-row { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; gap: 3.4rem; }
  .cameo-row { grid-template-columns: 1fr; }
  .prose-columns { text-align: center; }
  .dropcap > p:first-of-type::first-letter { float: none; margin: 0; font-size: inherit; color: inherit; font-family: inherit; }
}
@media (max-width: 560px) {
  .site-header { padding: 0.8rem 1.1rem; }
  .brand-name { font-size: 0.85rem; letter-spacing: 0.2em; }
  .section { padding: 3.2rem 1.2rem; }
  .invite-card { outline-offset: 4px; }
  .theater { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .shingle-sway, .lamp-glow, .bulb { animation: none; }
}
