/*
 * druipe.com: the public site (docs/DECISIONS.md, 2 December 2026).
 * Same type and colours as the app, so moving between them feels like one
 * product. No cookies, no third-party scripts.
 */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #1d1630;
  --ink-2: #534d66;
  --ink-3: #7c778e;
  --paper: #ffffff;
  --canvas: #f6f5f9;
  --line: #e3e2eb;
  --plum: #8a2f6b;
  --plum-ink: #6f2356;
  --plum-soft: #f7edf4;
  --night: #1d1630;
  --night-2: #2a2142;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--plum-ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--plum);
}

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--paper);
  padding: 8px 12px;
}

.wrap {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
}

/* ---- Header and footer --------------------------------------------- */

.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.mark svg {
  width: 28px;
  height: 28px;
}

.top nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
}

.top nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}

.button:hover {
  background: var(--plum-ink);
}

.button.quiet {
  background: transparent;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.quiet:hover {
  box-shadow: inset 0 0 0 1px var(--ink-3);
  background: transparent;
}

.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
  font-size: 14px;
  color: var(--ink-2);
}

.foot .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  padding: 40px 0 48px;
}

.foot p {
  margin: 0 0 6px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.foot a {
  color: var(--ink-2);
}

/* ---- Home ----------------------------------------------------------- */

.hero {
  padding: 88px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 720;
  margin: 0 0 22px;
}

.hero .lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* The one loud thing: every figure carries the name of where it came from. */
.ledger {
  margin: 0;
  min-width: 0;
  background: var(--night);
  color: #ece9f4;
  border-radius: 14px;
  padding: 26px 26px 18px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #a9a3bd;
  margin-bottom: 14px;
}

.ledger table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ledger td {
  padding: 13px 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  vertical-align: baseline;
}

.ledger td:nth-child(2) {
  text-align: right;
  font-size: 22px;
  font-weight: 650;
  padding-right: 16px;
  white-space: nowrap;
}

.ledger td:nth-child(3) {
  width: 1%;
  white-space: nowrap;
}

.source {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(138 47 107 / 0.35);
  color: #f3d9ea;
}

.ledger-note {
  font-size: 12px;
  color: #a9a3bd;
  margin: 12px 0 0;
}

.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.band h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}

.band .intro {
  color: var(--ink-2);
  max-width: 40em;
  margin: 0 0 40px;
}

.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
}

.views div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.views dt {
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 6px;
}

.views dd {
  margin: 0;
  color: var(--ink-2);
}

.views .from {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--plum-ink);
}

.nots {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  max-width: 52em;
}

.nots li {
  padding-left: 22px;
  position: relative;
}

.nots li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--plum);
}

.nots strong {
  display: block;
}

.closing {
  background: var(--canvas);
  border-radius: 14px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.closing h2 {
  margin: 0;
}

/* ---- Legal pages (layout follows progality.com/privacy-policy) ------ */

.doc-hero {
  background: var(--night);
  color: #f2f0f7;
  padding: 64px 0 56px;
}

.doc-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 18px;
}

.doc-hero p {
  color: #cfcadd;
  max-width: 46em;
  margin: 0 0 14px;
}

.doc-hero .meta {
  font-size: 14px;
  font-weight: 600;
  color: #f2f0f7;
  margin-top: 22px;
}

.doc {
  padding-top: 40px;
}

.index {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 32px;
}

.index h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}

.index li {
  break-inside: avoid;
  padding: 5px 0;
  font-size: 15px;
}

.index li span {
  display: inline-block;
  width: 2.2em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

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

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

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.summary section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  background: var(--canvas);
}

.summary h2 {
  font-size: 17px;
  margin: 0 0 8px;
}

.summary p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.doc article {
  max-width: var(--measure);
}

.doc article section {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.doc article h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.doc article h2 .n {
  font-size: 14px;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.doc article h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}

.doc article ul {
  padding-left: 20px;
}

.doc article li {
  margin-bottom: 6px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 20px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.doc th {
  font-weight: 650;
  color: var(--ink-2);
  font-size: 14px;
}

.callout {
  background: var(--plum-soft);
  border-left: 3px solid var(--plum);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.contact {
  font-style: normal;
  line-height: 1.7;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--canvas);
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

pre {
  background: var(--canvas);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
}

pre code {
  background: none;
  padding: 0;
}

/* ---- Small screens -------------------------------------------------- */

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero .wrap,
  .views,
  .summary,
  .foot .wrap {
    grid-template-columns: 1fr;
  }

  .index ol {
    columns: 1;
  }

  .top nav .hide-small {
    display: none;
  }

  .closing {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .ledger {
    padding: 20px 18px 14px;
  }

  .ledger tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    padding: 10px 0;
  }

  .ledger td {
    border-top: 0;
    padding: 0;
  }

  .ledger td:nth-child(2) {
    padding-right: 0;
    font-size: 20px;
  }

  .ledger td:nth-child(3) {
    grid-column: 1 / -1;
    width: auto;
    padding-top: 6px;
  }

  .hero h1 {
    overflow-wrap: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.notfound {
  padding: 120px 0;
}
