@import url("../assets/fonts/lexus-rodin.css");

:root {
  --bg: #050505;
  --panel: #111;
  --panel-strong: #171717;
  --line: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(221, 189, 132, 0.58);
  --text: #f7f4ed;
  --soft: #e3ddcf;
  --muted: #b8b5ad;
  --gold: #d8b66e;
  --sea: #78a9b7;
  --error: #f1a6a6;
  --ok: #d8d1c2;
  --header-height: 68px;
  --entry-bar-height: 122px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lexus Rodin", sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

body.home-page {
  padding-top: var(--header-height);
  padding-bottom: calc(var(--entry-bar-height) + env(safe-area-inset-bottom));
}

body.home-page.cove-entry-bar-default-hidden {
  padding-bottom: 0;
}

body.home-page.cove-entry-bar-default-hidden.cove-entry-bar-visible {
  padding-bottom: calc(var(--entry-bar-height) + env(safe-area-inset-bottom));
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--header-height);
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo img,
.local-footer img {
  display: block;
  width: auto;
  height: 28px;
}

.logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.hero-section {
  position: relative;
  display: grid;
  align-items: end;
  height: calc(100svh - var(--header-height) - var(--entry-bar-height) - 20px);
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

body.home-page.cove-entry-bar-default-hidden .hero-section {
  height: calc(100svh - var(--header-height) - 20px);
}

body.home-page.cove-entry-bar-default-hidden.cove-entry-bar-visible .hero-section {
  height: calc(100svh - var(--header-height) - var(--entry-bar-height) - 20px);
}

.hero-media,
.hero-overlay,
.hero-media__image {
  position: absolute;
  inset: 0;
}

.hero-media__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1800ms ease-in-out, transform 6800ms linear;
  will-change: opacity, transform;
  z-index: 0;
}

.hero-media__image.is-active {
  opacity: 1;
  transform: scale(1.08);
  z-index: 1;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 68px;
}

.hero-kicker,
.hero-title,
.hero-lead {
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.98),
    0 8px 18px rgba(0, 0, 0, 0.92),
    0 18px 42px rgba(0, 0, 0, 0.82);
}

.hero-kicker,
.section-kicker,
.page-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-title {
  width: min(780px, 100%);
  margin: 18px 0 0;
  color: var(--text);
  font-size: 4.25rem;
  font-weight: 600;
  line-height: 1.13;
}

.hero-title span {
  color: #fff;
}

.hero-lead {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 1.16rem;
  line-height: 1.85;
}

.hero-actions,
.application-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
}

.primary-button,
.outline-button,
.entry-button,
.submit-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.primary-button,
.entry-button,
.submit-button {
  color: #090909;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 48%),
    linear-gradient(135deg, #f5e6c8 0%, #c69c5e 49%, #edd09b 100%);
  border: 1px solid #f1ddba;
  box-shadow:
    inset 0 0 0 1px rgba(85, 54, 16, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.primary-button {
  padding: 13px 26px;
}

.primary-button--wide {
  min-width: 260px;
}

.outline-button,
.secondary-button {
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(229, 224, 214, 0.72);
}

.outline-button {
  padding: 12px 22px;
}

.primary-button:hover,
.entry-button:hover,
.submit-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.outline-button:hover,
.secondary-button:hover {
  color: #050505;
  background: var(--soft);
  border-color: var(--soft);
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.summary-section,
.experience-section,
.gallery-section,
.movie-section,
.stay-section,
.notice-section,
.application-section {
  padding: 78px 0;
}

.summary-section {
  background:
    linear-gradient(180deg, #050505 0%, #0b0b0b 100%);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
}

.section-heading--narrow {
  width: min(700px, 100%);
}

.section-heading h2,
.experience-copy h2,
.stay-layout h2,
.application-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.32;
}

.section-heading p,
.experience-copy p,
.application-panel p {
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.fact-grid div {
  min-height: 174px;
  padding: 26px 22px;
  background: #111;
}

.fact-grid dt,
.outline-list dt {
  color: var(--gold);
  font-size: 0.86rem;
}

.fact-grid dd {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.55;
}

.fee-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--soft);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.42;
  list-style: none;
}

.fee-list li {
  display: grid;
  grid-template-columns: 2.8em minmax(0, 1fr);
  gap: 10px;
}

.fee-list__count,
.fee-list strong {
  color: var(--text);
  font-weight: 700;
}

.experience-section {
  background: #060606;
}

.experience-layout,
.stay-layout,
.notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.experience-copy {
  display: grid;
  gap: 18px;
}

.experience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.gallery-section {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-carousel {
  position: relative;
  margin-top: 38px;
}

.gallery-track {
  display: grid;
  grid-auto-columns: minmax(320px, 72%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 0 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-slide {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  scroll-snap-align: center;
}

.gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-slide figcaption,
.movie-item figcaption {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  background: #080808;
  font-size: 0.88rem;
}

.carousel-button {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-button::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin: auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel-button--prev {
  left: 12px;
}

.carousel-button--prev::before {
  transform: translateX(3px) rotate(-135deg);
}

.carousel-button--next {
  right: 12px;
}

.carousel-button--next::before {
  transform: translateX(-3px) rotate(45deg);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  border: 0;
  border-radius: 50%;
}

.gallery-dots button[aria-current] {
  background: var(--gold);
}

.movie-section {
  background:
    linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.movie-item {
  margin: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.movie-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.stay-section {
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stay-layout {
  align-items: start;
}

.outline-list {
  display: grid;
  gap: 1px;
  margin: 30px 0 0;
  background: rgba(255, 255, 255, 0.12);
}

.outline-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  background: #080808;
}

.outline-list dd {
  margin: 0;
  color: var(--soft);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-day {
  padding: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-day__label {
  margin: 0 0 20px;
  color: var(--gold);
  font-weight: 700;
}

.timeline ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  color: var(--soft);
}

.timeline time {
  color: #fff;
  font-weight: 700;
}

.notice-section {
  background: #050505;
}

.notice-layout {
  align-items: start;
}

.notice-columns {
  display: grid;
  gap: 18px;
}

.notice-block {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-block h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.18rem;
}

.notice-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--soft);
}

.application-section {
  background:
    linear-gradient(180deg, #050505 0%, #111 100%);
}

.application-panel {
  display: grid;
  gap: 18px;
  padding-top: 52px;
  border-top: 1px solid var(--line-gold);
}

.application-actions {
  margin-top: 8px;
}

.application-contact {
  color: var(--muted) !important;
  font-size: 0.94rem !important;
}

.entry-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 18px 28px calc(18px + env(safe-area-inset-bottom));
  background:
    linear-gradient(90deg, rgba(120, 169, 183, 0.14), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #191919 0%, #070707 100%);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.48);
}

.entry-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 24px;
  align-items: center;
  width: min(1160px, 100%);
  min-height: 74px;
  margin: 0 auto;
}

.entry-bar__copy p {
  margin: 0;
}

.entry-bar__title {
  color: var(--text);
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.35;
}

.entry-bar__title span {
  color: var(--gold);
}

.entry-bar__description {
  margin-top: 6px !important;
  color: var(--soft);
  font-size: 0.94rem;
}

.entry-button {
  gap: 18px;
  justify-content: space-between;
  min-height: 60px;
  padding: 14px 24px;
  white-space: nowrap;
}

.entry-button__arrow {
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.page-shell {
  min-height: 100vh;
  padding-top: var(--header-height);
  background:
    linear-gradient(180deg, rgba(120, 169, 183, 0.1), rgba(255, 255, 255, 0) 260px),
    var(--bg);
}

.page-main {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.form-panel {
  padding: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-title {
  margin: 14px 0 18px;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.35;
}

.page-lead {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1rem;
}

.notice {
  margin: 0 0 30px;
  padding: 16px 18px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 0.95rem;
}

.notice p {
  margin: 0;
}

.message {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 6px;
}

.message--error {
  color: #fff;
  background: rgba(216, 106, 106, 0.14);
  border: 1px solid rgba(216, 106, 106, 0.5);
}

.message--ok {
  color: var(--ok);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 224, 214, 0.35);
}

.message p {
  margin: 0;
}

.message p + p {
  margin-top: 10px;
}

.event-guide-required .form-actions {
  margin-top: 16px;
}

.saved-application-summary {
  display: grid;
  gap: 12px;
}

.saved-entry-shortcut {
  display: grid;
  gap: 14px;
  margin-bottom: 2px;
  padding: 0;
  background: transparent;
  border: 0;
}

.saved-entry-shortcut .secondary-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  color: #050505;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06) 48%),
    linear-gradient(135deg, #f5e6c8 0%, #c69c5e 49%, #edd09b 100%);
  border-color: #f1ddba;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(85, 54, 16, 0.18),
    0 12px 26px rgba(0, 0, 0, 0.22);
  font-weight: 700;
  text-align: center;
}

.saved-entry-shortcut .secondary-button:hover {
  color: #050505;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08) 48%),
    linear-gradient(135deg, #fff0cf 0%, #d8ad6b 50%, #f4dba8 100%);
  border-color: #fff0cf;
}

.saved-entry-clear-button {
  justify-self: start;
  min-height: 34px;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.88rem;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.saved-entry-clear-button:hover {
  color: var(--text);
}

.saved-entry-clear-message {
  margin-bottom: 2px;
}

.entry-form,
.application-form {
  display: grid;
  gap: 24px;
}

.form-section {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.form-section legend,
.check-group legend {
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.94rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.name-field {
  gap: 8px;
}

.name-inline {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.name-inline label {
  color: var(--soft);
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
}

.name-inline input:not([type="checkbox"]) {
  min-width: 0;
}

.field label {
  color: var(--soft);
  font-size: 0.94rem;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--text);
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  outline: none;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field select {
  appearance: auto;
}

.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--soft);
  box-shadow: 0 0 0 3px rgba(229, 224, 214, 0.12);
}

.check-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.check-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.check-option input {
  width: 20px;
  height: 20px;
  margin: 0.22em 0 0;
  accent-color: #d3b174;
}

.check-option__body {
  min-width: 0;
}

.check-option__label {
  color: var(--text);
}

.check-option__note,
.check-group__note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.check-group__note {
  margin: 0;
}

.field-error {
  color: var(--error);
  font-size: 0.86rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-button {
  min-width: 260px;
  padding: 14px 24px;
  cursor: pointer;
}

.secondary-button {
  min-width: 180px;
  padding: 11px 18px;
  background: transparent;
  font-size: 0.92rem;
}

.thanks-lines {
  display: grid;
  gap: 18px;
  margin: 0 0 30px;
  color: var(--soft);
  font-size: 1.04rem;
}

.thanks-lines p {
  margin: 0;
}

.local-footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 54px 20px;
  color: var(--muted);
  background: #000;
  border-top: 1px solid var(--line);
  text-align: center;
}

.local-footer img {
  margin-bottom: 6px;
}

.local-footer p {
  margin: 0;
}

.local-footer__name {
  color: var(--text);
  font-size: 1rem;
}

.local-footer__address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 0.94rem;
  line-height: 1.8;
}

.local-footer__hours {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.local-footer__address a,
.local-footer__link {
  color: var(--text);
  text-decoration: none;
}

.local-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.92rem;
}

.local-footer__address a:hover,
.local-footer__link:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media__image {
    transform: none;
    transition: opacity 1200ms ease-in-out;
  }

  .hero-media__image.is-active {
    opacity: 1;
    transform: none;
  }

  .primary-button,
  .entry-button,
  .submit-button,
  .outline-button,
  .secondary-button {
    transition: none;
  }
}

@media (max-width: 980px) {
  :root {
    --entry-bar-height: 138px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-layout,
  .stay-layout,
  .notice-layout {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    grid-template-columns: 1fr;
  }

  .entry-bar__inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 60px;
    --entry-bar-height: 210px;
  }

  .site-header {
    padding: 15px 18px;
  }

  .site-header__logo img {
    height: 24px;
  }

  .hero-section {
    height: calc(100svh - var(--header-height) - var(--entry-bar-height) - 20px);
    min-height: 560px;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding: 64px 0 42px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .experience-actions,
  .application-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .outline-button,
  .secondary-button,
  .submit-button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .summary-section,
  .experience-section,
  .gallery-section,
  .movie-section,
  .stay-section,
  .notice-section,
  .application-section {
    padding: 54px 0;
  }

  .section-heading h2,
  .experience-copy h2,
  .stay-layout h2,
  .application-panel h2 {
    font-size: 1.72rem;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid div {
    min-height: 0;
  }

  .gallery-track {
    grid-auto-columns: 88%;
  }

  .carousel-button {
    display: none;
  }

  .outline-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-day {
    padding: 22px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .entry-bar {
    padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  }

  .entry-bar__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-bar__title {
    font-size: 1.08rem;
  }

  .entry-bar__description {
    font-size: 0.84rem;
  }

  .entry-button {
    width: 100%;
    min-height: 56px;
  }

  .page-main {
    width: min(100% - 28px, 860px);
    padding: 40px 0 64px;
  }

  .form-panel {
    padding: 28px 20px;
  }

  .page-title {
    font-size: 1.62rem;
  }

  .form-section {
    padding: 18px 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .name-inline {
    grid-template-columns: max-content minmax(44px, 1fr) max-content minmax(44px, 1fr);
    gap: 6px;
  }

  .name-inline input:not([type="checkbox"]) {
    padding-right: 10px;
    padding-left: 10px;
  }
}
