/* georgirosk.com — design tokens */
:root {
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #1d2430;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e7e1d7;
  --navy: #1f2f4d;
  --navy-deep: #16233a;
  --gold: #c9a24a;
  --gold-soft: #f1e6c8;
  --green: #1f4a44;
  --sand: #d8c8b0;
  --burgundy: #5e2340;
  --purple: #4a3d8c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(31, 47, 77, 0.14);
  --shadow-sm: 0 4px 14px rgba(31, 47, 77, 0.10);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.005em; color: var(--navy-deep); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 700; color: var(--gold); margin: 0 0 0.6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.hook { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--navy); border-left: 3px solid var(--gold); padding-left: 1rem; margin: 1.4em 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 0.78em 1.35em; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 0.55em 1em; font-size: 0.9rem; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(150%) blur(6px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); }
.brand-crown { color: var(--gold); display: inline-flex; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: clamp(10px, 2.5vw, 26px); flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy-deep); border-bottom-color: var(--gold); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px); background: linear-gradient(180deg, #f4efe6 0%, var(--cream) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-text h1 { margin-bottom: 0.4em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.hero-cover { justify-self: center; max-width: 380px; width: 100%; transform: rotate(-1.5deg); }
.hero-cover img { border-radius: 6px; box-shadow: var(--shadow); }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }
.section-head--row h2 a { text-decoration: none; color: inherit; }
.section-intro { color: var(--ink-soft); max-width: 68ch; }
.page-head { padding: clamp(32px, 5vw, 60px) 0 clamp(8px, 2vw, 20px); }
.page-head .lead { margin-bottom: 0; }

/* Feature */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); }
.feature-cover img { border-radius: 6px; box-shadow: var(--shadow); }
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.2em; }
.feature-body h3 a { text-decoration: none; color: inherit; }
.feature-sub { color: var(--ink-soft); }
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Series cards */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.series-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--cream); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.series-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.series-card img { border-radius: 4px; box-shadow: var(--shadow-sm); }
.series-card h3 { margin-bottom: 0.3em; }
.series-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.6em; }
.series-card--navy { border-top: 4px solid var(--navy); }
.series-card--green { border-top: 4px solid var(--green); }
.series-card--sand { border-top: 4px solid var(--sand); }

/* Book grid + cards */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.book-grid--4 { grid-template-columns: repeat(4, 1fr); }
.book-card { display: flex; flex-direction: column; gap: 14px; }
.book-card[hidden] { display: none; }
.book-card-cover { display: block; position: relative; aspect-ratio: 4 / 5; background: transparent; }
.book-card-cover img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 5px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.book-card-cover:hover img { transform: translate(-50%, -3px); box-shadow: var(--shadow); }
.book-card-kicker { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--gold); margin: 0 0 0.3em; }
.book-card-title { font-size: 1.12rem; margin: 0 0 0.35em; }
.book-card-title a { text-decoration: none; color: var(--navy-deep); }
.book-card-title a:hover { text-decoration: underline; }
.book-card-summary { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.5em; }
.book-card-meta { font-size: 0.82rem; color: var(--muted); margin: 0; }
.book-card--compact .book-card-title { font-size: 1.02rem; }

/* Catalogue filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 36px; }
.filters-label { font-size: 0.85rem; color: var(--muted); margin-right: 4px; }
.filters-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.chip { font: inherit; font-size: 0.88rem; font-weight: 600; padding: 0.42em 0.95em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft); cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.catalogue-group { margin-bottom: 56px; }
.catalogue-group[hidden] { display: none; }
.filters-empty { color: var(--muted); }

/* Book page */
.breadcrumbs { font-size: 0.88rem; color: var(--muted); padding-top: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.book-layout { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(28px, 5vw, 64px); padding-top: 24px; padding-bottom: 56px; align-items: start; }
.book-cover { position: sticky; top: 90px; }
.book-cover img { border-radius: 6px; box-shadow: var(--shadow); }
.book-main h1 { margin-bottom: 0.25em; }
.book-subtitle { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-soft); line-height: 1.35; }
.book-byline { color: var(--muted); }
.buy-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.2em 0 0.6em; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { position: relative; padding-left: 1.7em; margin-bottom: 0.5em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.9em; height: 0.45em; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.book-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; margin: 1.5em 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.book-details dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.book-details dd { margin: 0; font-weight: 600; }

/* Series page */
.page-head--series { background: linear-gradient(180deg, #f4efe6 0%, var(--cream) 100%); padding-bottom: clamp(32px, 5vw, 60px); }
.series-head { display: grid; grid-template-columns: 1fr 300px; gap: clamp(24px, 5vw, 64px); align-items: center; }
.series-head-cover { border-radius: 6px; box-shadow: var(--shadow); justify-self: center; }
.series-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.series-item { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.series-item-cover img { border-radius: 5px; box-shadow: var(--shadow-sm); }
.series-item-body h3 { font-size: 1.4rem; margin-bottom: 0.2em; }
.series-item-body h3 a { text-decoration: none; color: inherit; }
.series-item-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* About */
.about-teaser { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.about-photo { border-radius: 50%; width: 220px; height: 220px; object-fit: cover; box-shadow: var(--shadow); }
.about-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-portrait { border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 90px; }
.prose { max-width: 68ch; }
.prose--narrow { max-width: 62ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-email { font-family: var(--serif); font-size: 1.35rem; word-break: break-all; }

/* Newsletter */
.newsletter { background: var(--navy); color: #eef1f6; padding: clamp(40px, 6vw, 72px) 0; }
.newsletter .eyebrow { color: var(--gold); }
.newsletter h2 { color: #fff; }
.newsletter p { color: #cbd3e1; max-width: 56ch; }
.newsletter-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.newsletter-form { justify-self: end; }
.newsletter .btn-primary { background: var(--gold); color: var(--navy-deep); }
.newsletter .btn-primary:hover { background: #d8b45e; color: var(--navy-deep); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d1de; padding: 44px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: 0.3em; }
.site-footer .muted { color: #9aa6ba; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.site-footer nav a { color: #dfe5ef; text-decoration: none; font-size: 0.95rem; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 18px; }

/* Responsive */
@media (max-width: 960px) {
  .series-grid { grid-template-columns: 1fr; }
  .book-grid, .book-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 220px 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cover { max-width: 260px; order: -1; transform: none; }
  .feature { grid-template-columns: 1fr; }
  .feature-cover { max-width: 240px; }
  .book-grid, .book-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .book-layout { grid-template-columns: 1fr; }
  .book-cover { position: static; max-width: 300px; }
  .book-details { grid-template-columns: 1fr 1fr; }
  .series-head { grid-template-columns: 1fr; }
  .series-head-cover { max-width: 240px; order: -1; }
  .series-item { grid-template-columns: 120px 1fr; gap: 18px; padding: 18px; }
  .about-teaser, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 260px; }
  .newsletter-inner, .footer-inner { grid-template-columns: 1fr; }
  .newsletter-form { justify-self: start; }
}
@media (max-width: 420px) {
  .book-grid, .book-grid--4 { grid-template-columns: 1fr 1fr; }
  .series-item { grid-template-columns: 1fr; }
  .series-item-cover { max-width: 160px; }
  .site-nav a { font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .book-card-cover img, .series-card { transition: none; }
}
