h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { margin: .15em 0 .3em; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 8vw, 5.8rem); font-weight: 500; letter-spacing: -.035em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: 1.08rem; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--white);
  color: var(--fir-950);
}
.skip-link:focus { transform: translateY(0); }

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--copper-600);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lead { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.day-card,
.restaurant-card {
  display: block;
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #dbe4df;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 7px 22px rgba(8, 47, 42, .06);
  color: inherit;
  text-decoration: none;
  transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion);
}

.day-card { min-height: 250px; padding-right: 72px; }
.day-card h2, .day-card h3 { margin: 28px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.day-card p { color: var(--muted); }
.day-card time { font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.day-card__number { position: absolute; top: 12px; right: 18px; color: var(--sea-100); font-family: Georgia, serif; font-size: 3.5rem; }

.day-card:hover,
.day-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--sea-600);
  box-shadow: var(--shadow);
}

.lifecycle-hero,
.day-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: min(680px, calc(100vh - 150px));
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--fir-950);
  color: var(--white);
  box-shadow: var(--shadow);
}

.lifecycle-hero__copy,
.day-hero__copy {
  z-index: 1;
  align-self: center;
  padding: clamp(28px, 6vw, 72px);
}

.lifecycle-hero .lead,
.day-hero .lead { color: #c8d9d3; }

.lifecycle-hero .eyebrow,
.day-hero .eyebrow { color: var(--copper-100); }

.lifecycle-hero img,
.day-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.day-hero { min-height: 520px; }
.day-hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }

.back-link { display: inline-block; margin-bottom: 32px; color: var(--white); font-weight: 700; text-decoration: none; }
.home-section { padding: 72px 0 0; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline__item { display: grid; grid-template-columns: 108px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid #dfe7e3; }
.timeline__item h3 { margin: 0 0 8px; }
.timeline__item p { margin: 0 0 12px; color: var(--muted); }
.timeline__meta { display: flex; flex-direction: column; gap: 4px; color: var(--sea-600); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.text-link { color: var(--fir-800); font-weight: 800; text-underline-offset: 3px; }

.restaurant-card h3 { margin: 4px 0 10px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.restaurant-card__meta { color: var(--muted); font-size: .9rem; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button,
.actions a,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.button--primary { background: var(--copper-600); color: var(--white); }
.button--quiet { border-color: #c9d8d2; background: transparent; color: inherit; }
.button--small { font-size: .82rem; }

.intensity { display: inline-block; border-radius: 999px; padding: 6px 9px; background: var(--sea-100); color: var(--fir-900); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.intensity--active { background: var(--copper-100); color: #85482f; }
.intensity--mixed { background: #eee7cd; color: #66591c; }

.auth-card { width: min(480px, calc(100% - 32px)); margin: 10vh auto; padding: 32px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.6rem; }
.auth-card form { display: grid; gap: 12px; }
.auth-card input { min-height: 48px; padding: 10px 12px; border: 1px solid #b6c7c0; border-radius: 10px; font: inherit; }

#photo-upload-form { display: grid; max-width: 640px; gap: 8px; }
#photo-upload-form select,
#photo-upload-form input[type="file"] {
  width: 100%;
  min-height: 44px;
  max-width: 100%;
  font: inherit;
}
#photo-upload-form select { padding: 8px 10px; border: 1px solid #b6c7c0; border-radius: 10px; background: var(--white); }
#photo-upload-form input[type="file"] { padding: 10px 0; }

:focus-visible { outline: 3px solid var(--copper-600); outline-offset: 3px; }

@media (max-width: 720px) {
  .lifecycle-hero,
  .day-hero { grid-template-columns: 1fr; min-height: 0; }
  .lifecycle-hero__copy,
  .day-hero__copy { padding: 32px 24px; }
  .lifecycle-hero img,
  .day-hero img { order: -1; min-height: 250px; max-height: 340px; }
  .timeline__item { grid-template-columns: 84px 1fr; gap: 12px; }
}
