* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg: #f6f1e8;
  --ink: #2e241a;
  --muted: #6f5c48;
  --accent: #d9b27a;
  --accent-dark: #8a673f;
  --line: #d8c7b2;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ── Nav ── */
.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: .72rem .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(12px);
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 750;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { border-radius: 10px; }
.appstore-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: visible;
  line-height: 0;
  text-decoration: none;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge img {
  display: block;
  width: auto;
  height: 40px;
}

/* ── Article wrapper ── */
.wrap {
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Article ── */
article {
  padding: 2.4rem 0 4rem;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: -.02em;
  color: var(--ink);
}

p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Hero image ── */
.hero {
  margin: 1.2rem 0 2rem;
}
.hero img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

/* ── Headings ── */
h2 {
  margin: 2.2rem 0 .5rem;
  font-size: 1.4rem;
  letter-spacing: -.015em;
  color: var(--ink);
}

h3 {
  margin: 1.6rem 0 .35rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -.01em;
}

/* ── Body text ── */
p {
  line-height: 1.75;
  color: #3f3226;
}

/* ── Links (article body only) ── */
article a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(138, 103, 63, .35);
  text-underline-offset: 2px;
}
article a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* ── Lists ── */
ul, ol {
  padding-left: 1.4rem;
  margin: 1rem 0;
}
li {
  color: #3f3226;
  line-height: 1.8;
  margin-bottom: .6rem;
  padding-left: .2rem;
}
li strong {
  color: var(--ink);
}

/* ── CTA box ── */
.cta {
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: rgba(217, 178, 122, .1);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}
.cta .appstore-badge {
  display: block;
  margin-top: .9rem;
  width: fit-content;
}
.cta .appstore-badge img {
  height: 44px;
}

/* ── Footer ── */
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}
.footer a {
  color: var(--accent-dark);
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ── Blog index guide links ── */
.guide-list h2 {
  margin: .6rem 0;
}
.guide-list h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.guide-list h2 a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 620px) {
  .wrap { width: calc(100% - 1rem); }
  .nav, .footer { width: calc(100% - 1rem); }
  .footer { flex-direction: column; gap: .4rem; }
  h1 { font-size: 2rem; }
  .appstore-badge img { height: 36px; }
}
