:root {
  color-scheme: light;
  --ink: #1b1a17;
  --muted: #6b6257;
  --paper: #f6ecd8;
  --paper-deep: #ead7b8;
  --cream: #fff8e8;
  --line: rgba(68, 48, 29, 0.18);
  --leaf: #48745f;
  --leaf-dark: #24483b;
  --sea: #2f6f7f;
  --sun: #f1a83a;
  --rose: #c56558;
  --shadow: 0 24px 70px rgba(48, 31, 14, 0.18);
  --radius: 30px;
  font-family: "Gill Sans", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 4%, rgba(241, 168, 58, 0.42), transparent 29rem),
    radial-gradient(circle at 83% 8%, rgba(47, 111, 127, 0.28), transparent 31rem),
    linear-gradient(120deg, #f7ead0 0%, #fff5df 48%, #e9dbc3 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -18vw -32vw auto;
  width: 62vw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(36, 72, 59, 0.15);
  background: repeating-conic-gradient(from 12deg, rgba(72, 116, 95, 0.12) 0 7deg, transparent 7deg 19deg);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,.5), rgba(255,255,255,0)),
    repeating-radial-gradient(circle at 0 0, rgba(28, 20, 11, 0.35) 0 1px, transparent 1px 5px);
  z-index: 20;
}

a {
  color: inherit;
}

.hero {
  min-height: 96vh;
  padding: clamp(18px, 3vw, 42px);
  display: flex;
  flex-direction: column;
}

.topbar {
  align-self: flex-end;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(61, 42, 20, 0.08);
}

.topbar a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 180ms ease, transform 180ms ease;
}

.topbar a:hover,
.topbar a:focus-visible {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
  outline: none;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 54px 0 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.92;
}

h1 {
  max-width: 9ch;
  font-size: clamp(5rem, 16vw, 12.5rem);
  letter-spacing: -0.1em;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  letter-spacing: -0.06em;
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.05;
}

.lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: #463a2c;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(49, 35, 16, 0.16);
  outline: none;
}

.button.primary {
  color: var(--cream);
  background: var(--ink);
}

.button.ghost {
  background: rgba(255, 248, 232, 0.5);
}

.trip-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(27, 26, 23, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 248, 232, 0.86), rgba(235, 211, 172, 0.68)),
    radial-gradient(circle at top right, rgba(47, 111, 127, 0.2), transparent 40%);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.trip-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(27, 26, 23, 0.24);
  border-radius: 22px;
  pointer-events: none;
}

.stamp {
  width: max-content;
  margin-left: auto;
  padding: 12px 16px;
  border: 2px solid var(--rose);
  border-radius: 50%;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.18em;
  transform: rotate(12deg);
}

dl {
  margin: 42px 0 0;
  display: grid;
  gap: 22px;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.18;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding-bottom: 56px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.74);
  box-shadow: 0 22px 60px rgba(48, 31, 14, 0.11);
  backdrop-filter: blur(18px);
}

.intro-panel {
  padding: clamp(24px, 4vw, 52px);
  display: grid;
  gap: 38px;
}

.route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.route-line::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 4%;
  right: 4%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--leaf), var(--sun), var(--sea));
}

.route-stop {
  position: relative;
  padding: 78px 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
  min-height: 230px;
}

.route-stop.feature {
  background: rgba(241, 168, 58, 0.17);
  outline: 1px solid rgba(241, 168, 58, 0.36);
}

.pin {
  position: absolute;
  top: 13px;
  left: 20px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-weight: 900;
}

.route-stop p,
.place-card p,
.panel p,
.mini-list,
.checklist {
  color: #504438;
  line-height: 1.55;
}

.split,
.planner-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.calendar-card,
.decision-card,
.task-panel,
.notes-panel {
  padding: clamp(24px, 4vw, 42px);
}

.calendar-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.76), rgba(255, 236, 198, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(80, 68, 56, 0.08) 29px 30px);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.date-strip span {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.44);
  font-size: 0.9rem;
}

.date-strip b {
  display: inline-block;
  margin-top: 6px;
  color: var(--leaf-dark);
}

.decision-card {
  background: linear-gradient(160deg, rgba(72, 116, 95, 0.15), rgba(255, 248, 232, 0.75));
}

.mini-list {
  margin: 22px 0 0;
  padding-left: 20px;
}

.mini-list li + li {
  margin-top: 10px;
}

.places {
  padding: clamp(24px, 4vw, 52px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.place-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 28px;
  color: #fff9ed;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.place-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.place-card span {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.place-card p {
  color: rgba(255, 249, 237, 0.82);
}

.place-card.sea { background: linear-gradient(155deg, #164d5b, #2f6f7f); }
.place-card.amber { background: linear-gradient(155deg, #7f4d21, #d5872c); }
.place-card.green { background: linear-gradient(155deg, #24483b, #5b8068); }
.place-card.rose { background: linear-gradient(155deg, #753d39, #c56558); }

.muted {
  color: var(--muted) !important;
  margin-top: 8px;
}

.checklist {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(80, 68, 56, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--leaf);
  transform: translateY(2px);
}

.checklist label:has(input:checked) {
  color: rgba(80, 68, 56, 0.55);
  text-decoration: line-through;
  background: rgba(72, 116, 95, 0.12);
}

textarea {
  width: 100%;
  min-height: 300px;
  margin-top: 22px;
  padding: 20px;
  resize: vertical;
  border: 1px solid rgba(80, 68, 56, 0.18);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  font: inherit;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

textarea:focus {
  outline: 2px solid rgba(47, 111, 127, 0.34);
  outline-offset: 3px;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .topbar {
    align-self: center;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 26px;
  }

  .hero-grid,
  .split,
  .planner-board,
  .route-line,
  .place-grid {
    grid-template-columns: 1fr;
  }

  .route-line::before {
    top: 0;
    bottom: 0;
    left: 44px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .route-stop {
    padding: 26px 22px 24px 92px;
    min-height: auto;
  }

  .pin {
    left: 18px;
  }

  .trip-card {
    transform: none;
  }

  .date-strip {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(4.1rem, 23vw, 7rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .trip-card,
  .panel {
    animation: rise 700ms both;
  }

  .trip-card { animation-delay: 120ms; }
  .panel:nth-of-type(2) { animation-delay: 80ms; }
  .panel:nth-of-type(3) { animation-delay: 160ms; }

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