/* ranku.me: the app's default theme, type scale and rules (src/ui/tokens.ts, src/ui/themes.ts).
   Square corners, no gradients or shadows. The only radial-gradient is the screen-tone dot texture. */

@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('/fonts/Oswald_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('/fonts/Oswald_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/Inter_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/Inter_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('/fonts/Inter_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url('/fonts/Unbounded_800ExtraBold.ttf') format('truetype'); }

:root {
  --ground: #0B0B0D;
  --panel: #17171B;
  --line: #2A2A31;
  --text: #F6F3EE;
  --accent: #E83A2F;
  --muted: #8A8A93;
  --on-accent: #0B0B0D;
  --gutter: 20px;
  --major: 2px;
  --minor: 1px;
  --touch: 44px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font: 400 14px/20px Inter, system-ui, sans-serif;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
ol, ul { list-style: none; }

/* Type */
.label { font: 800 10px/14px Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.label.text { color: var(--text); }
.body { font: 400 14px/20px Inter, sans-serif; }
.muted { color: var(--muted); }
.display { font: 700 48px/42px Oswald, sans-serif; text-transform: uppercase; }

/* Wordmark bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: var(--touch); }
.sq { width: 30px; height: 30px; background: var(--panel); color: var(--accent); display: flex; align-items: center; justify-content: center; font: 800 19px Unbounded, sans-serif; }
.word { font: 800 14px Unbounded, sans-serif; letter-spacing: 0.08em; }
.kana { color: var(--accent); font: 800 15px Unbounded, sans-serif; }

/* Screen-tone: the manga halftone texture */
.tone { background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px); background-size: 7px 7px; }

/* Hero */
.hero { padding: 28px var(--gutter) 28px; }
.hero-title { font: 700 64px/0.94 Oswald, sans-serif; text-transform: uppercase; letter-spacing: -0.005em; }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero > .label { margin: 16px 0 22px; }
.soon { display: flex; flex-direction: column; gap: 6px; }
.soon .field { margin-top: 8px; }

/* Buttons: the app's large accent and outline buttons */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 16px;
  background: var(--accent); color: var(--on-accent);
  font: 800 13px Inter, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: var(--major) solid var(--accent);
}
.btn.ghost { background: none; color: var(--text); border-color: var(--text); }
.btn:active, .field button:active { opacity: 0.7; }

/* Sample top 5 (the app's ranking rows) */
.sample { padding: 8px var(--gutter) 24px; }
.sample-head { display: flex; justify-content: space-between; padding: 14px 0 6px; border-bottom: var(--major) solid var(--text); }
.rank { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: var(--minor) solid var(--line); }
.rank .n { font: 700 30px/28px Oswald, sans-serif; width: 28px; color: var(--muted); }
.rank .n.top { color: var(--accent); }
.rank .t { font: 500 19px/20px Oswald, sans-serif; text-transform: uppercase; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rank .s { font: 700 22px Oswald, sans-serif; }

/* Email boxes */
.android { border-top: var(--major) solid var(--text); padding: 20px var(--gutter); }
.android .body { margin: 6px 0 12px; }
.field { display: flex; }
.field input[type='email'] {
  flex: 1; min-width: 0; min-height: var(--touch);
  background: var(--panel); border: var(--minor) solid var(--line); color: var(--text);
  font: 400 14px Inter, sans-serif; padding: 0 12px;
}
.field input[type='email']:focus { outline: var(--major) solid var(--accent); outline-offset: -2px; }
.field button {
  min-height: var(--touch); padding: 0 16px; border: 0; cursor: pointer;
  background: var(--text); color: var(--on-accent);
  font: 800 11px Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
}
/* The honeypot: invisible to people, filled in by bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Plain pages (not found, thank-you, legal) */
.plain { padding: 28px var(--gutter) 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.plain .btn { align-self: stretch; margin-top: 8px; }

/* Web profile (/u/handle) */
.profile { padding: 0 var(--gutter) 28px; }
.who { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-top: var(--major) solid var(--text); border-bottom: var(--minor) solid var(--line); }
.ph { width: 56px; height: 56px; flex: none; object-fit: cover; background: var(--panel); border: var(--major) solid var(--text); display: flex; align-items: center; justify-content: center; font: 700 24px Oswald, sans-serif; }
.name { font: 700 30px/28px Oswald, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.who .label { margin-top: 6px; }
.profile .ranks { padding-top: 4px; }
.profile .empty, .profile .private { padding: 20px 0; }
.cta { padding-top: 22px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta .label { text-align: center; }

/* Legal pages: the app's section titles, body text and bullets */
.legal { padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; gap: 12px; }
.legal .intro { margin-top: 4px; }
.legal section { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; margin-top: 10px; border-top: var(--major) solid var(--text); }
.section { font: 700 26px/26px Oswald, sans-serif; text-transform: uppercase; }
.legal ul { display: flex; flex-direction: column; gap: 8px; }
.legal li { font: 400 14px/20px Inter, sans-serif; padding-left: 18px; position: relative; }
.legal li::before { content: '•'; position: absolute; left: 2px; color: var(--accent); }

/* Footer: each link on its own line */
.foot { display: flex; flex-direction: column; padding: 18px var(--gutter) 32px; border-top: var(--minor) solid var(--line); }
.foot a { font: 800 10px Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.foot a:hover, .foot a:focus-visible { color: var(--text); }

/* Wider screens: the same column, bigger type */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero-title { font-size: 104px; }
  .rank .t { font-size: 22px; line-height: 24px; }
}
