:root {
  --bg: #f7f3eb;
  --surface: #fffdf9;
  --surface-muted: #f1e8df;
  --ink: #2b2b2b;
  --muted: #746c64;
  --primary: #c85a3c;
  --primary-dark: #aa452c;
  --primary-soft: #f3d5c7;
  --accent: #e3b09a;
  --border: #e7ddd1;
  --shadow-sm: 0 1px 2px rgba(43, 43, 43, 0.03);
  --shadow-md: 0 10px 28px rgba(43, 43, 43, 0.06);
  --shadow-lg: 0 22px 60px rgba(43, 43, 43, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 3%, rgba(227,176,154,.18), transparent 28%),
    radial-gradient(circle at 6% 38%, rgba(200,90,60,.07), transparent 25%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .18;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0 2px, rgba(80,60,40,.04) 3px 4px);
  background-size: 9px 9px;
  mix-blend-mode: multiply;
}

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section-pad { padding: 96px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid rgba(231,221,209,.8);
}
.nav-wrap { height: 82px; display: flex; align-items: center; gap: 32px; }
.brand img { width: 148px; height: auto; border-radius: 8px; }
.main-nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.main-nav a { color: #4d4742; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; display: block; background: var(--ink); margin: 5px 0; }

h1, h2, h3, h4 { font-family: Newsreader, Georgia, serif; font-weight: 500; margin: 0; line-height: 1.03; }
h1 { font-size: clamp(54px, 7vw, 96px); letter-spacing: -0.045em; }
h1 span { color: var(--primary); }
h2 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.035em; }
h3 { font-size: 28px; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--primary); margin-bottom: 16px; }
.eyebrow.centered { text-align: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #d75d38, var(--primary)); color: #fff !important; box-shadow: var(--shadow-md); }
.button-primary:hover { box-shadow: var(--shadow-lg); background: linear-gradient(135deg, #e56a42, var(--primary-dark)); }
.button-ghost { border: 1px solid rgba(200,90,60,.55); color: var(--primary); background: rgba(255,253,249,.55); }
.button-lg { min-height: 58px; padding-inline: 26px; font-size: 16px; }
.play-mark { font-size: 14px; }
.play-badge { width: 24px; display: grid; place-items: center; }
.button small { display: block; font-size: 9px; letter-spacing: .08em; opacity: .85; line-height: 1.1; }

.hero { padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; min-height: 680px; }
.hero-copy { position: relative; z-index: 2; }
.hero-intro { max-width: 650px; margin: 26px 0 12px; font: 500 23px/1.45 Newsreader, Georgia, serif; }
.hero-body { max-width: 650px; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.availability { margin-top: 12px; font-size: 12px; color: var(--muted); }

.hero-visual { position: relative; min-height: 600px; }
.watercolor-splash {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -40px;
  bottom: -20px;
  background:
    radial-gradient(circle at 35% 40%, rgba(246,192,164,.42), rgba(200,90,60,.12) 44%, transparent 72%),
    radial-gradient(circle at 65% 70%, rgba(200,90,60,.2), transparent 58%);
  filter: blur(2px);
  border-radius: 46% 54% 57% 43% / 51% 45% 55% 49%;
}
.phone {
  background: #1b1a19;
  border: 8px solid #1d1b1a;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(50,35,28,.22);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-front { position: absolute; width: 290px; height: 600px; right: 170px; top: 18px; transform: rotate(-4deg); z-index: 3; }
.phone-back { position: absolute; width: 250px; height: 520px; right: 0; top: 78px; transform: rotate(8deg); z-index: 2; }
.quill-line { position: absolute; right: -30px; bottom: 80px; width: 300px; height: 140px; border-bottom: 2px solid rgba(200,90,60,.58); border-radius: 50%; transform: rotate(-8deg); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,253,249,.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-bottom: 20px;
}
.feature-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 6px 28px; border-right: 1px solid var(--border); }
.feature-item:last-child { border-right: 0; }
.feature-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(200,90,60,.2); background: #fbf0e9; color: var(--primary); font-size: 24px; }
.feature-item h3 { font-family: Inter, -apple-system, sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.feature-item p { margin: 0; color: var(--muted); font-size: 14px; }

.section-heading { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-heading p { color: var(--muted); font-size: 17px; }
.category-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 auto 34px; }
.category { border: 1px solid var(--border); background: rgba(255,253,249,.68); color: #5d554f; padding: 10px 19px; border-radius: 999px; cursor: pointer; font: 600 13px Inter, sans-serif; }
.category.active, .category:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.story-card { min-width: 0; background: rgba(255,253,249,.92); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.story-art, .story-art-img { width: 100%; height: 190px; object-fit: cover; }
.story-art-humour { background: #f5c400; position: relative; }
.story-art-humour:before { content: "•••"; position: absolute; inset: 30px; display: grid; place-items: center; background: #27583c; color: #f7b11b; font-size: 36px; border-radius: 36% 22% 44% 28%; }
.story-art-tech { background: linear-gradient(135deg, #ead7ca, #f7f0e9); position: relative; }
.story-art-tech:before { content: "</>"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 48px Newsreader, serif; color: var(--primary); }
.story-art-culture { background: linear-gradient(180deg, #b36934 0 12%, #e39b55 12% 32%, #6a4d35 32% 48%, #db8d43 48% 67%, #453c30 67% 100%); filter: saturate(.72); }
.story-card-body { padding: 20px; }
.story-meta { color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.story-card h3 { font-size: 26px; margin: 10px 0 12px; line-height: 1.1; }
.story-card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.story-card footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.story-card footer button { border: 0; background: transparent; color: var(--primary); font-size: 22px; cursor: pointer; }

.split-section { position: relative; }
.split-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 90px; }
.split-reverse .split-grid { grid-template-columns: 1.08fr .92fr; }
.split-copy p { max-width: 580px; color: var(--muted); font-size: 18px; }
.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 30px; font-size: 16px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.text-link { color: var(--primary); font-weight: 700; font-size: 16px; }
.split-media { display: grid; place-items: center; min-height: 620px; position: relative; }
.phone-single { width: 310px; height: 630px; transform: rotate(-2deg); }
.phone-pair { width: 100%; height: 630px; position: relative; }
.mini-phone { position: absolute; width: 260px; height: 570px; }
.mini-left { left: 5%; top: 45px; transform: rotate(-6deg); }
.mini-right { right: 5%; top: 0; transform: rotate(5deg); }

.community-card { background: #fffaf5; border: 1px solid var(--border); border-radius: 32px; padding: 46px; display: grid; grid-template-columns: 1.7fr repeat(3,.7fr); gap: 24px; align-items: center; box-shadow: var(--shadow-md); }
.community-copy p { color: var(--muted); max-width: 520px; font-size: 17px; }
.community-stat { border-left: 1px solid var(--border); padding-left: 24px; min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
.community-stat strong { font: 500 30px Newsreader, serif; color: var(--primary); }
.community-stat span { color: var(--muted); font-size: 13px; }

.cta-card { position: relative; overflow: hidden; background: #fffaf5; border: 1px solid var(--border); border-radius: 32px; box-shadow: var(--shadow-md); min-height: 310px; display: flex; align-items: center; }
.cta-art { position: absolute; inset: 0; opacity: .28; background: url('assets/watercolor-cover.png') center/cover no-repeat; }
.cta-content { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 110px 1fr auto; gap: 30px; align-items: center; padding: 50px; background: linear-gradient(90deg, rgba(255,253,249,.96), rgba(255,253,249,.85)); }
.cta-icon { width: 96px; border-radius: 24px; box-shadow: var(--shadow-md); }
.cta-content p { color: var(--muted); font-size: 17px; }

.site-footer { border-top: 1px solid var(--border); padding: 56px 0 24px; background: rgba(255,253,249,.62); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px; }
.footer-brand img { width: 140px; }
.footer-brand p { color: var(--muted); max-width: 420px; font-size: 14px; margin-top: 10px; }
.footer-grid h4 { font: 700 14px Inter, sans-serif; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); margin: 8px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 620px; max-width: 650px; width: 100%; margin-inline: auto; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .split-reverse .split-grid { grid-template-columns: 1fr; gap: 45px; }
  .split-reverse .split-copy { order: 1; }
  .split-reverse .split-media { order: 2; }
  .community-card { grid-template-columns: 1fr 1fr 1fr; }
  .community-copy { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section-pad { padding: 72px 0; }
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav.open { position: absolute; display: grid; gap: 0; top: 82px; left: 15px; right: 15px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); z-index: 60; }
  .main-nav.open a { padding: 13px 12px; }
  h1 { font-size: clamp(48px, 15vw, 76px); }
  .hero { padding-top: 44px; }
  .hero-grid { gap: 32px; min-height: auto; }
  .hero-intro { font-size: 20px; }
  .hero-visual { min-height: 520px; }
  .phone-front { width: 250px; height: 520px; right: 48%; transform: translateX(45%) rotate(-4deg); }
  .phone-back { width: 220px; height: 460px; right: 2%; top: 58px; }
  .feature-strip { grid-template-columns: 1fr; padding: 20px; }
  .feature-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 18px 8px; }
  .feature-item:last-child { border-bottom: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .community-card { grid-template-columns: 1fr; }
  .community-copy { grid-column: auto; }
  .community-stat { border-left: 0; border-top: 1px solid var(--border); padding: 20px 0 0; }
  .cta-content { grid-template-columns: 84px 1fr; padding: 34px 24px; }
  .cta-content .button { grid-column: 1 / -1; }
  .cta-icon { width: 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .brand img { width: 130px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 440px; }
  .phone-front { width: 205px; height: 425px; right: 47%; }
  .phone-back { width: 175px; height: 370px; right: 0; top: 60px; }
  .split-media { min-height: 520px; }
  .phone-single { width: 255px; height: 520px; }
  .phone-pair { height: 520px; }
  .mini-phone { width: 210px; height: 455px; }
  .mini-left { left: -3%; }
  .mini-right { right: -3%; }
}
