:root {
  --ink: #23261f;
  --ink-soft: #4a4d42;
  --paper: #f6f1e7;
  --paper-dim: #ece4d3;
  --port: #6e1423;
  --blossom: #e8b4c0;
  --brass: #a9803d;
  --sage: #6b7b5e;
  --rule: rgba(35, 38, 31, 0.14);

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Gate ---------- */

.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  padding: 24px;
  z-index: 10;
}

.gate-card {
  max-width: 340px;
  width: 100%;
  text-align: center;
  color: var(--paper);
}

.gate-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--blossom);
  margin: 0 0 8px;
}

.gate-card h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  margin: 0 0 12px;
}

.gate-copy {
  font-size: 15px;
  color: rgba(246, 241, 231, 0.7);
  margin: 0 0 24px;
}

#gate-form {
  display: flex;
  gap: 8px;
}

#gate-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid rgba(246, 241, 231, 0.25);
  background: rgba(246, 241, 231, 0.06);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
}

#gate-input:focus-visible {
  outline: 2px solid var(--blossom);
  outline-offset: 2px;
}

#gate-form button {
  padding: 12px 18px;
  border-radius: 3px;
  border: none;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

#gate-form button:hover { background: #bb9250; }
#gate-form button:focus-visible { outline: 2px solid var(--blossom); outline-offset: 2px; }

.gate-error {
  margin-top: 14px;
  color: var(--blossom);
  font-size: 14px;
}

/* ---------- App shell ---------- */

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.hero-subhead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.hero-status {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.hero-progress {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-progress-count {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--port);
  line-height: 1;
}

.hero-progress-of {
  font-size: 15px;
  color: var(--ink-soft);
}

.hero-next {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-next .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  margin-right: 8px;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---------- Ideas — agreed, date still open ---------- */

.ideas-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
}

.ideas-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.idea-card {
  padding: 18px 0 18px 16px;
  border-left: 3px dashed var(--brass);
  border-bottom: 1px solid var(--rule);
}

.idea-card:last-child { border-bottom: none; margin-bottom: 8px; }

/* ---------- Timeline ---------- */

.month-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 48px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.month-heading:first-child { margin-top: 0; }

/* Revealed card */

.item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.item-date {
  flex: none;
  width: 56px;
  text-align: center;
}

.item-weekday {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.item-day {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--brass);
}

.item-day.is-range {
  font-size: 21px;
  letter-spacing: -0.3px;
}

.item-day.is-tbc {
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--brass);
}

.item-day.is-crossmonth {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}

.item-date:has(.is-range) { width: 68px; }
.item-date:has(.is-crossmonth) { width: 76px; }

.item-surprise-icon {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1;
}

.item-monthabbr {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 4px;
}

.item-body { flex: 1; min-width: 0; }

/* the 9th of every month — the running "special day" rhythm */
.item.is-special-day .item-day,
.item.is-special-day .item-weekday { color: var(--port); }

.item-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 6px;
}

.item-check {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  border-radius: 3px;
  border: 1.5px solid var(--rule);
  position: relative;
}

.item-check.is-done {
  background: var(--sage);
  border-color: var(--sage);
}

.item-check.is-done::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.item-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0;
}

.item.is-done .item-title { color: var(--ink-soft); }

.item-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 46ch;
}

.item-thumb-wrap {
  display: inline-block;
  background: #fff;
  padding: 6px 6px 16px;
  margin: 4px 0 12px;
  box-shadow: 0 2px 5px rgba(35, 38, 31, 0.16);
  transform: rotate(-1.2deg);
}

.item-thumb {
  display: block;
  width: 168px;
  height: 112px;
  object-fit: cover;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}

.tag.who { border-color: var(--sage); color: var(--sage); }

.tag.status-idea {
  border-style: dashed;
}

.tag.status-booked {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.tag.special-day {
  border-color: var(--port);
  color: var(--port);
}

.item-photos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--port);
  text-decoration: none;
  border-bottom: 1px solid var(--port);
  padding-bottom: 1px;
}

.item-photos:hover { color: var(--brass); border-color: var(--brass); }

/* Locked row */

.item.is-locked {
  align-items: center;
  padding: 14px 0;
  opacity: 0.75;
}

.item.is-locked .item-day,
.item.is-locked .item-monthabbr { color: var(--ink-soft); }

.item-locked-label {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

.item-locked-label::before {
  content: '🔒';
  margin-right: 8px;
  font-size: 12px;
  opacity: 0.6;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Small screens ---------- */

@media (max-width: 420px) {
  .hero-title { font-size: 32px; }
  .item-date { width: 46px; }
  .item-day { font-size: 26px; }
}
