:root {
  color-scheme: dark;
  --background: #191b1a;
  --text: #e5e2d9;
  --muted: #a8aaa2;
  --line: #62695f;
  --focus: #d3d9bb;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, textarea { font: inherit; color: inherit; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; border-radius: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .35em; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}
h1:focus, .placed-step:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.core { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.core:not([data-scene="entrance"]) > .masthead,
.core:not([data-scene="entrance"]) > .site-footer { visibility: hidden; }
.masthead {
  padding: max(30px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
}
.wordmark { display: inline-block; font-size: .75rem; line-height: 24px; letter-spacing: .28em; color: var(--muted); }
#experience { flex: 1; display: grid; align-items: center; padding: 60px 28px 80px; }
.scene { position: relative; width: min(100%, 368px); margin: 0 auto; }
h1 { font-size: clamp(1.45rem, 5.6vw, 1.75rem); line-height: 1.85; font-weight: 400; letter-spacing: .065em; margin: 0 0 34px; overflow-wrap: anywhere; }
.entrance h1 { font-size: clamp(1.75rem, 7vw, 2rem); margin-bottom: 58px; }
.phrase { display: block; }
.place-button {
  min-height: 48px; padding: 10px 3px 11px; font-size: .9375rem; letter-spacing: .12em;
  border-bottom: 1px solid var(--line);
}
.choices { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.choices button { min-height: 48px; padding: 12px 3px; text-align: left; font-size: 1rem; line-height: 1.5; letter-spacing: .065em; }
.back { position: absolute; top: -55px; left: -3px; min-height: 44px; padding: 10px 3px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.skip { min-height: 44px; padding: 10px 3px; margin-top: 24px; font-size: .8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: .4em; text-decoration-color: var(--line); }
textarea {
  display: block; width: 100%; min-height: 120px; max-height: 35vh; padding: 14px 4px;
  background: transparent; border: 0; border-bottom: 1px solid #879080; border-radius: 0;
  font-size: 1rem; line-height: 1.9; letter-spacing: .045em; resize: vertical;
}
textarea::placeholder { color: var(--muted); opacity: 1; }
#one-step h1 { margin-bottom: 44px; }
#place-step { margin-top: 48px; }
.small-note { color: var(--muted); font-size: .75rem; line-height: 1.9; margin: 16px 0 28px; }
.ending { padding-top: 28px; padding-bottom: 56px; }
.ending h1 { font-size: clamp(1.25rem, 5vw, 1.5rem); margin: 0; min-height: 2em; line-height: 2; letter-spacing: .045em; }
.ending-followup { min-height: 2em; margin: 32px 0 0; font-size: .875rem; line-height: 2; letter-spacing: .025em; color: var(--muted); overflow-wrap: anywhere; }
.ending-followup:empty { visibility: hidden; }
.quiet-return-slot { min-height: 44px; margin-top: 72px; }
.quiet-return { display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; font-size: .75rem; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.placed-step { font-size: 1.0625rem; line-height: 2; letter-spacing: .06em; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 48px; animation: settle 650ms ease-out both; }
@keyframes settle { from { transform: translateY(-4px); } to { transform: translateY(0); } }
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px;
  padding: 0 20px max(18px, env(safe-area-inset-bottom));
  color: var(--muted);
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .6875rem; letter-spacing: .025em; text-decoration: none; }
.document { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.document .wordmark { text-decoration: none; min-height: 44px; }
.prose { width: min(100%, 600px); padding: 60px 28px 80px; margin: 0 auto; flex: 1; }
.prose h1 { font-size: 1.5rem; margin-bottom: 44px; }
.prose h2 { font-weight: 400; font-size: 1rem; line-height: 1.9; margin: 40px 0 16px; }
.prose p { font-size: .9375rem; line-height: 2.15; margin: 0 0 24px; overflow-wrap: anywhere; }
.prose .statement { font-size: 1.1875rem; margin-bottom: 34px; }
.prose .credit { font-size: .8125rem; color: var(--muted); margin-top: 48px; }
.return { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; font-size: .8125rem; color: var(--muted); }
@media (hover: hover) {
  button:hover, a:hover { color: #fffef5; }
  .place-button:hover { border-color: var(--text); }
}
@media (min-width: 768px) {
  .masthead { padding: 40px 48px 0; }
  #experience { padding-top: 80px; padding-bottom: 100px; }
  .site-footer { padding-bottom: 24px; }
}
@media (max-height: 620px) {
  #experience { padding-top: 65px; padding-bottom: 42px; }
  .entrance h1 { margin-bottom: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .place-button, textarea { border-color: ButtonText; }
}
