/* Zoku's public pages: the app's tokens (src/theme/tokens.ts), on the web. Flat sumi, washi type,
   sora links, Dela Gothic One for titles and Zen Kaku Gothic New for reading. No cards, no shadows. */
:root {
  --sumi: #15132a;
  --yoru: #221f40;
  --washi: #f3f0fa;
  --sora: #4fd8ff;
  --kin: #ffc94a;
  --muted: rgba(243, 240, 250, 0.64);
  --hairline: rgba(243, 240, 250, 0.12);
  --hairline-strong: rgba(243, 240, 250, 0.24);
  --gutter: 20px;
  --display: 'Dela Gothic One', 'Hiragino Kaku Gothic ProN', sans-serif;
  --body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--sumi);
  color: var(--washi);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}

/* The wordmark, with a panel-cut rule under it: an angled edge, like a manga panel border. */
.mast {
  display: block;
  padding-bottom: 14px;
  margin-bottom: 40px;
  position: relative;
  color: var(--washi);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
}

.mast::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--washi);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  margin: 48px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
}

h3 {
  margin: 24px 0 4px;
  font-size: 17px;
  font-weight: 700;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

li::marker {
  color: var(--muted);
}

a {
  color: var(--sora);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong {
  font-weight: 700;
}

.lede {
  color: var(--muted);
  margin-bottom: 28px;
}

/* Shown while any bracketed detail is still to be filled in. */
.draft {
  margin: 0 0 32px;
  padding: 12px 14px;
  border-left: 3px solid var(--kin);
  background: var(--yoru);
  color: var(--washi);
  font-size: 15px;
  line-height: 1.6;
}

/* A detail to fill in before launch, such as [OWNER]. */
.ph {
  color: var(--kin);
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
}

@media (max-width: 420px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  main {
    padding-top: 28px;
  }
}
