/* cubip — the website's one stylesheet.
   The same rules as the app: white paper, ink for text, one accent for links,
   serif for everything people read. */

:root {
  --ink: #16211C;
  --muted: #67736D;
  --faint: #9AA39E;
  --raised: #F4F5F3;
  --accent: #7E3454;
  --rule: rgba(22, 33, 28, 0.11);
  --serif: "Newsreader", "Noto Serif TC", "Songti TC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 16px;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

/* The wordmark is the app's name: lowercase, serif, never anything else. */
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.wordmark a {
  color: var(--ink);
  text-decoration: none;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.5rem;
}

p, ul, ol {
  margin: 0 0 1.1rem;
}

ul, ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

/* Metadata — the page's date, the footer line — is set the way MetaText is
   in the app: small sans, tracked, in capitals. */
.meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
}

.muted {
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0 1.5rem;
}

/* Page footer: links to the other pages, in the sans like a control row. */
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0 3rem;
}

.links {
  font-family: var(--sans);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.links a {
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* Landing page: one screen, wordmark at the top, the lines that matter,
   links pinned at the bottom of the viewport. */
.landing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}

.landing .wordmark {
  font-size: 2.5rem;
}

.landing .lede {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 2rem 0 1rem;
  max-width: 28rem;
}

.landing .note {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

@media (max-width: 480px) {
  html {
    font-size: 17px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .landing .lede {
    font-size: 1.4rem;
  }
}

@media (min-width: 720px) {
  main {
    padding-top: 4rem;
  }
}
