@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Syzygy Media: pearl theme (light) with a warm dark theme. Colours come from the book covers. */
:root {
  --bg: #FAF7F2;
  --bg-soft: #F1ECE3;
  --surface: #FFFFFF;
  --line: #E3DCCF;
  --text: #1E1B18;
  --text-body: #3A352F;
  --muted: #6F6860;
  --accent: #B3121F;
  --accent-text: #B3121F;
  --accent-soft: #F8E4E5;
  --on-accent: #FFFFFF;
  --bronze: #8A5E1C;
  --footer-bg: #24201C;
  --footer-text: #E9E3D8;
  --footer-muted: #A39B8E;
  --gold: #E8B21A;
  --shadow: 0 10px 30px rgba(30, 27, 24, .09);
  --hero-grad: linear-gradient(135deg, #FAF7F2 0%, #F6F0E6 55%, #EFE7DA 100%);
  --radius: 20px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #1A1714;
  --bg-soft: #211D19;
  --surface: #26211D;
  --line: #3A342E;
  --text: #F3EEE5;
  --text-body: #DAD3C7;
  --muted: #B5ADA0;
  --accent: #B3121F;
  --accent-text: #FF7A7F;
  --accent-soft: #3A1F22;
  --bronze: #D9A441;
  --footer-bg: #12100E;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --hero-grad: linear-gradient(135deg, #1A1714 0%, #1E1A16 55%, #231E19 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.eyebrow.dash { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow.dash::before { content: ""; width: 36px; height: 2px; background: var(--bronze); }
.muted { color: var(--muted); }
.arrow { display: inline-block; vertical-align: -2px; margin-left: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo .wm b { font-size: 20px; letter-spacing: .12em; font-weight: 700; }
.logo .wm span { font-size: 11px; letter-spacing: .42em; color: var(--muted); margin-top: 4px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-weight: 500; font-size: 16px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; border-bottom-color: var(--accent-text); }
.tools { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.lang a, .lang span { font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.lang [aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--sans); padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #961019; }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-sm { padding: 11px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.link-red { color: var(--accent-text); font-weight: 600; }
.link-red:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--hero-grad); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.1; margin: 22px 0 24px; letter-spacing: -.02em; }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-img { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.hero-img img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }

/* Sections */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 10px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.lead { font-size: 19px; color: var(--muted); line-height: 1.6; max-width: 700px; }
.page-head { background: var(--bg-soft); padding: 72px 0 56px; }
.page-head h1 { font-size: clamp(38px, 4.6vw, 60px); margin: 14px 0 16px; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .2s ease; }
.card:hover { transform: translateY(-4px); }
.card .thumb { aspect-ratio: 6 / 4.6; background: var(--bg-soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb.work { aspect-ratio: 3 / 2; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 24px; line-height: 1.25; }
.card p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card .author { font-size: 14px; font-weight: 500; color: var(--text); }
.card .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent-text); }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.card-link { position: absolute; inset: 0; border-radius: var(--radius); }
.card { position: relative; }

.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.pillar .n { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--bronze); }
.pillar h3 { font-size: 26px; margin: 8px 0 12px; }
.pillar p { color: var(--muted); font-size: 16px; line-height: 1.6; }

.soft { background: var(--bg-soft); }
.band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.band h2 { font-size: clamp(26px, 3vw, 34px); }
.band p { color: var(--muted); margin-top: 8px; font-size: 18px; }

/* Book page */
.crumbs { padding-top: 26px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
.book-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-top: 36px; padding-bottom: 80px; }
.book-cover { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.book-cover img { width: 100%; }
.book-info h1 { font-size: clamp(38px, 4.4vw, 58px); letter-spacing: -.02em; margin: 14px 0 12px; }
.book-info .sub { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--bronze); }
.book-info .byline { font-weight: 500; margin: 16px 0 6px; font-size: 18px; }
.book-info .headline { color: var(--muted); font-size: 18px; margin-bottom: 24px; }

.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.buybox legend, .buybox .lbl { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.buybox fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.format { position: relative; }
.format input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.format .opt { display: grid; gap: 2px; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; background: var(--surface); }
.format .opt b { font-size: 16px; }
.format .opt .price { font-size: 20px; font-weight: 700; }
.format .opt small { color: var(--muted); font-size: 13px; }
.format input:checked + .opt { border-color: var(--accent-text); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-text) inset; }
.format input:checked + .opt .price { color: var(--accent-text); }
.format input:focus-visible + .opt { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
select, input[type=text], input[type=email], textarea { width: 100%; font: 500 16px var(--sans); color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; }
textarea { min-height: 150px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 3px solid var(--accent-text); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-body); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.status { font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.status[hidden] { display: none; }
.status.err { background: var(--accent-soft); color: var(--accent-text); }

.details .wrap { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.prose h2 { font-size: 34px; margin-bottom: 20px; }
.prose h3 { font-size: 28px; margin: 36px 0 14px; }
.prose p { font-size: 18px; line-height: 1.75; color: var(--text-body); margin-bottom: 18px; max-width: 70ch; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.dl h2 { font-size: 24px; margin-bottom: 16px; }
.dl dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dl dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; text-align: right; }
.dl dl { margin: 0; }

.work-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-top: 36px; padding-bottom: 80px; }
.work-hero h1 { font-size: clamp(32px, 3.8vw, 48px); margin: 14px 0 12px; }

/* Forms */
.form { display: grid; gap: 18px; }
.two { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.hp { position: absolute; left: -9999px; }

/* Legal */
.legal ol { padding-left: 22px; display: grid; gap: 14px; font-size: 18px; color: var(--text-body); }
.legal .draft { background: var(--accent-soft); color: var(--accent-text); padding: 14px 18px; border-radius: 14px; font-weight: 500; margin-bottom: 28px; }
.confirm { text-align: center; }
.badge { width: 76px; height: 76px; border-radius: 999px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.badge svg { width: 34px; height: 34px; }

/* About: author portrait */
.author-grid { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.author-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.author-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .author-grid { grid-template-columns: 1fr; gap: 36px; } .author-photo { max-width: 420px; } }

/* Legal text */
.legal .prose h2.lh { font-size: 26px; margin: 36px 0 14px; }
.legal .prose .bullets { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 8px; font-size: 18px; line-height: 1.7; color: var(--text-body); list-style: disc; max-width: 70ch; }

/* Order summary (Thank-you page) */
.order { max-width: 640px; margin: 0 auto 24px; text-align: left; }
.order-row { display: flex; gap: 20px; align-items: center; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.order-row img { width: 150px; height: 125px; object-fit: cover; border-radius: 10px; background: var(--bg-soft); }
.order-row h3 { font-size: 24px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 32px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo .wm b { color: #fff; }
.site-footer .logo .wm span { color: var(--footer-muted); }
.site-footer h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .tag-line { margin-top: 14px; color: #C9C2B6; font-size: 15px; }
.site-footer .small { border-top: 1px solid #463F38; margin-top: 44px; padding-top: 24px; font-size: 13px; color: var(--footer-muted); display: grid; gap: 6px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid #463F38; display: inline-flex; align-items: center; justify-content: center; }
.socials svg { width: 18px; height: 18px; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 50px rgba(0,0,0,.28); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; font-size: 14.5px; line-height: 1.5; color: var(--text-body); }
.cookie .acts { display: flex; gap: 10px; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .book-hero .wrap, .work-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .details .wrap, .two { grid-template-columns: 1fr; gap: 40px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 80px; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 10px 0; width: 100%; }
  .tools .btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .foot { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .logo .wm span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
