/* Forma — autumn season */

@font-face {
  font-family: 'Young Serif';
  src: url('/artifacts/forma-frontend--v1--s2--glm-5.3-flash--frontend-design--2026-09-17T08-17-16-912Z/assets/fonts/youngserif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('/artifacts/forma-frontend--v1--s2--glm-5.3-flash--frontend-design--2026-09-17T08-17-16-912Z/assets/fonts/karla-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F1F4F3;
  --surface: #FFFFFF;
  --ink: #20313C;
  --muted: #5B6E78;
  --line: #DCE2E0;
  --cobalt: #1E5E9E;
  --cobalt-deep: #164A7E;
  --marigold: #D99114;
  --marigold-deep: #8A5E06;
  --marigold-soft: #F7E7C4;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--cobalt-deep);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 20;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 400 25px/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
}
.mark { transform: translateY(2px); }

.masthead-note {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding-top: clamp(30px, 5vh, 58px);
  padding-bottom: clamp(26px, 4vh, 44px);
}

.hero h1 {
  font: 400 clamp(38px, 5vw, 58px)/1.04 var(--serif);
  letter-spacing: -0.012em;
  margin: 0 0 18px;
}

.hero-text p {
  margin: 0;
  max-width: 46ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ---------- toolbar ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  font: 500 15px/1.2 var(--sans);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #C6D0CD;
  border-radius: 8px;
  padding: 10px 12px;
}
.field-search input { width: min(280px, 100%); }
.field select { width: 190px; }

.count {
  margin: 0 0 10px auto;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  font: 700 15px/1 var(--sans);
  border-radius: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--cobalt);
  color: #fff;
}
.btn-primary:hover { background: var(--cobalt-deep); }

.btn-ghost {
  background: transparent;
  border-color: #B7C4C0;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface); }

.btn-ghost[aria-pressed="true"] {
  background: #E2EDF6;
  border-color: var(--cobalt);
  color: var(--cobalt-deep);
}

/* ---------- season list ---------- */

.season {
  list-style: none;
  margin: 0;
  padding: 0 0 56px;
}

.row {
  display: grid;
  grid-template-columns: 78px 150px 1fr 185px;
  gap: 22px;
  align-items: start;
  padding: 26px 6px;
}
.season li + li .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--surface); }

.when { margin: 4px 0 0; }
.when .d {
  display: block;
  font: 400 42px/0.95 var(--serif);
}
.when .m,
.when .w {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
}

.thumb {
  width: 150px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.chipline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  background: #E5EBE9;
  border-radius: 999px;
  padding: 4px 11px;
}
.chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--cobalt));
}

.saved-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--marigold-deep);
  background: var(--marigold-soft);
  border-radius: 999px;
  padding: 4px 11px;
}

.row h2 {
  font: 400 23px/1.15 var(--serif);
  margin: 0 0 7px;
}

.desc {
  margin: 0 0 7px;
  max-width: 54ch;
  font-size: 15px;
  color: var(--muted);
}

.meta { margin: 0; font-size: 14px; color: var(--muted); }

.side { text-align: right; }

.price { margin: 2px 0 2px; }
.price .amount { font: 400 24px/1 var(--serif); }
.price .per {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.places { margin: 0; font-size: 14px; color: var(--muted); }
.side .btn { margin-top: 14px; }

/* ---------- empty state ---------- */

.empty {
  text-align: center;
  padding: 56px 0 72px;
}
.empty h2 {
  font: 400 28px/1.1 var(--serif);
  margin: 0 0 10px;
}
.empty p {
  margin: 0 0 22px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 26px 52px;
}
.foot p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- detail dialog ---------- */

dialog#detail {
  border: 0;
  padding: 0;
  margin: 0 0 0 auto;
  width: min(600px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--surface);
  color: var(--ink);
}
dialog#detail::backdrop { background: rgba(23, 38, 46, 0.45); }

@keyframes sheet-in {
  from { transform: translateX(28px); opacity: 0; }
}
dialog#detail[open] { animation: sheet-in 0.28s ease; }

html.has-dialog { overflow: hidden; }

.sheet { height: 100%; overflow-y: auto; padding-bottom: 34px; }

.sheet-top { position: relative; }
.sheet-top img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(23, 38, 46, 0.25);
}

.detail-body { padding: 24px clamp(20px, 4vw, 36px) 0; }

.detail-body h2 {
  font: 400 32px/1.1 var(--serif);
  margin: 8px 0 5px;
}
.instructor { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.detail-text {
  margin: 0 0 22px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; text-align: right; }

.save-btn { width: 100%; margin-top: 22px; padding-block: 13px; }
.save-btn[aria-pressed="true"] {
  background: var(--marigold);
  color: #2E2103;
}
.save-btn[aria-pressed="true"]:hover { background: #C4820E; }

.save-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-photo { aspect-ratio: 16 / 10; order: 2; }
  .hero-text { order: 1; }

  .count { flex-basis: 100%; margin: 0; }
  .field-search { flex-basis: 100%; }
  .field-search input { width: 100%; }
  .field select { width: 100%; }
  .field { flex-basis: 100%; }
  .toolbar .btn { flex: 1; }

  .row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 2px;
  }
  .thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    order: -1;
  }
  .when { display: flex; align-items: baseline; gap: 8px; margin: 0; }
  .when .d { font-size: 30px; }
  .when .m, .when .w { margin: 0; }
  .when .w::before { content: ", "; }

  .side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    margin-top: 2px;
  }
  .price { margin: 0; }
  .price .per { display: inline; margin-left: 5px; }
  .side .btn { margin-top: 0; }

  dialog#detail { width: 100vw; }
  .sheet-top img { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  dialog#detail[open] { animation: none; }
  .btn { transition: none; }
}
