/* Dandreb Lim Zagado — author website
   Layout concept: premium product-page rhythm shared with the book funnel. Light pages,
   each book shown in its own colour world (deep navy, old paper), terracotta for actions. */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #c9633a;
  --accent-hover: #b4532c;
  --accent-ink: #b4532c;
  --gold: #a8843f;
  --navy: #14243f;
  --navy-2: #1e3459;
  --on-navy: #f5f5f7;
  --on-navy-2: #a1a8b8;
  --gold-on-navy: #d4b57a;
  /* Wait, That Was a Thing? palette (fixed in both themes, like a printed cover) */
  --paper: #f3e6d3;
  --paper-2: #ead6b8;
  --ink: #3b2a1e;
  --ink-2: #5d4a3a;
  --burnt: #c2521f;
  --teal: #2a7778;
  --live: #2e7d5b;
  --nav-bg: rgba(251, 251, 253, .8);
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 40px rgba(20, 36, 63, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #0b0b0d; --surface: #161618; --fg: #f5f5f7; --fg-2: #a1a1a6; --line: #38383d;
    --accent: #d9734a; --accent-hover: #e8875a; --accent-ink: #e8875a; --gold: #d4b57a;
    --navy: #0e1a2f; --navy-2: #16294a; --live: #5fc596;
    --nav-bg: rgba(22, 22, 24, .74); --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #0b0b0d; --surface: #161618; --fg: #f5f5f7; --fg-2: #a1a1a6; --line: #38383d;
  --accent: #d9734a; --accent-hover: #e8875a; --accent-ink: #e8875a; --gold: #d4b57a;
  --navy: #0e1a2f; --navy-2: #16294a; --live: #5fc596;
  --nav-bg: rgba(22, 22, 24, .74); --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(72px, 10vw, 120px); }
.band-alt { background: var(--bg-alt); }
.band-navy { background: var(--navy); color: var(--on-navy); }

/* type */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent-ink); }
.band-navy .eyebrow { color: var(--gold-on-navy); }
.display { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.03; font-weight: 700; letter-spacing: -0.035em; margin-top: 10px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; }
.intro { font-size: clamp(18px, 2vw, 22px); line-height: 1.42; font-weight: 500; color: var(--fg-2); max-width: 42ch; margin-top: 16px; }
.band-navy .intro { color: var(--on-navy-2); }
.head { text-align: center; display: grid; justify-items: center; margin-bottom: clamp(40px, 6vw, 64px); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 24px; border: 0; border-radius: 980px; cursor: pointer;
  background: var(--accent); color: #fff; font: 500 17px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; transition: background .2s ease, transform .15s ease; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 18px; }
.btn-sm { min-height: 32px; padding: 6px 15px; font-size: 13px; }
.btn-light { background: var(--gold-on-navy); color: #14243f; }
.btn-light:hover { background: #e2c58d; }
.btn-ghost-light { background: transparent; color: var(--gold-on-navy); box-shadow: inset 0 0 0 1.5px var(--gold-on-navy); }
.btn-ghost-light:hover { background: rgba(212, 181, 122, .12); }
.link { color: var(--accent-ink); text-decoration: none; font-size: 18px; }
.link:hover { text-decoration: underline; }
.link-light { color: var(--gold-on-navy); text-decoration: none; }
.link-light:hover { text-decoration: underline; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 30px; }

/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--nav-bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.mono-sm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--navy); box-shadow: 0 0 0 1.5px var(--gold-on-navy); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav-links a:not(.btn) { color: var(--fg-2); text-decoration: none; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--fg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 980px; padding: 6px 14px; font: 500 14px var(--font); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(22px, env(safe-area-inset-right, 0px)) 18px max(22px, env(safe-area-inset-left, 0px)); font-size: 17px; }
  .nav-links:not(.open) { display: none; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; min-height: 44px; font-size: 16px; }
}

/* hero */
.hero { padding-block: clamp(56px, 8vw, 100px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .intro { margin-top: 22px; max-width: 44ch; }
.shelf { position: relative; height: clamp(360px, 40vw, 470px); }
.shelf::before { content: ""; position: absolute; inset: 18% 4% 2%; border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--gold) 16%, transparent) 45%, transparent 70%); filter: blur(12px); }
.cover { position: absolute; width: min(240px, 46%); display: block; transition: transform .35s ease; }
.cover img { border-radius: 6px 14px 14px 6px; box-shadow: 0 34px 70px rgba(20, 36, 63, .35), 0 10px 22px rgba(20, 36, 63, .18); }
.c1 { left: 8%; top: 2%; transform: rotate(-6deg); z-index: 2; }
.c2 { right: 6%; top: 14%; transform: rotate(5deg); }
.cover:hover, .cover:focus-visible { transform: rotate(0) translateY(-8px); z-index: 3; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .shelf { height: clamp(300px, 80vw, 420px); max-width: 520px; width: 100%; margin: 0 auto; } }

/* book features */
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); }
.f-cover img { width: min(340px, 100%); margin: 0 auto; border-radius: 8px 16px 16px 8px; box-shadow: 0 34px 70px rgba(0, 0, 0, .35); }
.f-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.f-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.pill { display: inline-flex; padding: 5px 12px; border-radius: 980px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.f-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -0.032em; }
.f-sub { font-size: clamp(17px, 1.8vw, 20px); font-weight: 500; }
.f-text { font-size: 17px; max-width: 58ch; }
.facts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.facts li { border-top: 1px solid; padding-top: 10px; }
.facts b { display: block; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.facts span { font-size: 14px; }
.f-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.stores a { text-decoration: none; }
.stores a::after { content: " ›"; }
.stores a:hover { text-decoration: underline; }

.f-hhba { background: var(--navy); color: var(--on-navy); }
.f-hhba .f-k { color: var(--gold-on-navy); }
.f-hhba .f-sub, .f-hhba .f-text, .f-hhba .facts span { color: var(--on-navy-2); }
.f-hhba .facts li { border-color: color-mix(in srgb, var(--on-navy-2) 35%, transparent); }
.f-hhba .facts b { color: var(--gold-on-navy); }
.f-hhba .stores a { color: var(--gold-on-navy); }
.pill-live { background: color-mix(in srgb, #5fc596 22%, transparent); color: #7fd8ad; }

.f-wttw { background: var(--paper); color: var(--ink); margin-top: 20px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.f-wttw .f-cover { order: 2; }
.f-wttw .f-k { color: var(--burnt); }
.f-wttw .f-sub { color: var(--teal); }
.f-wttw .f-text, .f-wttw .facts span { color: var(--ink-2); }
.f-wttw .facts li { border-color: #cfb48f; }
.f-wttw .facts b { color: var(--burnt); }
.f-wttw .btn { background: var(--burnt); }
.f-wttw .btn:hover { background: #a8461a; }
.pill-soon { background: #e4c88e; color: #6b4a1b; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chapters span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 980px; background: var(--paper-2); color: var(--ink); }
@media (max-width: 860px) {
  .feature, .f-wttw { grid-template-columns: 1fr; }
  .f-wttw .f-cover { order: 0; }
  .f-cover img { width: min(260px, 70%); }
}
@media (max-width: 420px) { .facts { grid-template-columns: 1fr 1fr 1fr; } .facts b { font-size: 22px; } }

/* pull quotes */
.pull { max-width: 820px; margin: clamp(40px, 6vw, 64px) auto; text-align: center; }
.pull p { font-size: clamp(22px, 3vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; }
.pull cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--fg-2); }
.pull-hhba p { color: var(--fg); }
.pull-wttw p { color: var(--fg); }
.pull-wttw { margin-bottom: 0; }

/* what's next */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 12px; }
.t-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--surface); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow); }
.t-when { font-size: 14px; font-weight: 700; color: var(--fg-2); padding-top: 2px; font-variant-numeric: tabular-nums; }
.t-item b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.t-item div span { font-size: 15px; color: var(--fg-2); }
.t-item.done .t-when { color: var(--live); }
.t-item.now .t-when { color: var(--accent-ink); }
.projects { max-width: 760px; margin: 12px auto 0; display: grid; gap: 12px; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 26px; text-align: center; color: var(--fg-2); }
.empty b { display: block; color: var(--fg); font-size: 18px; margin-bottom: 4px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-id { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 40px 28px; display: grid; justify-items: center; text-align: center; gap: 8px; }
.mono { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 36px; color: #fff; margin-bottom: 10px;
  background: radial-gradient(circle at 50% 75%, #c9633a 0 38%, #8e4f44 39% 55%, #24304f 56%); box-shadow: 0 0 0 3px #d4b57a; }
.about-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.about-role { font-size: 14px; color: var(--on-navy-2); }
.about-copy { display: grid; gap: 16px; }
.about-copy .headline { margin-bottom: 4px; }
.about-copy p:not(.eyebrow) { color: var(--fg-2); font-size: 18px; line-height: 1.55; max-width: 62ch; }
.about-copy em { color: var(--fg); font-style: italic; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact-card { background: var(--navy-2); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); display: grid; gap: 12px; min-width: 0; }
.cc-label { font-size: 13px; font-weight: 600; color: var(--on-navy-2); }
.cc-email { font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.02em; word-break: break-word; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 6px; }
.cc-note { font-size: 14px; color: var(--on-navy-2); margin-top: 6px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--bg-alt); padding-block: 26px 36px; font-size: 13px; color: var(--fg-2); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

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