/* sendworthy.io — "Library": a reading room at night. Bottle green lit by one lamp, ivory type.
   One theme in both schemes: the lit green is the material. */

@font-face {
  font-family: "Libre Caslon Display";
  src: url("/fonts/libre-caslon-display.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2"); /* variable, wght 400–500 */
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --green: #0c231c;
  --ivory: #eee6d3;
  --text: #d3cbb9;
  --muted: #a9b4a6;
  --tile: #56705f;
  --rule: rgba(238, 230, 211, 0.085);
  --g: clamp(20px, 5vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--green);
}
h1, h2, p { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ivory);
  font: 400 14px/20px "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease-out, color 180ms ease-out;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 3px;
}
::selection { background: var(--ivory); color: var(--green); }

/* Header and footer: quiet hairlines inset to the gutters, framing the page */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  margin-inline: var(--g);
}
header.bar { border-bottom: 1px solid var(--rule); }
footer.bar { border-top: 1px solid var(--rule); }

/* A 20 px line box puts the caps' optical center at the box center, so the 18 px mark centers on the caps */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
}
a.brand {
  min-height: 44px;
  text-decoration: none;
}
a.brand:hover span {
  text-decoration: underline 1px;
  text-underline-offset: 4px;
}
.mark { display: block; flex: none; fill: var(--tile); }
.mark .hero { fill: var(--ivory); }

.signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration-color: var(--rule);
}
.signin:hover { text-decoration-color: currentColor; }

footer a { color: var(--muted); }
footer a:hover { color: var(--ivory); }
footer nav a {
  display: inline-block;
  padding-block: 12px;
  font-size: 13px;
}
.dot { margin-inline: 10px; color: var(--muted); }

/* Home: the lamp-lit statement */
.home {
  background:
    url("/grain.svg"),
    /* the lamp: warm light falling from above the statement */
    radial-gradient(60% 55% at 50% 38%, rgba(255, 214, 150, 0.10), rgba(255, 214, 150, 0) 70%),
    radial-gradient(90% 80% at 50% 40%, rgba(32, 78, 62, 0.55), rgba(32, 78, 62, 0) 75%),
    /* the room's edges falling away */
    radial-gradient(130% 100% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 8, 5, 0.55) 100%),
    var(--green);
}
.home main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh var(--g) 11vh;
  text-align: center;
}
.statement {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(50px, calc(10.8vw + 12px), 219px); /* ≈54 / 95 / 168 / 219 px at 390 / 768 / 1440 / 1920 */
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.statement span { display: block; }
.home footer.bar { justify-content: center; }

/* Documents: privacy, terms, 404. The same room, lit softly from the top, set for reading. */
.doc {
  background:
    url("/grain.svg"),
    radial-gradient(70% 560px at 50% 0, rgba(255, 214, 150, 0.05), rgba(255, 214, 150, 0) 80%),
    radial-gradient(100% 760px at 50% 0, rgba(32, 78, 62, 0.42), rgba(32, 78, 62, 0) 80%),
    var(--green);
}
.doc main {
  width: 100%;
  max-width: calc(66ch + 2 * var(--g));
  margin-inline: auto;
  padding: clamp(56px, 9vh, 112px) var(--g) clamp(64px, 10vh, 120px);
  font-size: 17px;
  line-height: 28px;
}
.doc h1 {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, calc(3vw + 22px), 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.small {
  margin-top: 14px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.body {
  margin-top: 48px;
  color: var(--text);
}
.body p + p { margin-top: 18px; }
.body h2 {
  margin: 48px 0 12px;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 32px;
  color: var(--ivory);
  text-wrap: balance;
}
.body > h2:first-child { margin-top: 0; }
.body a { text-decoration-color: rgba(211, 203, 185, 0.45); }
.body a:hover { text-decoration-color: currentColor; color: var(--ivory); }

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--ivory);
  text-decoration-color: var(--rule);
}
.arrow {
  display: inline-block; /* keeps the underline to the words */
  margin-left: 0.4em;
  transition: transform 160ms ease-out;
}
.more:hover .arrow { transform: translateX(2px); }

.doc footer.bar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 48px;
  padding-block: 28px 20px;
}
address {
  font-style: normal;
  font-size: 13px;
  line-height: 21px;
  color: var(--muted);
}
address a {
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
}

@media (prefers-reduced-motion: reduce) {
  a, .arrow { transition: none; }
}
