/* nooption.me — paper */

body {
  background: var(--desk);
  color: var(--ink);
}

.sheet {
  position: relative;
  max-width: var(--sheet);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow: clip;
  box-shadow: 0 0 0 1px rgba(19, 19, 21, .07), 0 30px 90px -60px rgba(19, 19, 21, .5);
}

/* the 12-column ghost grid, drawn in */
.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 8.3333%);
  opacity: 0;
  transform: scaleY(.7);
  transform-origin: top;
  transition: opacity 1.4s var(--ease-out) .2s, transform 1.6s var(--ease-out) .2s;
}
.ready .grid { opacity: .6; transform: none; }
html[data-grid="off"] .grid { opacity: 0; }

.sheet > *:not(.grid) { position: relative; z-index: 1; }

/* ── top bar ─────────────────────────────────────────────────── */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar-id { display: flex; align-items: center; gap: 12px; }
.bar-id b { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .14em; font-weight: 600; }
.bar-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--mute);
}
.bar-meta > span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.clock { font-variant-numeric: tabular-nums; }
.lang { background: var(--ink); color: var(--paper); }
.lang:hover { color: var(--paper); }

/* ── hero ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
  padding-right: var(--pad);
  flex: 1;
}
.hero-main { padding: 76px 0 64px var(--pad); min-width: 0; }

.stamp {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}
.stamp .punch { --s: 52px; }
.stamp p {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mute);
  line-height: 1.7;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 9.2vw, 118px);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.055em;
}
h1.l-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(46px, 8.1vw, 104px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.02em;
}
h1 em { font-style: normal; color: var(--signal); }

.lede {
  margin: 34px 0 0;
  font-size: 19px;
  line-height: 1.55;
  max-width: 34ch;
  text-wrap: pretty;
}
.lede.l-zh {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  max-width: 26em;
}

/* now column */
.now {
  border-left: 1px solid var(--ink);
  padding: 76px 0 64px 28px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
}
.now h2 {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--signal);
}
.now ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.now li { display: flex; flex-direction: column; gap: 5px; }
.now time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--mute);
}
.now p { margin: 0; font-size: 15px; line-height: 1.45; letter-spacing: -.01em; }
.now p.l-zh { font-family: 'Noto Sans SC', sans-serif; line-height: 1.7; }
.now footer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: #A8A49A;
}

/* ── index rows ──────────────────────────────────────────────── */
.index { border-top: 1px solid var(--ink); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 106px 1fr 1fr 60px;
  align-items: center;
  padding: 26px var(--pad);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color .3s var(--ease);
}
.row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.row:hover, .row:focus-visible { color: var(--paper); outline: none; }
.row:hover::before, .row:focus-visible::before { transform: scaleX(1); }

.row-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  opacity: .55;
  transition: transform .5s var(--ease-out), color .3s var(--ease);
}
.row:hover .row-no, .row:focus-visible .row-no { color: var(--signal); opacity: 1; }

.row-name {
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
  transition: transform .5s var(--ease-out);
}
.row-name.l-zh { font-family: 'Noto Sans SC', sans-serif; letter-spacing: -.01em; }
.row:hover .row-name, .row:focus-visible .row-name { transform: translateX(16px); }
.row:hover .row-no, .row:focus-visible .row-no { transform: translateX(16px); }

.row-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  opacity: .6;
}
.row-go {
  font-size: 22px;
  text-align: right;
  transition: transform .5s var(--ease-out);
}
.row:hover .row-go, .row:focus-visible .row-go { transform: translate(6px, -6px); }

/* ── footer ──────────────────────────────────────────────────── */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px var(--pad) 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mute);
}
.foot .sc { letter-spacing: .06em; }

/* ── responsive ──────────────────────────────────────────────── */
/* nothing may push the sheet wider than the screen */
.hero > *, .row > *, .now > * { min-width: 0; }
.row-meta, .now p, .lede { overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-right: 0; flex: 0 1 auto; }
  .hero-main { padding: 56px var(--pad) 40px; }
  .now {
    border-left: none;
    border-top: 1px solid var(--ink);
    padding: 34px var(--pad) 44px;
    justify-content: flex-start;
  }
  .row {
    grid-template-columns: 56px 1fr 34px;
    grid-template-areas: "no name go" ". meta go";
    row-gap: 6px;
  }
  .row-no  { grid-area: no; }
  .row-name { grid-area: name; }
  .row-meta { grid-area: meta; }
  .row-go  { grid-area: go; align-self: center; }
  .row:hover .row-name, .row:focus-visible .row-name,
  .row:hover .row-no, .row:focus-visible .row-no { transform: translateX(8px); }
}
@media (max-width: 620px) {
  :root { --pad: 22px; }
  .grid { background-size: 25% 100%; background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 100%); }
  .bar { flex-wrap: wrap; row-gap: 12px; }
  .bar-meta { gap: 14px; width: 100%; justify-content: space-between; }
  .bar-meta > span:nth-child(2) { display: none; }
  .foot { flex-direction: column; gap: 10px; }
}
