/* David Alan Dodge — personal site. White / charcoal / orange. Mobile-first. */

:root {
  --bg: #ffffff;
  --bg-warm: #fff8f3;
  --bg-soft: #fff1e6;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --orange-soft: #ffedd5;
  --charcoal: #1c1917;
  --charcoal-2: #292524;
  --white: #fffaf6;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --shadow-hover: 0 18px 50px rgba(28, 25, 23, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --nav-h: 76px;
  --font: "Outfit", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 3.25rem 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: .6rem;
}
h1, h2, h3, h4 { font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .7rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--ink-2); }
.lead { font-size: 1.15rem; max-width: 40rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 999px; padding: .85rem 1.35rem;
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h); gap: 1rem;
}
.logo {
  font-family: var(--script); font-size: 2.05rem; color: var(--ink);
  text-decoration: none; line-height: 1; padding: .2rem 0;
}
.logo span { color: var(--orange); }
.nav-links {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  font-size: .95rem; padding: .45rem .7rem; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink); background: var(--bg-soft);
}
.nav-cta { margin-left: .4rem; padding: .55rem 1rem !important; }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.hero {
  padding: 3.2rem 0 2.5rem;
  background:
    radial-gradient(900px 420px at 90% -10%, #ffedd5 0%, transparent 60%),
    linear-gradient(180deg, #fff8f3 0%, #ffffff 70%);
}
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, #fdba74, transparent 40%),
    linear-gradient(160deg, #fb923c 0%, #ea580c 42%, #1c1917 100%);
  color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden; min-height: 320px;
}
.portrait::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 20px; pointer-events: none;
}
.portrait-initials { font-family: var(--script); font-size: clamp(5rem, 14vw, 7.5rem); line-height: .85; }
.portrait-meta { margin-top: .8rem; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; opacity: .9; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 1.6rem; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.05rem 1.1rem; text-decoration: none; color: inherit;
  box-shadow: 0 6px 20px rgba(28,25,23,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.mini-card strong { display: block; color: var(--ink); }
.mini-card span { color: var(--muted); font-size: .92rem; }

.featured { background: var(--orange); color: #fff; padding: 1.15rem 0; }
.featured .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; justify-content: space-between; }
.featured p { color: #fff; margin: 0; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.wordmarks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.wordmarks span { color: #fff7ed; opacity: .95; font-size: 1.05rem; white-space: nowrap; }
.wm-1 { font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.wm-2 { font-family: "Times New Roman", serif; letter-spacing: .08em; text-transform: uppercase; font-size: .92rem; }
.wm-3 { font-family: Georgia, serif; font-weight: 700; }
.wm-4 { font-family: Impact, "Arial Black", sans-serif; letter-spacing: .04em; }
.wm-5 { font-family: Georgia, serif; font-variant: small-caps; letter-spacing: .12em; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-hover); }
.book-card { display: grid; gap: 1.2rem; align-items: center; }
.book-cover {
  width: min(220px, 100%); border-radius: 8px;
  box-shadow: 8px 12px 30px rgba(28,25,23,.18);
}
.cover-sfa, .cover-reis {
  width: min(220px, 100%); aspect-ratio: 2 / 3; border-radius: 8px;
  box-shadow: 8px 12px 30px rgba(28,25,23,.18);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.2rem 1rem 1.1rem 1.25rem; position: relative; overflow: hidden;
}
.cover-sfa { background: linear-gradient(165deg, #1c1917, #292524); color: #fff7ed; }
.cover-reis { background: linear-gradient(180deg, #fff7ed, #ffedd5); color: #1c1917; }
.cover-sfa::before, .cover-reis::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
}
.cover-sfa::before { background: #f97316; }
.cover-reis::before { background: #ea580c; }
.cover-kicker { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.cover-title { font-weight: 800; line-height: 1.05; font-size: 1.45rem; margin: .7rem 0; }
.cover-sfa .cover-title { color: #fff; }
.cover-sfa .accent { color: #f97316; display: block; }
.cover-reis .accent { color: #f97316; font-family: Georgia, serif; font-style: italic; font-weight: 700; display: block; font-size: 1.7rem; }
.cover-sub { font-size: .82rem; opacity: .8; }
.quote-card {
  background: var(--bg-warm); border: 1px solid var(--orange-soft);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.quote-card p { font-size: 1.08rem; color: var(--ink); }
.quote-card footer { color: var(--muted); font-size: .92rem; margin-top: .6rem; }
.product-card { display: flex; flex-direction: column; min-height: 100%; }
.product-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-deep); font-weight: 700; margin-bottom: 1rem; font-size: 1.2rem;
}
.media-tile {
  min-height: 150px; border-radius: var(--radius); padding: 1.2rem; color: #fff;
  text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .15s ease;
}
.media-tile:hover { transform: translateY(-3px); color: #fff; }
.media-tile small { opacity: .8; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.media-tile strong { font-size: 1.15rem; }
.t1 { background: linear-gradient(160deg, #ea580c, #9a3412); }
.t2 { background: linear-gradient(160deg, #1c1917, #44403c); }
.t3 { background: linear-gradient(160deg, #c2410c, #1c1917); }
.t4 { background: linear-gradient(160deg, #292524, #78716c); }
.t5 { background: linear-gradient(160deg, #f97316, #7c2d12); }
.t6 { background: linear-gradient(160deg, #44403c, #1c1917); }
.t7 { background: linear-gradient(160deg, #9a3412, #292524); }
.t8 { background: linear-gradient(160deg, #57534e, #1c1917); }
.news-card time { color: var(--muted); font-size: .85rem; }
.band { background: var(--charcoal); color: #fff; padding: 4rem 0; }
.band h2, .band p { color: #fff; }
.band p { color: #e7e5e4; }
.band-warm { background: var(--bg-warm); }

form { display: grid; gap: .9rem; }
label { font-weight: 600; font-size: .92rem; }
input, textarea, select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem; font: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px var(--orange-soft);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--muted); }
.map { width: 100%; min-height: 280px; border: 0; border-radius: var(--radius); filter: grayscale(.15); }

.site-footer { background: var(--charcoal-2); color: #e7e5e4; padding: 2.6rem 0 1.6rem; }
.footer-grid { display: grid; gap: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid #44403c; }
.site-footer a { color: #e7e5e4; text-decoration: none; }
.site-footer a:hover { color: #fdba74; }
.socials { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.legal { margin-top: 1rem; font-size: .88rem; color: #a8a29a; }
.shop-slot {
  border: 2px dashed #fdba74; background: #fff8f3; border-radius: var(--radius);
  padding: 2rem 1.4rem; text-align: center;
}
.page-hero { padding: 3rem 0 1.2rem; background: linear-gradient(180deg, #fff8f3, #fff); }
.stat-row { display: grid; gap: 1rem; margin: 1.6rem 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.stat b { display: block; font-size: 1.5rem; color: var(--orange-deep); }
blockquote.big {
  margin: 1.4rem 0; padding: 1.2rem 0 1.2rem 1.2rem;
  border-left: 4px solid var(--orange); font-size: 1.35rem; color: var(--ink);
  font-family: Georgia, serif; font-style: italic;
}

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .book-card { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 859px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .8rem 1rem 1.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: .4rem 0 0; }
}

.product-card .btn-row { margin-top: auto; padding-top: 1rem; }
.site-footer h3 { color: #fff7ed; font-size: 1rem; margin-bottom: .4rem; }
.nav-links .nav-cta,
.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  background: var(--orange); color: #fff;
}
.nav-links .nav-cta:hover { background: var(--orange-deep); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mini-card, .media-tile { transition: none; }
  .btn:hover, .mini-card:hover, .media-tile:hover { transform: none; }
}
