/* The About pages: long reading over the same dimmed water as the board, sharing its colours
   (style.css) and type. One column; examples are shown the way posts look on the board. */

.page { max-width: 40rem; margin: 0 auto; padding: 0 20px 96px; }

.page-top {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: 18px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.page-top .brand { color: var(--text); text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin-right: auto; }
.page-tabs { display: flex; gap: 18px; }
.page-tabs a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 1px solid transparent; }
.page-tabs a:hover { color: var(--text); }
.page-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: currentColor; }
.page-tabs a:focus-visible, .page-top .brand:focus-visible, .page a:focus-visible { outline: 2px solid var(--you); outline-offset: 3px; border-radius: 2px; }

.page h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 300; letter-spacing: -.02em; line-height: 1.12; margin: 56px 0 14px; }
.page .lead { font-size: 19px; line-height: 1.6; color: #d6d9de; margin: 0 0 40px; }
.page h2 { font-size: 19px; font-weight: 500; margin: 44px 0 8px; letter-spacing: -.005em; }
.page p { font-size: 17px; line-height: 1.68; margin: 0 0 14px; color: #dfe2e6; }
.page p a, .page li a { color: var(--text); text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.page p a:hover { text-decoration-color: currentColor; }
.page .quiet { color: var(--muted); font-size: 15px; }

/* a learning: its title, how we know (a quiet line under it), the explanation, an example */
.learning { margin: 0; padding: 30px 0 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.learning:first-of-type { border-top: 0; padding-top: 4px; }
.learning h2 { margin: 0 0 2px; }
.learning .how { display: block; color: var(--faint); font-size: 13.5px; margin: 0 0 12px; }

/* examples, drawn like posts on the board */
.said { list-style: none; margin: 16px 0 18px; padding: 2px 0 2px 16px; border-left: 2px solid rgba(255, 255, 255, .12); }
.said li { padding: 5px 0; font-size: 16px; line-height: 1.5; }
.said .who { font-weight: 500; margin-right: 8px; }
.said .tr { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.said [lang="ja"] { font-family: var(--ja); }

/* what was run: model, setup, result */
.setup { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 4px 0 16px; padding: 12px 14px;
  font-size: 14.5px; line-height: 1.5; background: rgba(255, 255, 255, .035); border-radius: 6px; }
.setup dt { color: var(--faint); }
.setup dd { margin: 0; color: #d6d9de; }
/* two runs of the same thing, side by side (stacked on a phone) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0 18px; }
.pair figure { margin: 0; }
.pair figcaption { font-size: 13.5px; color: var(--faint); margin-bottom: 2px; }
.pair .said { margin: 6px 0 0; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; gap: 6px; } }
.said .who.dim { color: #b7bcc4; }
.said .cut::after { content: "▌"; color: var(--faint); margin-left: 1px; }
.page table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14.5px; }
.page th, .page td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
.page th { color: var(--faint); font-weight: 400; }
.page td.num { font-variant-numeric: tabular-nums; }
.contents { columns: 2 220px; column-gap: 28px; padding: 0; margin: 0 0 40px; list-style: none; font-size: 15px; }
.contents li { padding: 3px 0; break-inside: avoid; }
.contents a { color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--text); }

.next { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .07); }
.next a { font-size: 17px; }

@media (max-width: 520px) {
  .page h1 { margin-top: 40px; }
  .page .lead { font-size: 18px; }
  .page p { font-size: 16.5px; }
}

/* ---------- the city: the photo behind the About pages (from the original sehyo announcement) ---------- */
body.city { background: #0b0f1a; }
/* the photo overhangs the viewport a little so a blurred edge never shows the page behind it */
.city-bg { position: fixed; inset: -48px; z-index: -1; background: url("/about/shinjuku-2000.webp") center 58% / cover no-repeat;
  /* it really blurs and darkens as you scroll: about.js sets --t from 0 (top) to 1 */
  filter: blur(calc(var(--t, 0) * 18px)) brightness(calc(1 - var(--t, 0) * .58)) saturate(calc(1 + var(--t, 0) * .15)); }
@media (max-width: 800px) { .city-bg { background-image: url("/about/shinjuku-1200.webp"); } }   /* phones: the smaller copy */
body.city.settled { --t: 1; }
body.city .page-top { border-bottom-color: rgba(255, 255, 255, .1); }

/* the opening: the icon on liquid glass, the name, the line under it */
.hero { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px 20px 72px; position: relative; }
.glass {
  width: clamp(132px, 18vw, 232px); aspect-ratio: 1; border-radius: 26%; position: relative; isolation: isolate;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(140% 90% at 30% 0%, rgba(255, 255, 255, .2), transparent 38%),
    linear-gradient(160deg, rgba(26, 30, 44, .3), rgba(4, 6, 12, .55));
  -webkit-backdrop-filter: blur(7px) saturate(190%) brightness(.78); backdrop-filter: blur(7px) saturate(190%) brightness(.78);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .6),                 /* lit top edge */
    inset 4px 4px 9px rgba(255, 130, 220, .32),                /* oil-slick colour in the corners */
    inset -4px -4px 9px rgba(120, 230, 255, .32),
    inset 0 0 22px rgba(0, 0, 0, .5),                          /* smoky toward the edges */
    0 24px 60px rgba(0, 0, 0, .55);
}
/* the oil-slick sheen inside the glass */
.glass::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background: conic-gradient(from 200deg at 55% 45%, #ff7ad9, #7ae7ff, #fff1a8, #9a7aff, #ff9a7a, #ff7ad9);
  filter: blur(28px); opacity: .18; mix-blend-mode: screen;
}
/* a thin rainbow rim */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from 150deg, rgba(255,255,255,.9), rgba(122,231,255,.6), rgba(255,122,217,.55), rgba(255,241,168,.6), rgba(255,255,255,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .75; pointer-events: none;
}
/* with WebGL the shader draws the glass itself (glass.js): drop the CSS frosting, keep the shadow */
.glass.gl { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.glass.gl::before, .glass.gl::after { display: none; }
.glass-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.glass img { width: 66%; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.wordmark { margin: 28px 0 0; font: 700 clamp(40px, 5vw, 68px)/1 "Helvetica Neue", "Inter", Arial, sans-serif; letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.tagline { margin: 10px 0 0; font: 400 clamp(16px, 1.6vw, 22px)/1.3 "Helvetica Neue", "Inter", Arial, sans-serif; letter-spacing: -.01em; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: cue 2.4s ease-in-out infinite; }
  @keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: .5; } 50% { transform: translate(-50%, 6px); opacity: .9; } }
}
/* the top bar floats over the photo on the About page */
body.city .page-top.over { position: absolute; left: 0; right: 0; top: 0; max-width: none; margin: 0; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); border-bottom: 0; z-index: 2; }

/* 製評: the name, one character at a time */
.entry { display: flex; gap: clamp(28px, 6vw, 56px); margin: 8px 0 34px; }
.entry .part { display: grid; gap: 10px; justify-items: start; }
.entry .kanji { font: 500 64px/1 var(--ja); color: #fff; }
.entry .gloss { color: #dfe2e6; font-size: 16px; }
.entry .gloss i { color: var(--muted); margin-right: 6px; }
.page p.big { font-size: 22px; line-height: 1.45; color: #fff; font-weight: 300; margin: 0 0 10px; }
/* a real thread, quoted: where it lives, then its posts in order (⋯ where some are skipped) */
.thread { margin: 30px 0 34px; }
.thread figcaption { font-size: 13.5px; margin-bottom: 4px; }
.thread figcaption a { color: var(--faint); text-decoration: none; }
.thread figcaption a:hover { color: var(--text); }
.thread .said { margin: 0; }
.said [lang="ja"] .tr { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; }
.said li.gap { color: var(--faint); padding: 0; line-height: 1.1; letter-spacing: .2em; }
.open-board { display: inline-block; margin: 8px 18px 0 0; font-size: 17px; }
.credit { margin-top: 40px; font-size: 12.5px; color: var(--faint); }
.credit a { color: inherit; }
