/* Advent With Friends — 暖纸 (warm paper) direction
   Reference: a hand-painted kraft-paper advent calendar
   Memory point: wax-sealed letter doors (one motif, used on the door grid) */
:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --accent: #c2562f;
  --accent-deep: #a4431f;
  --spark: #e0a03a;
  --line: #e4d7c4;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --radius: 12px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: 44px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; margin-top: 48px; }
h3 { font-size: 22px; font-weight: 600; margin-top: 32px; }
p { margin: 0 0 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand .gf-site-icon { border-radius: 8px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 600;
}
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--spark);
  outline-offset: 2px;
}
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }

/* page blocks */
.page { padding: 24px 24px 64px; }
.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 32px;
}
.prose { max-width: 70ch; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; }

/* tool stage (first screen) */
.tool-stage {
  margin: 0 0 48px;
}
.tool-stage .awf {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 32px;
}

/* FAQ */
.faq { max-width: 70ch; margin-top: 48px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}
.faq-item p { margin: 16px 0 0; color: var(--muted); }

/* related cards */
.related { margin-top: 64px; }
.cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.card:hover {
  border-color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow-2);
}
.card h3 { margin: 0 0 8px; font-size: 22px; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* steps (numbered list) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 32px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { font-family: var(--font-head); font-size: 22px; font-weight: 600; display: block; margin-bottom: 4px; }

/* two-column idea strip */
.duo {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin: 32px 0;
}
.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--spark);
  border-radius: var(--radius);
  padding: 24px;
}
.note-card p:last-child { margin-bottom: 0; }

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  background: var(--card);
}
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}
.foot-brand { font-size: 18px; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0;
  font-size: 16px;
}
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--accent); }
.foot-note { color: var(--muted); font-size: 14px; margin: 0; }

/* legal pages */
.legal-date { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .lede { font-size: 18px; }
  .site-head { flex-direction: column; align-items: flex-start; }
  .site-nav { flex-wrap: wrap; gap: 12px 16px; font-size: 15px; }
  .site-nav .btn { width: 100%; }
  .tool-stage .awf { padding: 20px 16px; }
  .cards { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .faq-item summary { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
