:root {
  color-scheme: light;
  --ink: #24231f;
  --muted: #746f65;
  --paper: #faf9f5;
  --panel: #f6f4ef;
  --line: #ded9ce;
  --gold: #b99b63;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 255, 255, 0.94), transparent 30%),
    var(--paper);
  font-family: var(--serif);
}

.date-field svg,
.calendar-icon {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

main {
  width: min(1050px, calc(100% - 80px));
  margin: 0 auto;
  padding: 62px 0 80px;
}

header {
  margin-bottom: 34px;
}

.kicker {
  margin: 0 0 9px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.subtitle {
  margin: 11px 0 0;
  color: var(--gold);
  font-size: 30px;
  font-style: italic;
}

.start-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 30px;
  padding: 28px 38px;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 7px 25px rgba(49, 43, 34, 0.07);
}

.start-card label {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.start-card label strong {
  font-size: 38px;
  font-weight: 500;
}

.start-card label span {
  color: var(--muted);
  font-size: 18px;
}

.date-field {
  position: relative;
  display: flex;
  align-items: center;
}

.date-field svg {
  position: absolute;
  left: 18px;
  pointer-events: none;
}

input {
  width: 100%;
  height: 58px;
  padding: 0 18px 0 56px;
  border: 1px solid #d4cec3;
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  font: 500 19px var(--serif);
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 155, 99, 0.13);
}

.timeline {
  position: relative;
  margin: 24px 0 0 52px;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 47px;
  bottom: 47px;
  left: -28px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr 54px;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  margin-bottom: 10px;
  padding: 12px 28px 12px 16px;
  border: 1px solid #ebe7df;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 5px 18px rgba(49, 43, 34, 0.065);
}

.timeline-item::before {
  position: absolute;
  top: 50%;
  left: -33px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  transform: translateY(-50%);
}

.day-badge {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 29px;
}

.date-result {
  justify-self: center;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  text-transform: capitalize;
  white-space: nowrap;
}

.calendar-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

@media (max-width: 900px) {
  main {
    width: min(100% - 40px, 760px);
    margin: 0 auto;
    padding-top: 44px;
  }

  .start-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .timeline-item {
    grid-template-columns: 76px 1fr auto;
  }
}

@media (max-width: 580px) {
  main {
    width: min(100% - 24px, 760px);
    padding-top: 34px;
  }

  h1 {
    font-size: 43px;
  }

  .subtitle {
    font-size: 25px;
  }

  .start-card {
    padding: 22px 20px;
  }

  .timeline {
    margin-left: 20px;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    min-height: 78px;
    padding: 10px 16px 10px 10px;
  }

  .day-badge {
    width: 52px;
    height: 52px;
    font-size: 23px;
  }

  .date-result {
    justify-self: center;
    font-size: 17px;
    white-space: normal;
  }

  .calendar-button {
    display: none;
  }
}
