:root {
  --ink: #26332f;
  --deep-green: #173f36;
  --moss: #50765d;
  --cta: #215b4c;
  --cta-dark: #103d34;
  --cta-light: #d9bf83;
  --paper: #f4f3ed;
  --warm: #d5c8b4;
  --white: #fff;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #102c27;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(105, 145, 111, .28), transparent 30rem),
    #102c27;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, 620px);
  height: 58px;
  padding: max(8px, env(safe-area-inset-top)) 14px 8px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, rgba(10, 35, 29, .84), rgba(10, 35, 29, .48));
  color: var(--white);
  backdrop-filter: blur(13px);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  font-size: 10px;
  letter-spacing: .17em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  font-size: 16px;
}

.header-cta {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(232, 209, 153, .85);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  box-shadow:
    0 5px 18px rgba(5, 38, 31, .48),
    inset 0 1px 0 rgba(255, 255, 255, .24);
  color: var(--white);
  font-size: 11px;
  letter-spacing: .08em;
  text-decoration: none;
}

main,
footer {
  width: min(100%, 620px);
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, .28);
}

.story-panel {
  position: relative;
  line-height: 0;
  background: var(--paper);
}

.story-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 21, 17, .16), transparent 18%, transparent 80%, rgba(4, 21, 17, .3));
  content: "";
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  color: white;
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: .24em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 42px;
  margin-right: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, .4);
}

.scroll-cue span::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  animation: scroll-line 2s ease-in-out infinite;
  background: white;
  content: "";
}

.interlude {
  padding: 72px 28px;
  text-align: center;
  background:
    linear-gradient(rgba(247, 246, 240, .92), rgba(247, 246, 240, .92)),
    url("assets/2.png") center / cover;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--moss);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.interlude > p:nth-child(2) {
  margin: 0;
  font-size: clamp(20px, 5.8vw, 30px);
  letter-spacing: .13em;
  line-height: 2;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .1em;
  text-decoration: none;
}

.text-link span {
  margin-left: 8px;
}

.closing {
  position: relative;
  padding: 92px 28px 110px;
  text-align: center;
  background: #eff1e9;
}

.closing h1 {
  margin: 0;
  color: var(--deep-green);
  font-size: clamp(27px, 8vw, 42px);
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.8;
}

.closing > p:not(.eyebrow) {
  margin: 28px 0;
  font-size: 13px;
  letter-spacing: .07em;
  line-height: 2.1;
}

.primary-button {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100%;
  padding: 17px 20px;
  align-items: center;
  flex-direction: column;
  border: 1px solid rgba(225, 201, 144, .82);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  box-shadow:
    0 13px 30px rgba(8, 54, 44, .34),
    0 0 0 4px rgba(255, 255, 255, .42),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  color: white;
  letter-spacing: .12em;
  text-decoration: none;
}

.primary-button span {
  font-size: 16px;
  font-weight: 600;
}

.primary-button small {
  margin-top: 5px;
  opacity: .9;
  font-size: 9px;
  letter-spacing: .06em;
  line-height: 1.6;
}

footer {
  padding: 38px 20px 115px;
  background: #102c27;
  color: rgba(255, 255, 255, .72);
  text-align: center;
}

footer p {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: .26em;
}

footer small {
  font-size: 9px;
  letter-spacing: .14em;
}

.sticky-bar {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 50%;
  width: min(100%, 620px);
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(239, 239, 230, .94);
  box-shadow: 0 -8px 30px rgba(8, 44, 36, .2);
  backdrop-filter: blur(12px);
}

.sticky-bar a {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100%;
  min-height: 52px;
  padding: 9px 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(225, 201, 144, .9);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  box-shadow:
    0 7px 22px rgba(8, 54, 44, .38),
    inset 0 1px 0 rgba(255, 255, 255, .24);
  color: white;
  letter-spacing: .1em;
  text-decoration: none;
}

.sticky-bar span {
  font-size: 14px;
  font-weight: 600;
}

.sticky-bar small {
  opacity: .9;
  font-size: 9px;
}

.header-cta,
.primary-button,
.sticky-bar a {
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.header-cta::after,
.primary-button::after,
.sticky-bar a::after {
  position: absolute;
  top: -80%;
  left: -45%;
  width: 30%;
  height: 260%;
  transform: rotate(22deg);
  animation: cta-shine 4.5s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent);
  content: "";
  pointer-events: none;
}

.header-cta:hover,
.primary-button:hover,
.sticky-bar a:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes scroll-line {
  0% { transform: translateY(0); }
  100% { transform: translateY(200%); }
}

@keyframes cta-shine {
  0%, 58% { left: -45%; opacity: 0; }
  64% { opacity: 1; }
  82%, 100% { left: 120%; opacity: 0; }
}

@media (min-width: 621px) {
  body {
    padding-block: 24px;
  }

  main {
    border-radius: 6px 6px 0 0;
  }

  footer {
    border-radius: 0 0 6px 6px;
  }

  .site-header {
    top: 24px;
    border-radius: 6px 6px 0 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header-cta::after,
  .primary-button::after,
  .sticky-bar a::after {
    animation: none;
  }
}
