/* TamsinSinclair.com — Pen A site styles
   Palette + typography per HQ_VisualIdentitySummary_V15, Pen A section (verbatim hexes).
   Base near-black #0F0E17 / charcoal #1A1A2E · body text cream #EDE6D8 ·
   tarnished gold #C9A24B + cold silver #C7CCD1 carry links/headings/display ·
   oxblood #6E1423 + plum #4A2C4D are fills/rules ONLY — never body text. */

:root {
  --near-black: #0F0E17;
  --charcoal: #1A1A2E;
  --stone-gray: #6B6F76;
  --cream: #EDE6D8;
  --gold: #C9A24B;
  --silver: #C7CCD1;
  --oxblood: #6E1423;
  --plum: #4A2C4D;
}

@font-face {
  font-family: 'Cinzel';
  src: url('fonts/cinzel-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('fonts/cinzel-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

body {
  background-color: var(--near-black);
  /* subtle weathered-stone tile per VI build-direct spec — low-contrast, AAA-safe under cream text */
  background-image:
    radial-gradient(ellipse 1200px 800px at 20% -10%, rgba(107,111,118,0.06), transparent 60%),
    radial-gradient(ellipse 900px 700px at 90% 110%, rgba(58,90,120,0.05), transparent 55%);
  color: var(--cream);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
}

h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 700; color: var(--gold); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); letter-spacing: 0.06em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); letter-spacing: 0.05em; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--silver); letter-spacing: 0.04em; }

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus { color: var(--silver); text-decoration: underline; }

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header.site {
  background: var(--charcoal);
  border-bottom: 2px solid var(--oxblood);
  padding: 1rem 0;
}
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.lockup { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.18em; color: var(--cream); text-transform: uppercase; }
.lockup a { color: var(--cream); }
.lockup a:hover { color: var(--gold); text-decoration: none; }
nav.site ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
nav.site a { font-family: 'Montserrat', Arial, sans-serif; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--gold); text-decoration: none; }

/* Hero */
.hero { position: relative; }
.hero img { width: 100%; object-fit: cover; max-height: 520px; min-height: 340px; }
.hero-overlay {
  /* Tagline sits over the hero's negative space: the dark, calm zone center-left, below the moon and clear of the cathedral. */
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left;
  background: radial-gradient(ellipse at center, rgba(15,14,23,0.30) 0%, rgba(15,14,23,0.55) 100%);
  padding: 1.5rem 1.5rem 1.5rem clamp(1.5rem, 7vw, 7rem);
}
.hero-overlay h1 { color: var(--cream); text-shadow: 0 2px 18px rgba(15,14,23,0.9); }
.hero-overlay .tagline { color: var(--cream); font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 30rem; margin-top: 1rem; text-shadow: 0 1px 12px rgba(15,14,23,0.95); }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--charcoal); border-top: 1px solid var(--plum); border-bottom: 1px solid var(--plum); }
.rule { border: none; border-top: 2px solid var(--oxblood); width: 84px; margin: 1.1rem auto; }
.center { text-align: center; }

.band img { width: 100%; }

/* Book cards */
.book-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
.book-card {
  background: var(--charcoal);
  border: 1px solid var(--plum);
  border-top: 3px solid var(--oxblood);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.book-number { font-family: 'Montserrat', Arial, sans-serif; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver); }
.book-card h3 { color: var(--gold); }
.cover-slot { border: 1px dashed var(--stone-gray); color: var(--silver); font-size: 0.85rem; text-align: center; padding: 2.4rem 1rem; }

/* Buttons */
.btn {
  display: inline-block; font-family: 'Montserrat', Arial, sans-serif; font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 1.9rem; border: 1px solid var(--gold); color: var(--gold);
  background: transparent; cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--gold); color: var(--near-black); text-decoration: none; }
.btn-solid { background: var(--oxblood); border-color: var(--oxblood); color: var(--cream); }
.btn-solid:hover, .btn-solid:focus { background: var(--gold); border-color: var(--gold); color: var(--near-black); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.btn[aria-disabled="true"]:hover { background: transparent; color: var(--gold); }
.btn-solid[aria-disabled="true"]:hover { background: var(--oxblood); color: var(--cream); }
.coming-soon { display: block; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--silver); margin-top: 0.45rem; text-transform: uppercase; }

/* CTA block */
.cta-block { text-align: center; max-width: 44rem; margin: 0 auto; }
.cta-block p { margin-bottom: 1.3rem; }

/* About teaser / portrait */
.about-flex { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.about-flex img { max-width: 300px; border: 1px solid var(--stone-gray); }
.about-flex .bio { max-width: 38rem; }
.about-flex .bio p { margin-bottom: 1rem; }

/* World / figure images */
figure.world { margin: 2rem auto; max-width: 760px; }
figure.world figcaption { font-size: 0.85rem; color: var(--silver); text-align: center; padding-top: 0.6rem; letter-spacing: 0.06em; }

/* Placeholder scaffold blocks (free-book & privacy placeholder pages only) */
.insert-block {
  border: 1px dashed var(--stone-gray);
  background: rgba(26,26,46,0.6);
  color: var(--silver);
  padding: 1.2rem 1.4rem;
  margin: 1.1rem 0;
  font-size: 0.95rem;
}

/* Footer */
footer.site {
  background: var(--charcoal);
  border-top: 2px solid var(--oxblood);
  padding: 2.2rem 0 2.6rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--silver);
}
footer.site nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-bottom: 1rem; }
footer.site a { color: var(--silver); }
footer.site a:hover { color: var(--gold); }
.fine-print { margin-top: 0.9rem; line-height: 1.9; }

@media (min-width: 720px) {
  .header-inner { flex-direction: row; justify-content: space-between; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .about-flex { flex-direction: row; align-items: flex-start; }
}

/* covers on book cards and the home / Also By cover rows (added by the site builder; same rules as the other pen sites) */
.book-card .cover { max-width: 210px; width: 100%; height: auto; margin: 0.2rem auto 0; border: 1px solid var(--stone-gray); }
.cover-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin: 1.6rem auto; max-width: 920px; }
.cover-row a { display: block; width: 128px; }
.cover-row img { width: 100%; height: auto; border: 1px solid var(--stone-gray); }

/* space above a card's button and its 'Coming' line (added by the site builder: the text sat too close to the button) */
.book-card div > .btn { display: inline-block; margin-top: 0.9rem; }
.book-card .cover { margin-bottom: 0.6rem; }

/* card foot (added by the site builder): the 'Coming' line and the button sit at the bottom of each card, so the covers in a row line up; a series heading keeps its distance from the button above it */
.book-card { display: flex; flex-direction: column; }
.book-card .buy-note { margin-top: auto; padding-top: 0.9rem; }
.book-card > div:last-child { margin-top: auto; }
.book-card .buy-note + div { margin-top: 0; }
.btn + h2, .cover-row + .btn + h2 { margin-top: 3rem; }
