:root {
  --paper: #f1f0ea;
  --land: #e7e6de;
  --ink: #292826;
  --muted: #716f69;
  --road: #aaa79f;
  --road-light: #cbc8c0;
  --route: #3f7f5a;
  --route-dark: #2f6144;
  --page: min(1180px, calc(100vw - 48px));
  --serif: Finlandica, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Finlandica, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

html[lang="ja"] body,
html[lang="ja"] h1 {
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  line-break: strict;
  word-break: normal;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgb(41 40 38 / 4%) 0) 0 0 / 80px 100%,
    var(--paper);
}

.teaser {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: var(--page);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  align-items: center;
}

.site-header {
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--road-light);
}

.brand-mark {
  display: block;
  width: 86px;
  height: 51px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.language-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--route);
}

.teaser-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(48px, 8vh, 108px);
}

.copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.5vw, 6.35rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

html[lang="ja"] h1 {
  max-width: 10em;
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.copy > p:not(.status) {
  max-width: 40rem;
  margin: clamp(28px, 4vw, 42px) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.65;
}

html[lang="ja"] .copy > p:not(.status) {
  line-height: 1.85;
}

.status {
  max-width: 25rem;
  margin: clamp(30px, 5vw, 50px) 0 0;
  padding-top: 18px;
  border-top: 4px solid var(--route);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.route-drawing {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 430px;
}

.route-drawing::before {
  position: absolute;
  inset: 9% 5% 7% 9%;
  z-index: -1;
  border: 1px solid var(--road-light);
  border-radius: 47% 53% 55% 45% / 52% 42% 58% 48%;
  background: color-mix(in srgb, var(--land) 78%, transparent);
  content: "";
  transform: rotate(-7deg);
}

.route-drawing svg,
.route-drawing img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 680px;
  overflow: visible;
}

.contour {
  fill: none;
  stroke: var(--road-light);
  stroke-width: 1.5;
}

.contour-two {
  stroke: var(--road);
  stroke-opacity: 0.72;
}

.contour-three {
  stroke-opacity: 0.72;
  stroke-dasharray: 4 9;
}

.route-shadow,
.route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: var(--paper);
  stroke-width: 13;
}

.route {
  stroke: var(--route);
  stroke-width: 5;
}

.marker circle {
  fill: var(--paper);
  stroke: var(--route);
  stroke-width: 4;
}

.marker .marker-core,
.marker-start .marker-core {
  fill: var(--route);
  stroke: none;
}

.marker-finish circle {
  fill: var(--route-dark);
}

.marker-finish path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "copyright logo top";
  gap: 32px;
  padding: 54px 0 70px;
  border-top: 1px solid var(--road-light);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-copyright {
  grid-area: copyright;
  margin: 0;
  justify-self: start;
}

.footer-top {
  grid-area: top;
  justify-self: end;
}

.footer-logo {
  grid-area: logo;
  display: block;
  width: clamp(160px, 16vw, 210px);
  height: auto;
  justify-self: center;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 40px, 680px);
  }

  .teaser-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 54px 36px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.1rem, 13vw, 5.2rem);
  }

  html[lang="ja"] h1 {
    font-size: clamp(2.5rem, 9.5vw, 4.2rem);
  }

  .route-drawing {
    min-height: 280px;
    margin-top: -30px;
  }

  .route-drawing svg,
  .route-drawing img {
    max-height: 420px;
  }

  .route-drawing::before {
    inset: 3% 7% 4% 5%;
  }
}

@media (max-width: 480px) {
  :root {
    --page: calc(100% - 30px);
  }

  body {
    background-size: 64px 100%;
  }

  .brand-mark {
    width: 76px;
    height: 45px;
  }

  .language-nav {
    gap: 7px;
  }

  .language-nav a {
    font-size: 0.75rem;
  }

  .teaser-content {
    padding-top: 42px;
  }

  .copy > p:not(.status) {
    line-height: 1.58;
  }

  .route-drawing {
    min-height: 235px;
    margin-top: -14px;
  }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "logo logo logo"
      "copyright . top";
    gap: 28px 14px;
  }

  .footer-logo {
    width: min(180px, 56vw);
  }

  .footer-copyright {
    max-width: 12rem;
    font-size: 0.86rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #514f4a;
    --road-light: #96938b;
    --route: #28643f;
  }
}

@media print {
  body {
    background: var(--paper);
  }

  .teaser {
    min-height: auto;
  }
}
