:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --ink: #202d23;
  --muted: #535d51;
  --green: #28513b;
  --line: #d9ded2;
  --tint: #edf1e7;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a65b39; outline-offset: 4px; }

.shell { width: min(100% - 32px, 1100px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .5rem 1rem; background: white; }
.skip-link:focus { top: .5rem; }
.site-bar { border-bottom: 1px solid var(--line); }
.bar-inner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .share { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.brand { font-size: .87rem; font-weight: 800; letter-spacing: .11em; }
.brand b { color: var(--green); font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--green); color: #fffaf0; font-size: 1rem; }
.share { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 13px; color: var(--green); cursor: pointer; font-size: .83rem; font-weight: 700; }
.share:hover { background: var(--tint); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 350px;
  margin-block: 16px 27px;
  overflow: hidden;
  border-radius: 20px;
  color: #fffbef;
  background: #23362b;
}
.hero::before, .hero::after { position: absolute; inset: 0; content: ""; z-index: -1; }
.hero::before { background: url("assets/nagoya-castle.webp") 68% center / cover no-repeat; }
.hero::after { background: linear-gradient(0deg, #101e15 1%, #14241ad9 25%, #14241a68 57%, #18231a06 100%); }
.hero-copy { width: 100%; padding: 25px 23px 32px; }
.hero-date { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #f3ddae; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.hero h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); line-height: 1.08; letter-spacing: -.075em; font-weight: 800; }
.hero-copy p { margin-top: 12px; color: #f5f1e3; font-size: .88rem; }
.hero-action { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 19px; padding: 0 14px; background: #fbf8ec; color: #25392a; border-radius: 9px; font-weight: 750; font-size: .86rem; }
.hero-action:hover { background: #f0e4c7; }
.hero-caption { position: absolute; right: 12px; bottom: 8px; color: #eee9d6; font-size: .66rem; }

.overview { padding-block: 4px 25px; scroll-margin-top: 1rem; }
.section-heading { margin-bottom: 15px; }
.section-heading h2, .transport h2 { font-size: 1.62rem; letter-spacing: -.055em; }
.section-heading p { margin-top: 3px; color: var(--muted); font-size: .85rem; }
.date-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.date-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 3px;
  min-height: 128px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.date-card:hover { border-color: var(--green); }
.date-card[aria-current="date"] { background: var(--tint); border-color: #9daf9d; }
.card-date { color: var(--green); font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.card-arrow { color: var(--green); font-size: .9rem; line-height: 1.3; }
.card-title { grid-column: 1 / -1; font-size: 1rem; font-weight: 800; letter-spacing: -.04em; }
.card-summary { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }

.details { margin-top: 5px; }
.day-switch {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 5px;
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.switch-link { min-height: 44px; display: grid; place-items: center; padding-inline: 2px; border-radius: 8px; white-space: nowrap; font-size: clamp(.7rem, 2.9vw, .86rem); font-weight: 750; color: var(--green); }
.switch-link:hover { background: var(--tint); }
.switch-link[aria-current="date"] { background: var(--green); color: white; }
.day-article { scroll-margin-top: 68px; }
.day-heading { padding: 23px 0 17px; }
.day-date { color: var(--green); font-weight: 800; font-size: .86rem; }
.day-title { margin: 3px 0 6px; font-size: clamp(1.65rem, 6vw, 2.35rem); line-height: 1.22; letter-spacing: -.062em; word-break: keep-all; }
.day-description { color: var(--muted); font-size: .9rem; line-height: 1.63; overflow-wrap: anywhere; }
.detail-grid { display: grid; gap: 22px; align-items: start; }

.route-panel { padding: 15px; border: 1px solid #d0dacf; border-radius: 15px; background: var(--tint); }
.route-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.route-heading h3, .timeline h3 { font-size: 1.16rem; letter-spacing: -.04em; }
.route-provider { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.route-list { display: grid; gap: 7px; }
.route-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--green); font-size: .81rem; font-weight: 750; line-height: 1.45; }
.route-link:hover, .place-link:hover { border-color: var(--green); }
.link-label { word-break: keep-all; overflow-wrap: anywhere; }
.outward-arrow { font-weight: 800; }
.mode { padding: 3px 6px; border-radius: 5px; white-space: nowrap; background: var(--tint); color: var(--green); font-size: .67rem; }

.timeline { min-width: 0; }
.timeline-title { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 3.65rem minmax(0, 1fr); gap: 9px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.event-time { color: var(--green); font-size: .84rem; font-weight: 800; font-variant-numeric: tabular-nums; padding-top: .05em; overflow-wrap: anywhere; }
.event h4, .day-note h4 { font-size: .99rem; line-height: 1.45; letter-spacing: -.035em; }
.event p, .day-note p { margin-top: 5px; color: var(--muted); font-size: .87rem; }
.place-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.place-link { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--green); font-size: .77rem; font-weight: 700; line-height: 1.35; }
.day-note { margin-top: 12px; padding: 12px; border-left: 3px solid #a2b09d; border-radius: 0 8px 8px 0; background: #eff0e9; }
.paging { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.page-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--green); font-size: .86rem; font-weight: 750; }
.page-link:hover { border-color: var(--green); }
.paging .next { margin-left: auto; }

.transport { margin-top: 36px; padding: 20px 17px; background: var(--tint); border: 1px solid var(--line); border-radius: 16px; }
.transport-grid { display: grid; gap: 15px; margin-top: 12px; }
.transport h3 { font-size: 1rem; }
.transport p { margin-top: 4px; color: var(--muted); font-size: .87rem; }
.transport a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); text-decoration: underline; text-underline-offset: .15em; font-size: .84rem; font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 23px; min-height: 65px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer a { display: flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 750; }
.notification { position: fixed; inset: auto 1rem max(1rem, env(safe-area-inset-bottom)); z-index: 8; width: fit-content; max-width: calc(100% - 2rem); margin-inline: auto; padding: 9px 14px; border-radius: 9px; background: var(--green); color: white; font-size: .86rem; }
.notification:empty { padding: 0; }

@media (min-width: 680px) {
  .shell { width: min(100% - 60px, 1100px); }
  .bar-inner { min-height: 70px; }
  .hero { align-items: center; min-height: 440px; margin-block: 25px 31px; border-radius: 24px; }
  .hero::before { background-position: center 53%; }
  .hero::after { background: linear-gradient(90deg, #122319f5 0%, #15261bcf 26%, #15261b45 62%, #15261b0a 100%); }
  .hero-copy { padding: 40px clamp(32px, 6.5vw, 70px); }
  .hero h1 { font-size: clamp(3.6rem, 7vw, 5.5rem); }
  .hero-date { font-size: .93rem; }
  .hero-copy p { font-size: 1rem; }
  .hero-caption { right: 20px; bottom: 12px; }
  .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .section-heading h2 { font-size: 1.95rem; }
  .date-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .date-card { min-height: 126px; padding: 14px; }
  .card-title { font-size: 1.12rem; }
  .card-summary { font-size: .83rem; }
  .day-switch { grid-template-columns: repeat(4, minmax(0, 120px)); padding-inline: 0; }
  .day-heading { padding-block: 24px 20px; }
  .detail-grid { grid-template-columns: minmax(215px, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 44px); }
  .route-panel { padding: 17px; }
  .event { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 14px; }
  .event h4, .day-note h4 { font-size: 1.05rem; }
  .event p, .day-note p { font-size: .92rem; }
  .transport { padding: 22px 24px; }
  .transport-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
