:root {
  --bg: #f6f3ef;
  --ink: #1f1a17;
  --muted: #6f645c;
  --accent: #c4572f;
  --accent-dark: #8f3b20;
  --surface: #fff9f2;
  --line: #e1d6ca;
  --shadow: 0 18px 40px rgba(31, 26, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nanum Gothic", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f3ef 0%, #f0e8df 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: rgba(246, 243, 239, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.brand-text strong {
  display: block;
  font-family: "Spectral", serif;
  font-size: 1.1rem;
}

.brand-text small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

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

.cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

main {
  padding: 40px 6vw 80px;
}

.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  margin-bottom: 70px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero h1 {
  font-family: "Spectral", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 10px 0 16px;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.btn {
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.btn.ghost {
  background: white;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.2rem;
}

.hero-metrics span {
  color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.75rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-list li {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
}

.time {
  font-weight: 700;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #ffe8d6;
}

.tag.high {
  background: #ffe0d6;
  color: #9d2c1b;
}

.tag.mid {
  background: #fff2ce;
  color: #8c5a00;
}

.tag.low {
  background: #e8f0ff;
  color: #1f4d99;
}

.section-header {
  margin-bottom: 26px;
}

.section-header h2 {
  font-family: "Spectral", serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
}

.planner {
  background: white;
  border-radius: 28px;
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 80px;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.planner-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.planner-form h3 {
  margin-top: 0;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--muted);
}

input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: white;
}

textarea {
  resize: vertical;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.planner-board {
  display: grid;
  gap: 16px;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-actions {
  display: flex;
  gap: 10px;
}

.blocks {
  display: grid;
  gap: 12px;
}

.block-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  display: grid;
  gap: 8px;
}

.block-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.block-meta strong {
  font-size: 1.05rem;
}

.block-notes {
  color: var(--muted);
  line-height: 1.6;
}

.block-actions {
  display: flex;
  gap: 10px;
}

.reflection {
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

.focus-timer {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 20px;
  background: #1f1a17;
  color: #fef7ef;
}

.timer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timer-display {
  font-size: 2.6rem;
  font-weight: 800;
  text-align: right;
}

.guide {
  margin-bottom: 80px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.guide-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.guide-callout {
  margin-top: 24px;
  background: #fff4e6;
  border: 1px solid #f3d5b6;
  border-radius: 18px;
  padding: 20px;
}

.guide-callout ul {
  margin: 0;
  padding-left: 20px;
}

.templates {
  margin-bottom: 80px;
}

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

.template-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.template-card ul {
  padding-left: 18px;
}

.faq {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 6vw;
  border-top: 1px solid var(--line);
  background: #f1e7dc;
}

.footer-links {
  display: grid;
  gap: 8px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
  }
  .timer-display {
    text-align: left;
  }
}
