/* getbrindo.com: the app's own look (PhotoPick/Views/DesignSystem.swift).
   Paper, ink and terracotta; Inter for titles, the system face for reading; drawn
   pill buttons with a 1.5 px ink line on a solid 4 px ink shadow that drop when pressed. */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FAF2EA;
  --ink: #382B27;
  --ink-deep: #1C1412;
  --secondary: #7A655D;
  --line: #EADBCD;
  --terracotta: #E6AE92;
  --terracotta-dark: #8A4C38;
  --sage: #E4E8DD;
  --sage-dark: #53634F;
  --tile: #F2E6DA;
  --white: #FFFDFB;
  --title: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;
  --wide: 68rem;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--terracotta-dark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--title); font-optical-sizing: auto; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 1rem; }
h2 { font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -.018em; margin: 3rem 0 .8rem; }
.prose h1 { font-size: clamp(1.95rem, 4.4vw, 2.7rem); line-height: 1.12; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; margin: 1.8rem 0 .4rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 650; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--measure); }
.center { margin-left: auto; margin-right: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(56, 43, 39, .08); }
.brand span { font: 600 21px/1 var(--title); letter-spacing: -.01em; }
.top nav { display: flex; align-items: center; gap: 1.1rem; font-size: .95rem; }
.top nav a.quiet { color: var(--secondary); text-decoration: none; }
.top nav a.quiet:hover { color: var(--ink); }

/* Drawn pill button, as ActionFace + ActionStyle */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 54px; padding: 0 28px;
  border: 1.5px solid var(--ink); border-radius: 29px;
  background: var(--terracotta); color: var(--ink);
  font: 600 1.02rem/1.2 var(--text); text-decoration: none; text-align: center;
  box-shadow: 0 4px 0 var(--ink);
  transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn.white { background: var(--white); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .92rem; border-radius: 20px; }
.btn-note { display: block; margin-top: .9rem; color: var(--secondary); font-size: .9rem; }

/* Round drawn ✕ and ♥ */
.round {
  display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%;
  border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-weight: 700; line-height: 1;
  background: var(--white); vertical-align: middle; margin: 0 .15em;
}
.round.keep { background: var(--terracotta); }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; padding-block: 3.5rem 4rem; }
.hero .lede { font-size: 1.2rem; color: var(--ink); max-width: 33rem; }
.hero .art { width: 100%; max-width: 460px; justify-self: end; }
.eyebrow { font: 600 .82rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta-dark); margin-bottom: 1rem; }

/* The deck: crossed-out worry, then the answer */
.deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-block: 1rem 2rem; }
.card {
  background: var(--tile); border-radius: var(--radius); padding: 28px 28px 30px;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: .35rem;
}
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.card .them {
  font: 500 1.05rem/1.35 var(--title); color: var(--secondary);
  text-decoration: line-through; text-decoration-color: var(--terracotta-dark); text-decoration-thickness: .1em;
}
.card .us { font: 700 1.55rem/1.2 var(--title); letter-spacing: -.015em; margin: .1rem 0 .5rem; }
.card p { margin: 0; color: var(--ink); }
.card img { max-height: 190px; width: auto; margin: 0 0 1rem; }
.brush { background: linear-gradient(transparent 62%, rgba(230, 174, 146, .75) 62%, rgba(230, 174, 146, .75) 92%, transparent 92%); padding: 0 .06em; }

/* Sections */
.band { padding: 3.5rem 0; }
.band.sage { background: var(--sage); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; margin-top: 1.5rem; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--terracotta); font: 700 .95rem/1 var(--title); margin-bottom: .8rem; box-shadow: 0 3px 0 var(--ink); }
.step h3 { margin-top: 0; }
.step p { margin: 0; color: var(--ink); }

.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.links li { display: flex; }
.links a { flex: 1; display: block; position: relative; padding: 16px 44px 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.links a::after { content: "→"; position: absolute; right: 18px; top: 16px; color: var(--terracotta-dark); }
.links a:hover { border-color: var(--terracotta); }
.links small { display: block; font-weight: 400; color: var(--secondary); margin-top: .15rem; }

/* Question pages */
.crumbs { font-size: .88rem; color: var(--secondary); margin: 1.2rem 0 1.6rem; }
.crumbs a { color: var(--secondary); }
.answer { background: var(--tile); border: 1px solid var(--line); border-left: 6px solid var(--terracotta); border-radius: 16px; padding: 20px 24px; margin: 1.2rem 0 2rem; font-size: 1.08rem; }
.answer p:last-child { margin: 0; }
.meta { font-size: .88rem; color: var(--secondary); }
.page-art { width: 100%; max-width: min(340px, 100%); margin: 0 0 1.5rem; }

ol.how, ul.ticks { padding-left: 1.3rem; }
ol.how li, ul.ticks li { margin: .45rem 0; }
ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li { padding-left: 1.7rem; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--sage-dark); font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font: 600 .85rem/1.3 var(--text); color: var(--secondary); background: var(--tile); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
tr.us td { background: #FBEDE4; }

details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font: 600 1.05rem/1.4 var(--title); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; color: var(--terracotta-dark); }
details[open] summary::after { content: "–"; }
details p { margin: .7rem 0 0; }

/* Legal pages: privacy, support and the Terms keep their own words; only the design is the site's. */
.doc { padding-bottom: 1rem; }
.doc h1 { margin-top: 1.6rem; }
.doc h2 { font-size: 1.3rem; margin: 2.6rem 0 .6rem; scroll-margin-top: 1rem; }
.doc h3 { font-size: 1.05rem; margin: 1.8rem 0 .4rem; }
.doc .sub { color: var(--secondary); margin: 0 0 1.4rem; }
.doc .lead { background: var(--tile); border: 1px solid var(--line); border-left: 6px solid var(--terracotta); border-radius: 16px; padding: 18px 22px; margin: 0 0 2rem; font-size: 1.05rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: .45rem 0; }
.doc dl { margin: 1rem 0; }
.doc dt { font: 600 1.02rem/1.4 var(--title); margin-top: 1.4rem; }
.doc dd { margin: .35rem 0 0; }
.doc code { font-size: .9em; background: var(--tile); border-radius: 6px; padding: 1px 5px; }
.doc .wide { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); margin: 1rem 0 1.6rem; }
.doc table { min-width: 0; }
.doc > footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--secondary); font-size: .92rem; }
.doc > footer a { color: var(--secondary); }

/* Closing call to action */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; background: var(--tile); border: 1px solid var(--line); border-radius: 28px; padding: 32px 36px; margin: 3.5rem 0 1rem; }
.cta h2 { margin: 0 0 .4rem; }
.cta p { margin: 0 0 1.2rem; color: var(--ink); }
.cta img { max-width: min(240px, 100%); }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 2rem 3rem; font-size: .92rem; color: var(--secondary); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
footer a { color: var(--secondary); }
footer a:hover { color: var(--ink); }

/* Tablets: the hero stacks, cards stay two across. */
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 1rem 2.5rem; }
  .hero .art { justify-self: start; max-width: min(320px, 100%); order: -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: one column. */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .deck, .links { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px 22px 26px; }
  .card.wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card.wide img { order: -1; max-height: 120px; margin: 0 0 1rem; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .cta img { max-width: 180px; order: -1; }
  /* Tables become one card per row, each cell under its column's name. */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tr { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
  tr.us { background: #FBEDE4; border-color: var(--terracotta); }
  tr.us td { background: none; }
  .table-wrap td { border: 0; padding: 3px 0; }
  .table-wrap td:first-child { font: 650 1.05rem/1.3 var(--title); padding-bottom: 6px; }
  .table-wrap td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--secondary); text-transform: uppercase; margin-top: 4px; }
  .top nav a.quiet.hide-small { display: none; }
}

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