/* 綾波柚月 · yuzuki.ayanami
   one page, one card. flat black, pink, white.
   no gradients, no shadows, no monospace, no external assets. */

@font-face {
  font-family: "InterLocal";
  src: url("fonts-inter.woff2") format("woff2-variations"),
       url("fonts-inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #070608;
  --card: #0c0a0e;
  --line: #231d23;
  --pink: #ff4d97;
  --pink-soft: #ff9ec7;
  --white: #f8f6f7;
  --grey: #9a9098;
  --grey-dim: #6a6167;

  --sans: "InterLocal", "Inter", system-ui, -apple-system, "Segoe UI",
          "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* , *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1rem;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.9rem 1.9rem 1.6rem;
  text-align: center;
  animation: card-in .6s var(--ease) both;
}

.avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: block;
  margin: 0 auto .65rem;
  object-fit: cover;
  border: 1px solid #2e2530;
}

.card p.kana {
  display: inline-block;
  align-self: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3em;
  margin: 0 0 .3rem 0;
  line-height: 1.25;
  color: var(--pink);
  text-align: center;
}

h1 {
  font-size: clamp(1.42rem, 4.6vw, 1.72rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 .35rem;
}

.heading {
  font-size: .9rem;
  font-weight: 560;
  color: var(--pink-soft);
  letter-spacing: -0.012em;
  margin: 0 0 1.15rem;
}

.card p {
  color: var(--grey);
  font-size: .9rem;
  max-width: 26rem;
  margin: 0 auto .8rem;
  text-align: left;
}

.card p b { color: var(--white); font-weight: 650; }

.card p.jp {
  text-align: center;
  color: var(--pink-soft);
  font-weight: 500;
  margin-bottom: 1rem;
}

.romaji {
  display: block;
  color: var(--grey-dim);
  font-size: .76rem;
  font-weight: 450;
  letter-spacing: .04em;
  margin-top: .14rem;
}

.card p.facts,
.card p.clock { text-align: center; }

.card p.facts {
  display: block;
  font-size: .74rem;
  font-weight: 500;
  color: var(--grey-dim);
  margin: 0 auto 1rem;
  max-width: none;
}

.card p.clock {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--grey-dim);
  margin: .95rem auto;
  max-width: none;
}

.icons { display: flex; justify-content: center; align-items: center; gap: .55rem; margin: 0; }

.icons a {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--grey);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.icons a svg { width: .95rem; height: .95rem; display: block; fill: currentColor; }

.icons a:hover { color: #fff; border-color: var(--pink); transform: translateY(-1px); }

/* ---------- sakura branches ---------- */

.branch {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .42;
}

.branch.tl { top: -4%; left: -10%; width: min(52vw, 470px); transform: rotate(6deg); animation: sway 16s var(--ease) infinite alternate; }
.branch.br { bottom: -6%; right: -12%; width: min(42vw, 380px); transform: scaleX(-1) rotate(4deg); animation: sway 20s var(--ease) infinite alternate-reverse; }

@keyframes sway { from { translate: 0 0; } to { translate: 0 7px; } }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { .card, .branch { animation: none !important; } }

::selection { background: var(--pink); color: #140d11; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ---------- responsive ---------- */

/* short viewports: stop centring so nothing is cut off above the fold */
@media (max-height: 780px) {
  body { align-items: flex-start; padding-top: 1.4rem; padding-bottom: 1.6rem; }
}

@media (max-width: 560px) {
  body { padding: 1.1rem .85rem; }
  .card { padding: 1.5rem 1.2rem 1.3rem; max-width: none; }
  .avatar { width: 4.3rem; height: 4.3rem; margin-bottom: .55rem; }
  h1 { font-size: 1.5rem; }
  .heading { font-size: .86rem; margin-bottom: 1rem; }
  .card p { font-size: .88rem; }
  .card p.facts { font-size: .7rem; }
  .card p.clock { font-size: .68rem; margin: .85rem auto; }
  .icons a { width: 2.1rem; height: 2.1rem; }
  .branch.tl { width: 74vw; left: -16%; opacity: .3; }
  .branch.br { width: 58vw; right: -20%; opacity: .26; }
}

/* ---------- square card, full copy kept ---------- */



@media (min-width: 720px) {
  .card {
    /* plain values first, for engines that drop min() */
    width: 32rem;
    height: 32rem;
    /* then the responsive square */
    width: min(32rem, 84vw, 80vh);
    height: min(32rem, 84vw, 80vh);
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 1.6rem;
    overflow: hidden;
  }
  .avatar { width: 5.8rem; height: 5.8rem; margin-bottom: .5rem; }
  h1 { font-size: 1.5rem; margin-bottom: .72rem; }
  .heading { font-size: .86rem; }
  .card p { max-width: 23rem; font-size: .84rem; line-height: 1.5; margin-bottom: .48rem; }
  .card p.kana { font-size: .7rem; margin-bottom: .25rem; }
  .card p.jp { font-size: .84rem; margin-bottom: .5rem; }
  .romaji { font-size: .7rem; }
  .card p.facts { font-size: .68rem; margin-bottom: .46rem; }
  .card p.clock { font-size: .62rem; margin: .48rem auto; }
  .icons { gap: .5rem; }
  .icons a { width: 2rem; height: 2rem; }
  .icons a svg { width: .88rem; height: .88rem; }
}

/* explicit sizes: nothing scales itself down any more */
.card{width:100%;max-width:37rem;padding:12px 20px}
.avatar{width:92px;height:92px;margin:0 auto 8px}
.card p.kana{align-self:center;font-size:18px;font-weight:700;letter-spacing:.28em;line-height:1.2;margin:0 0 5px;color:#d17ea3}
h1{font-size:18px;font-weight:780;letter-spacing:-.01em;line-height:1.2;margin:0 0 10px}
.card p{font-size:.85rem;line-height:1.6;width:400px;max-width:100%;margin:0 auto 8px}
.card p.jp{font-size:.85rem;width:400px;margin:0 auto 9px}
.card p.facts{font-size:.75rem;margin:0 auto 9px}
.card p.clock{font-size:.72rem;margin:9px auto}
.icons{gap:8px}
.icons a{width:36px;height:36px}
.icons a svg{width:15px;height:15px}
@media (min-width:720px){
  .card{width:37rem;height:37rem;max-width:none;width:min(37rem,92vw,88vh);height:min(37rem,92vw,88vh);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
}


/* short windows: keep the square, scale the whole card instead of stretching it */

@media (max-width:700px){
  body{padding:10px}
  .card{max-width:94vw;padding:3.5vw 4vw}
  .avatar{width:24vw;height:24vw;margin:0 auto 2.4vw}
  .card p.kana{font-size:4.4vw;margin-bottom:1.4vw}
  h1{font-size:4.4vw;margin-bottom:2.6vw}
  .card p{font-size:3.3vw;line-height:1.6;width:84vw;max-width:100%;margin:0 auto 2.4vw}
  .card p.jp{font-size:3.3vw;width:84vw;margin:0 auto 2.6vw}
  .card p.facts{font-size:2.9vw;margin:0 auto 2.4vw}
  .card p.clock{font-size:2.8vw;margin:2.4vw auto}
  .icons{gap:2vw}
  .icons a{width:9.5vw;height:9.5vw}
  .icons a svg{width:4vw;height:4vw}
}

/* the two meta lines are centred by their own rule, not by the left aligned paragraphs */
.card p.facts,
.card p.clock{display:block;text-align:center;width:auto;max-width:none;margin-left:auto;margin-right:auto}
@media (max-width:700px){
  .card p.facts,
  .card p.clock{display:block;text-align:center;width:auto;max-width:none;margin-left:auto;margin-right:auto}
}

/* phone: no card frame, the content sits straight on the background */
@media (max-width:700px){
  .card{background:transparent;border:0;border-radius:0;box-shadow:none;padding:2vw 3vw;max-width:96vw}
}

/* phone: centre the whole block, horizontally and vertically */
@media (max-width:700px){
  body{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:16px 10px}
  .card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin:0 auto}
}
