:root {
  --bg: #F5EFE6;
  --surface: #FDFAF5;
  --surface-soft: #EDE4D6;
  --ink: #2A1F16;
  --ink-soft: #9A8070;
  --ember: #C4652A;
  --ember-hover: #E07848;
  --success: #6B8B6E;
  --success-bg: #EBF2EC;
  --border: #EDE4D6;
  --shadow: 0 14px 40px rgba(42, 31, 22, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 10% 0%, #fbf7ef 0%, var(--bg) 45%, #efe4d5 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.container {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(253, 250, 245, 0.86);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ember);
}

.hero {
  padding: 48px 0 26px;
}

.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  font-weight: 700;
}

.subtitle {
  max-width: 740px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.panel {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  min-height: 40px;
  padding: 0 18px;
}

.btn:hover {
  background: var(--ember-hover);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.section {
  padding: 10px 0 42px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 12px;
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 14px;
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.note {
  font-size: 13px;
  color: var(--ink-soft);
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), #e79a6e);
  transition: width 240ms ease;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-soft);
}

.doodle {
  margin: 8px 0;
  padding: 12px;
  border-radius: var(--r-sm);
  border: 1px dashed #d8c9b2;
  background: #f9f3ea;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.2;
  white-space: pre;
  min-height: 92px;
}

.item-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-card button {
  width: 100%;
}

.item-card.done {
  border-color: #cbe1cd;
  background: #f4faf4;
}

.item-card.done .doodle {
  border-color: #b8d3bc;
  background: #edf7ee;
}

.toast {
  position: fixed;
  right: 12px;
  bottom: 12px;
  border-radius: 12px;
  border: 1px solid #cdddcf;
  background: var(--success-bg);
  color: var(--success);
  padding: 10px 12px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.surprise {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ead7c3;
  background: #fff6ed;
  font-size: 14px;
  display: none;
}

.surprise.show {
  display: block;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 30px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }
}
