:root {
  color-scheme: dark;
  --bg: #ef3000;
  --fg: #050505;
}

@font-face {
  font-family: "Smiley Sans";
  src: url("/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Taipei 24";
  src: url("/fonts/Taipei24.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Chill K Sans";
  src: url("/fonts/%E5%AF%92%E8%9D%89%E5%AE%BD%E9%BB%91%E4%BD%93Chill%20K%20Sans.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Togalite";
  src: url("/fonts/%E3%83%88%E3%82%AC%E3%83%AA%E3%83%86Togalite-bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Futo Go B101";
  src: url("/fonts/A-OTF%20%E5%A4%AA%E3%82%B4B101%20Pr6N-A-OTF%20FutoGoB101Pr6N.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/fonts/NotoSansSC-VariableFont_wght.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/NotoSerifSC-VariableFont_wght.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  transition: background-color 420ms ease, color 420ms ease;
}

button,
a {
  color: inherit;
  font: inherit;
}

.site-header,
.site-footer {
  position: fixed;
  left: 0;
  width: 100%;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
  pointer-events: none;
}

.site-header {
  top: 0;
}

.site-footer {
  bottom: 0;
  align-items: flex-end;
}

.brand-block,
.menu-button,
.read-link,
.spin-button {
  pointer-events: auto;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-index {
  font-weight: 400;
}

.menu-button,
.spin-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.menu-button:hover,
.read-link:hover,
.spin-button:hover {
  opacity: 0.82;
}

.menu-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--fg);
  margin-left: 8px;
  vertical-align: middle;
  transition: background-color 420ms ease;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 90%, black 10%);
  color: var(--fg);
  transition: opacity 260ms ease, visibility 260ms ease, background-color 420ms ease, color 420ms ease;
  visibility: hidden;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.menu-overlay__inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 30px;
}

.menu-close-button {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.menu-close-button:hover {
  opacity: 0.82;
}

.menu-note {
  position: absolute;
  width: min(25rem, 24vw);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.menu-note p {
  margin: 0;
}

.menu-note--top-left {
  top: 9rem;
  left: 30px;
}

.menu-note--top-right {
  top: 9rem;
  right: 30px;
  text-align: right;
}

.menu-note--bottom-left {
  left: 30px;
  bottom: 6.75rem;
}

.menu-note--bottom-right {
  right: 30px;
  bottom: 6.75rem;
  text-align: right;
}

.menu-home-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.menu-home-link__the,
.menu-home-link__stamp {
  display: block;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0;
}

.menu-home-link__the {
  font-size: clamp(5rem, 12vw, 12rem);
}

.menu-home-link__stamp {
  font-size: clamp(8rem, 20vw, 20rem);
}

.read-link {
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.read-arrow {
  margin-left: 12px;
  font-size: 28px;
  line-height: 0;
  vertical-align: middle;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-stage {
  display: block;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  isolation: isolate;
}

.hero-word {
  fill: var(--fg);
  letter-spacing: 0;
  dominant-baseline: hanging;
  text-rendering: geometricPrecision;
  transition: fill 420ms ease, opacity 220ms ease;
}

.word-overlap {
  fill: var(--bg);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: default;
}

body.is-spinning .hero-word {
  opacity: 0.88;
}

body.is-spinning .site-header,
body.is-spinning .site-footer {
  opacity: 0.92;
}

body.is-menu-open .hero,
body.is-menu-open .site-footer {
  opacity: 0.18;
  transition: opacity 220ms ease;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    padding: 22px 20px;
  }

  .hero {
    overflow: hidden;
  }

  .menu-overlay__inner {
    padding: 22px 20px;
  }

  .menu-close-button {
    top: 22px;
    right: 20px;
  }

  .menu-note {
    position: static;
    width: auto;
    max-width: 32rem;
    text-align: left;
  }

  .menu-note--top-left,
  .menu-note--top-right,
  .menu-note--bottom-left,
  .menu-note--bottom-right {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .menu-overlay__inner {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
  }

  .menu-home-link {
    position: relative;
    inset: auto;
    align-self: center;
    min-height: 40vh;
  }

  .menu-note--top-right,
  .menu-note--bottom-right {
    text-align: left;
  }

  .menu-home-link__the {
    font-size: clamp(4rem, 13vw, 6rem);
  }

  .menu-home-link__stamp {
    font-size: clamp(5.5rem, 19vw, 8rem);
  }
}
