/*
 * Paperkept — the site.
 *
 * Same rules as the app: cream paper, Literata for anything the product says in its
 * own voice, the system face for everything else. No external requests of any kind —
 * the font is served from here rather than from Google, because a site for an app
 * that holds no network permission should not be quietly calling a third party on
 * every visit.
 */

@font-face {
  font-family: 'Literata';
  src: url('fonts/Literata-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf4e8;
  --ink: #16161a;
  --muted: #7a7264;
  --rule: rgba(42, 38, 32, 0.14);
  --spine: clamp(18px, 4vw, 84px);
  --gutter: clamp(24px, 6vw, 88px);
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* The spine from the icon, running the whole height of the page. */
body::before {
  content: '';
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  background: var(--ink);
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--spine) - 6px);
  width: 1px;
  background: rgba(250, 244, 232, 0.5);
  z-index: 2;
}

main {
  position: relative;
  z-index: 3;
  margin-left: var(--spine);
  padding: 0 var(--gutter);
  max-width: 1180px;
}

section {
  padding: clamp(64px, 12vh, 140px) 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: 0;
}

/* The opening fills the screen: one promise, nothing else to look at. */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.01em;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7.4vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 15ch;
}

.lede {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.status {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 22ch;
}

.label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}

p {
  max-width: 62ch;
  margin: 0 0 18px;
}

.serif {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
}

/* Two columns of plain rows — the same shape as a settings screen. */
.rows {
  display: grid;
  gap: 0 clamp(24px, 5vw, 72px);
  grid-template-columns: 1fr;
  max-width: 900px;
}

@media (min-width: 760px) {
  .rows.two {
    grid-template-columns: 1fr 1fr;
  }
}

.row {
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}

.row h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
}

.row p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.45;
  max-width: 26ch;
  margin: 0 0 14px;
}

.attribution {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

footer {
  margin-left: var(--spine);
  padding: 40px var(--gutter) 60px;
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 15px;
  color: var(--muted);
}

/* The privacy page is a document, not a landing page. */
.document h2 {
  font-size: clamp(22px, 2.4vw, 27px);
  margin-top: 44px;
}

.document ul {
  max-width: 62ch;
  padding-left: 20px;
}

.document li {
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
