:root {
  --ink: #17362f;
  --muted: #687a74;
  --paper: #f3f0e8;
  --card: #fffdf8;
  --forest: #164c3d;
  --forest-dark: #0e382d;
  --mint: #dce9df;
  --gold: #c59a54;
  --line: #dcd9cf;
  --error: #a33c36;
  --shadow: 0 18px 60px rgba(27, 55, 47, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.hidden { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10; background: white; padding: 12px; color: var(--forest); }
.skip-link:focus { top: 16px; }
.site-header {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 84px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 54, 47, .12);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: #fff; font-family: serif; font-size: 23px; }
.header-note { margin: 0; color: var(--muted); font-size: 13px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 28px 80px; }
.hero { padding: 86px 0 68px; position: relative; }
.hero::after { content: "۞"; position: absolute; right: 6%; top: 24px; color: rgba(22, 76, 61, .055); font-family: serif; font-size: 250px; line-height: 1; pointer-events: none; }
.eyebrow, .step-label { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 16px 0 22px; font-family: "Newsreader", serif; font-size: clamp(54px, 8vw, 94px); font-weight: 600; line-height: .94; letter-spacing: -.045em; }
.hero h1 em { color: var(--forest); font-weight: 600; }
.hero-copy { max-width: 550px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-stat { margin-top: 38px; display: inline-flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.hero-stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-stat strong { font-size: 13px; letter-spacing: .04em; }

.workspace { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(480px, 1.22fr); gap: 22px; align-items: start; }
.card { background: var(--card); border: 1px solid rgba(23, 54, 47, .1); border-radius: 6px; padding: 30px; box-shadow: var(--shadow); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.card-header p { margin: 0 0 8px; }
.card-header h2 { margin: 0; font-family: "Newsreader", serif; font-size: 32px; letter-spacing: -.02em; }
.text-button { border: 0; background: transparent; color: var(--forest); padding: 6px; font-weight: 600; border-bottom: 1px solid var(--forest); }

label { display: block; margin: 19px 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
input { width: 100%; border: 1px solid var(--line); border-radius: 3px; padding: 13px 14px; background: #fff; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22, 76, 61, .1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.primary-button { width: 100%; margin-top: 24px; border: 0; border-radius: 3px; background: var(--forest); color: #fff; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--forest-dark); transform: translateY(-1px); }
.message { min-height: 20px; margin: 14px 0 0; font-size: 13px; }
.message.error { color: var(--error); }
.message.success { color: var(--forest); }

.target-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.target-summary div { background: #fff; padding: 18px; }
.target-summary span, .target-summary strong { display: block; }
.target-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.target-summary strong { font-size: 14px; }
.progress-badge { background: var(--mint); padding: 8px 12px; border-radius: 30px; color: var(--forest); font-size: 12px; font-weight: 700; white-space: nowrap; }
.filters { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 18px; overflow-x: auto; }
.filter { border: 0; background: transparent; color: var(--muted); padding: 8px 11px; border-radius: 3px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.filter.active { background: var(--forest); color: white; }
.empty-state { min-height: 350px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-symbol { font-family: serif; font-size: 72px; color: var(--mint); }
.empty-state h3 { margin: 8px 0; color: var(--ink); font-family: "Newsreader", serif; font-size: 24px; }
.empty-state p { margin: 0; font-size: 14px; }

.day-group { padding-top: 24px; }
.day-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.day-header h3 { margin: 0; font-size: 13px; }
.day-header span { color: var(--muted); font-size: 11px; }
.schedule-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid rgba(220, 217, 207, .7); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gold); }
.item-copy { min-width: 0; }
.item-copy span, .item-copy strong { display: block; }
.item-copy span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.item-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.schedule-item time { color: var(--muted); font-size: 11px; }
.checkin-button { border: 1px solid var(--forest); border-radius: 3px; background: transparent; color: var(--forest); padding: 8px 11px; font-size: 11px; font-weight: 700; }
.checkin-button:hover { background: var(--forest); color: white; }
.completed { opacity: .58; }
.completed .status-dot { background: var(--forest); border-color: var(--forest); }
.done-label { color: var(--forest); font-size: 11px; font-weight: 700; }
.list-empty { min-height: 250px; display: grid; place-content: center; text-align: center; gap: 6px; }
.list-empty strong { font-family: "Newsreader", serif; font-size: 21px; }
.list-empty span { color: var(--muted); font-size: 12px; }

footer { max-width: 1240px; margin: 0 auto; padding: 24px 28px 50px; color: var(--muted); font-size: 12px; border-top: 1px solid rgba(23, 54, 47, .12); }

@media (max-width: 860px) {
  .hero { padding: 62px 0 48px; }
  .workspace { grid-template-columns: 1fr; }
  .hero::after { display: none; }
}
@media (max-width: 560px) {
  .site-header, main, footer { padding-left: 18px; padding-right: 18px; }
  .header-note { display: none; }
  .hero h1 { font-size: 52px; }
  .hero-stat { align-items: flex-start; flex-direction: column; gap: 8px; }
  .card { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .target-summary { grid-template-columns: 1fr; }
  .schedule-heading { flex-direction: column; }
}
