:root {
  --paper: #fbf8f3;
  --card: #ffffff;
  --ink: #2a2622;
  --muted: #6e655c;
  --line: #e8e0d4;
  --soft: #f3ece2;
  --accent: #b4532a;
  --accent-dark: #93421f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 18px 0 28px; max-width: 34em; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }

/* sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2, .section h2 { font-size: clamp(27px, 3.4vw, 36px); }
.section-head p, .section-intro { color: var(--muted); margin: 10px 0 0; max-width: 40em; }

/* guide cards */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.guide img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.guide-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-dark); background: var(--soft); padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.guide h3 { font-size: 25px; }
.guide h3 a { color: var(--ink); text-decoration: none; }
.guide h3 a:hover { color: var(--accent); }
.guide .sub { font-weight: 600; font-size: 15px; color: var(--muted); margin: 6px 0 10px; }
.guide p { margin: 0 0 16px; }
.guide .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.guide .more::after { content: " \2192"; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--accent-dark); font-family: var(--serif); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* covers + topics */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; columns: 2; column-gap: 24px; }
.checks li { break-inside: avoid; padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.topic { margin-top: 22px; }
.topic h3 { font-size: 20px; margin-bottom: 8px; }
.topic ul { margin: 0; padding-left: 20px; }
.topic li { margin-bottom: 6px; }

/* faq */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* note box */
.note { background: var(--soft); border-radius: 14px; padding: 24px 26px; }
.note h2 { font-size: 22px; margin-bottom: 8px; }
.note p { margin: 0; }

/* text pages */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 10px; }
.page .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.page h2 { font-size: 24px; margin: 34px 0 10px; }
.page p, .page li { color: #3d3730; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-name { font-size: 20px; color: var(--ink); }
.site-footer p { margin: 8px 0 0; max-width: 30em; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .guides { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 48px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .nav { gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .checks { columns: 1; }
  .guide-body { padding: 18px 18px 20px; }
  .btn { flex: 1 1 auto; text-align: center; }
}
