:root {
  --paper: #f6f1e7;
  --paper-2: #fdfaf3;
  --ink: #1c1814;
  --soft: #5c544a;
  --rule: #d8cfbe;
  --marigold: #c75b12;
  --leaf: #2f5d3a;
  --shadow: 28px 28px 60px rgba(28, 24, 20, 0.10);
  --serif: "Fraunces", Georgia, "Noto Serif", serif;
  --sans: "Noto Sans", -apple-system, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--marigold); }

/* ============ ambient crossword grid backdrop ============ */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(28,24,20,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,24,20,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 0%, transparent 75%);
}

/* ============ shared bits ============ */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--marigold);
  font-weight: 700;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.3px;
  color: var(--ink);
  display: block;
}
.wordmark.small { font-size: 20px; }

/* ============ top bar ============ */
.topbar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logomark { text-decoration: none; line-height: 1.05; }
.logomark .kicker { font-size: 10px; }
.topnav { display: flex; gap: 26px; }
.topnav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
}
.topnav a:hover { color: var(--marigold); }

/* ============ hero ============ */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--leaf);
  background: rgba(47, 93, 58, 0.10);
  border: 1px solid rgba(47, 93, 58, 0.20);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--marigold); font-style: italic; }
.lede {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--soft);
  max-width: 30em;
  margin: 0 0 30px;
}
.microcopy {
  font-family: var(--sans);
  font-size: 13px;
  color: #8a8071;
  margin: 16px 0 0;
}

/* hero art */
.hero-art { display: flex; justify-content: center; }
.art-frame {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.art-frame:hover { transform: rotate(0deg) scale(1.01); }
.art-frame img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 16px;
}

/* ============ store buttons ============ */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28,24,20,0.22); }
.store-glyph {
  width: 26px; height: 26px; flex: none;
  background: var(--paper);
  -webkit-mask: center/contain no-repeat;
  mask: center/contain no-repeat;
  /* Apple */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.1-2.8.8-3.5.8s-1.8-.8-3-.8c-1.5 0-2.9.9-3.7 2.3-1.6 2.7-.4 6.8 1.1 9 .7 1.1 1.6 2.3 2.7 2.3 1.1 0 1.5-.7 2.8-.7s1.6.7 2.8.7 1.9-1.1 2.6-2.1c.8-1.2 1.2-2.4 1.2-2.4s-2.2-.9-2.3-3.5zM14.3 5.9c.6-.7 1-1.7.9-2.7-.9 0-2 .6-2.6 1.3-.6.6-1.1 1.6-.9 2.6 1 .1 2-.5 2.6-1.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.1-2.8.8-3.5.8s-1.8-.8-3-.8c-1.5 0-2.9.9-3.7 2.3-1.6 2.7-.4 6.8 1.1 9 .7 1.1 1.6 2.3 2.7 2.3 1.1 0 1.5-.7 2.8-.7s1.6.7 2.8.7 1.9-1.1 2.6-2.1c.8-1.2 1.2-2.4 1.2-2.4s-2.2-.9-2.3-3.5zM14.3 5.9c.6-.7 1-1.7.9-2.7-.9 0-2 .6-2.6 1.3-.6.6-1.1 1.6-.9 2.6 1 .1 2-.5 2.6-1.2z'/%3E%3C/svg%3E");
}
.store-glyph.play {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 2.3c-.3.3-.5.7-.5 1.3v16.8c0 .6.2 1 .5 1.3l.1.1L13 12.1v-.2L3.7 2.2l-.1.1zM16.3 15.4l-3.1-3.1v-.3l3.1-3.1.1.1 3.7 2.1c1.1.6 1.1 1.6 0 2.2l-3.7 2.1-.1-.1zM11.7 13.2L3.7 21.8c.4.4 1 .4 1.7 0l9.6-5.5-3.3-3.1zM11.7 10.8l3.3-3.1L5.4 2.2c-.7-.4-1.3-.4-1.7 0l8 8.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 2.3c-.3.3-.5.7-.5 1.3v16.8c0 .6.2 1 .5 1.3l.1.1L13 12.1v-.2L3.7 2.2l-.1.1zM16.3 15.4l-3.1-3.1v-.3l3.1-3.1.1.1 3.7 2.1c1.1.6 1.1 1.6 0 2.2l-3.7 2.1-.1-.1zM11.7 13.2L3.7 21.8c.4.4 1 .4 1.7 0l9.6-5.5-3.3-3.1zM11.7 10.8l3.3-3.1L5.4 2.2c-.7-.4-1.3-.4-1.7 0l8 8.6z'/%3E%3C/svg%3E");
}
.store-text { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--sans); }
.store-text small { font-size: 10px; opacity: 0.8; }
.store-text strong { font-size: 16px; font-weight: 600; }

/* ============ features ============ */
.features { padding: 24px 0 72px; }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: -0.3px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28,24,20,0.10); }
.card-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--marigold);
  background: rgba(199, 91, 18, 0.10);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 8px; }
.card p { font-family: var(--sans); font-size: 14.5px; color: var(--soft); margin: 0; }

/* ============ banner ============ */
.banner { padding: 8px 0 80px; }
.banner-inner {
  background: linear-gradient(135deg, #2f5d3a 0%, #244a2e 100%);
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  color: #f3efe2;
  position: relative;
  overflow: hidden;
}
.banner-inner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 70%);
}
.banner-inner > * { position: relative; }
.banner-inner h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; }
.banner-inner p { font-family: var(--sans); font-size: 16px; opacity: 0.9; margin: 0 0 26px; }
.banner-inner .store-btn { background: var(--paper); color: var(--ink); }
.banner-inner .store-glyph { background: var(--ink); }

/* ============ footer ============ */
.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 56px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.foot-brand { display: flex; align-items: baseline; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; flex: 1; }
.foot-links a { font-family: var(--sans); font-size: 13.5px; color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--marigold); }
.foot-legal { font-family: var(--sans); font-size: 12.5px; color: #8a8071; width: 100%; }

/* ============ responsive ============ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding: 24px 0 48px; }
  .hero-art { order: -1; }
  .art-frame { transform: rotate(0); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===================================================================== */
/* legal / content pages (privacy, terms, support, delete-account)       */
/* ===================================================================== */
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.wrap header { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.wrap header .rule2 { border-bottom: 1px solid var(--ink); margin-top: 3px; }
.brand { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 0.3px; }
.wrap h1 { font-size: 24px; margin: 22px 0 4px; }
.wrap h2 { font-size: 19px; margin: 24px 0 6px; }
.wrap p, .wrap li { font-family: var(--sans); font-size: 15px; color: var(--soft); }
.updated { font-family: var(--sans); font-size: 12px; color: #8a8071; }
.box { border: 1.5px solid var(--rule); background: var(--paper-2); padding: 16px 18px; border-radius: 8px; margin: 18px 0; }
.wrap nav a { font-family: var(--sans); font-size: 13px; margin-right: 16px; }
.wrap footer { margin-top: 48px; border-top: 1px solid var(--rule); padding-top: 14px; font-family: var(--sans); font-size: 12px; color: #8a8071; }
code { background: #efe7d6; padding: 1px 5px; border-radius: 3px; font-size: 13px; }
