@font-face {
  font-family: "Reenie Beanie";
  src: url("/fonts/reenie-beanie.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "WenKai";
  src: url("/fonts/wenkai.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #42463f;
  --muted: #73776d;
  --pencil: #a6b292;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "WenKai", "Kaiti SC", "STKaiti", serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page { width: min(680px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 32px; }
.hero { position: relative; display: grid; place-items: center; padding: 0 0 36px; }
.identity { text-align: center; }
.greeting { font-family: "Reenie Beanie", cursive; font-size: 30px; line-height: 1; margin: 0 0 8px; }
.name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  font-family: "Reenie Beanie", "Baskerville", serif;
  font-size: 106px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .95;
}
.name-mask { display: block; overflow: hidden; padding: 7px 6px 10px; margin: -7px -6px -10px; }
.name-core { display: block; }
.is-preparing .identity, .is-preparing .letter { visibility: hidden; }
.period { width: .045em; height: .045em; border-radius: 50%; background: var(--ink); margin-left: .06em; transform: translateY(-.025em); }
.domain { font-family: "Reenie Beanie", cursive; font-size: 31px; line-height: 1.2; margin: 16px 0 0; }
.trace { position: absolute; border-radius: 8px; background: var(--ink); opacity: 0; pointer-events: none; }
.note { font-size: 20px; line-height: 1.85; }
.note p { margin: 0; }
.note p + p { margin-top: 16px; }
.pencil { position: relative; white-space: nowrap; }
.pencil::after { content: ""; position: absolute; bottom: -3px; left: -1px; right: -1px; height: 4px; border-bottom: 1px solid var(--pencil); border-radius: 50%; transform: rotate(-1.5deg); }
.education { margin-top: 40px; }
.experience { margin-top: 28px; }
.section-label { font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.entry { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; }
.entry + .entry { margin-top: 22px; }
.entry h3 { margin: 0; font-size: 21px; line-height: 1.45; font-weight: 400; }
.detail { margin: 3px 0 0; font-size: 16px; line-height: 1.6; }
.date { margin: 0; flex-shrink: 0; font-size: 13px; line-height: 1.8; color: var(--muted); font-family: "WenKai", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.footer { margin-top: 40px; padding-top: 12px; border-top: 1px solid #e5e8df; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--ink); font-size: 15px; text-decoration-color: #d2d7cb; text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.footer-meta > span { font-family: "Reenie Beanie", cursive; font-size: 20px; }
.replay { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 56px; margin-right: -4px; padding: 10px 4px; border: 0; background: transparent; color: var(--muted); font-family: inherit; font-size: 12px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color 160ms ease, transform 120ms var(--ease-out); }
.replay[hidden] { display: none; }
.replay:active { transform: scale(.96); }
.replay:focus-visible, .skip-link:focus-visible, .footer-links a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 8px 12px; color: var(--ink); background: var(--paper); font-size: 16px; transform: translateY(-200%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }
@media (hover: hover) and (pointer: fine) { .replay:hover { color: var(--ink); } .footer-links a:hover { text-decoration-color: var(--ink); } }
.sakura-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.sakura-blossom { position: absolute; top: 0; left: 0; width: 24px; height: 24px; opacity: 0; }
.sakura-blossom i { position: absolute; top: 2px; left: 8px; width: 8px; height: 10px; background: #f0c4d1; border: 1px solid #dcabbc; border-radius: 65% 65% 55% 55%; clip-path: polygon(0 0, 40% 0, 50% 17%, 60% 0, 100% 0, 100% 100%, 0 100%); transform-origin: 50% 100%; transform: rotate(calc(var(--petal) * 72deg)); }
.sakura-blossom::after { content: ""; position: absolute; left: 10px; top: 10px; width: 4px; height: 4px; background: #c8ad8c; border-radius: 50%; }
.sakura-petal { position: absolute; top: 0; left: 0; width: 7px; height: 10px; background: #eab8c9; border-radius: 65% 65% 55% 55%; clip-path: polygon(0 0, 40% 0, 50% 17%, 60% 0, 100% 0, 100% 100%, 0 100%); }
@media (min-width: 1300px) and (min-height: 900px) { .page { padding-top: 80px; } }
@media (max-width: 650px) {
  .page { width: calc(100% - 48px); padding-top: 44px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .hero { padding-bottom: 28px; }
  .greeting { font-size: 27px; }
  .name { font-size: clamp(68px, 19vw, 94px); }
  .domain { font-size: 28px; margin-top: 14px; }
  .note { font-size: 18px; line-height: 1.9; }
  .education { margin-top: 32px; }
  .experience { margin-top: 28px; }
  .entry { display: block; }
  .date { margin-top: 6px; }
  .entry + .entry { margin-top: 24px; }
  .footer { margin-top: 32px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .replay { display: none; transition: none; } .replay:active { transform: none; } .sakura-layer { display: none; } }
@media (hover: none), (pointer: coarse) { .sakura-layer { display: none; } }
