/* The reading pages — privacy, terms, support — in the homepage's paper
   style: the band with the wordmark on top, then text on paper. */

:root {
  --paper:      #FAF6F0;
  --paper-sunk: #F2EDE5;
  --card:       #FEFCF9;
  --ink:        #1B1613;
  --ink-soft:   rgba(27, 22, 19, .68);
  --ink-faint:  rgba(27, 22, 19, .45);
  --hairline:   rgba(27, 22, 19, .11);
  --accent:     #FF6A3D;
  --shadow:     0 1px 2px rgba(27,22,19,.05), 0 14px 40px rgba(27,22,19,.09);
}

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

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }

/* ---------- The band ---------- */

.band {
  position: relative;
  background: var(--accent) url("/mesh.jpg") center / cover;
  color: #fff;
  padding: 18px 20px 120px;
}
.band::after {
  /* Runs a hair past the band's edge, so no sliver of the mesh shows
     where the band meets the paper. */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 72%;
  background: linear-gradient(to bottom, rgba(250,246,240,0), var(--paper) 88%);
  pointer-events: none;
}
.band nav {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.band nav .name { color: #fff; font-size: 30px; text-decoration: none; }
.band nav .links { display: flex; gap: 6px; }
.band nav .links a {
  color: var(--ink); background: rgba(255,255,255,.9); text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
}
.band nav .links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.band h1 {
  position: relative; z-index: 1;
  max-width: 760px; margin: 54px auto 0;
  font-size: clamp(48px, 11vw, 80px); line-height: 1;
  text-shadow: 0 2px 22px rgba(27,22,19,.18);
}
.band .sub {
  position: relative; z-index: 1;
  max-width: 760px; margin: 12px auto 0;
  font-size: clamp(17px, 4.2vw, 20px);
  text-shadow: 0 1px 10px rgba(27,22,19,.25);
}

/* ---------- The text ---------- */

main { max-width: 760px; margin: -40px auto 0; padding: 0 20px 40px; position: relative; z-index: 1; }

.sheet {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 28px;
  box-shadow: var(--shadow); padding: 30px 30px 34px;
}
.sheet > :first-child { margin-top: 0; }

.updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 18px; }

main h2 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: 32px; line-height: 1.1; margin: 34px 0 8px;
}
main h3 { font-size: 18px; margin: 22px 0 4px; }
main p, main li { color: var(--ink-soft); }
main strong { color: var(--ink); }
main ul { padding-left: 22px; }
main li + li { margin-top: 8px; }
main li ul { margin-top: 8px; }

main a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper) !important; text-decoration: none !important;
  font-weight: 600; font-size: 17px; padding: 15px 26px; border-radius: 999px;
  box-shadow: var(--shadow);
}

footer { padding: 24px 0 46px; text-align: center; color: var(--ink-faint); font-size: 14px; }
footer .name { font-size: 30px; color: var(--ink); display: block; text-decoration: none; margin-bottom: 4px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { text-decoration: underline; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 640px) {
  .sheet { padding: 22px 20px 26px; border-radius: 24px; }
  main h2 { font-size: 28px; }
  .band nav .links a { padding: 6px 10px; font-size: 13px; }
}

.callout {
  background: var(--paper-sunk); border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0; color: var(--ink-soft);
}
