/*
  Say Briefly template for src/t/saybriefly/index.html.
  Tokens follow helper/themes/Say Briefly and saybriefly.com: a #efd3fa
  lavender hero on #fcfaf5 paper, #173300 forest ink, #ffeb5b yellow, a
  #0a3400 band, mint / blush sticky notes and monoline sketches. The nav is a
  glass pill led by a yellow pencil tip; the badge is mono text on a
  highlighter strip; primary buttons are glossy forest pills with yellow
  text. Bricolage Grotesque has no Cyrillic, so Geologica 800 stands in for
  headings; Roboto Mono sets the badge; Inter carries the body text.
*/

@font-face {
  font-family: "Geologica";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/geologica-cyrillic-800.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/geologica-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-mono-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #173300;
  --yellow: #ffeb5b;
  --paper: #fcfaf5;
  --mint: #d5f5c2;
  --blush: #f6d0ff;
  --lavender: #efd3fa;
  --forest: #0a3400;
  --teal: #a8e5e5;
  --pencil: #b6b6b6;
  --display: "Geologica", "Inter", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
code {
  font: 600 0.85em/1.4 ui-monospace, "SFMono-Regular", monospace;
  background: var(--yellow);
  padding: 1px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(34px, 5.6vw, 80px); line-height: 1.05; }
h2 { font-size: clamp(32px, 5vw, 72px); line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.2; }
mark {
  color: inherit;
  background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 88%, transparent 88%);
  padding: 0 0.12em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("/assets/logo/logo-ink.svg") center / contain no-repeat;
  mask: url("/assets/logo/logo-ink.svg") center / contain no-repeat;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 17px/1 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

/* Buttons: pills. The primary one is the site's glossy forest pill. */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font: 400 16px/1.4 var(--body);
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--ink) linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05) 45%, transparent 70%);
  color: var(--yellow);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 91, 0.42),
    inset 0 0 0 1px rgba(255, 235, 91, 0.14),
    0 1px 2px rgba(23, 51, 0, 0.25),
    0 10px 26px -6px rgba(23, 51, 0, 0.42);
}
.btn-primary:hover { transform: translateY(-1px); background-color: #214a00; }
.btn-lg { padding: 12px 24px; font-size: 20px; line-height: 28px; }
.btn-outline { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--yellow); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--yellow); }

/* The nav is a pencil: a yellow tip on the left, then a glass barrel that
   ends in a round cap. */
.nav-wrap { position: sticky; top: 0; z-index: 10; padding: 14px 16px 0 60px; }
.nav {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 6px 6px 16px;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.1) 44%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.1) 56%, transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.06);
}
.nav::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 44px;
  background:
    linear-gradient(var(--ink), var(--ink)) left center / 12px 14px no-repeat,
    var(--yellow);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.nav-links { display: flex; align-items: center; font-size: 16px; }
.nav-links a { padding: 6px 14px; border-radius: 999px; text-decoration: none; transition: background-color 0.2s; }
.nav-links a + a { position: relative; }
.nav-links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  border-left: 1px solid rgba(23, 51, 0, 0.18);
}
.brand, .nav-links a, .nav .btn { white-space: nowrap; }
.nav-links a:hover { background: rgba(255, 235, 91, 0.6); }
.nav .btn { padding: 9px 18px; }

.hero {
  background: var(--lavender);
  box-shadow: 0 -420px 0 0 var(--lavender);
  margin-top: -80px;
  padding: 150px 0 0;
  text-align: center;
  overflow: hidden;
}
.badge { display: inline-flex; align-items: stretch; margin-bottom: 36px; }
.badge-icon { display: grid; place-items: center; width: 34px; background: var(--ink); border-radius: 3px; }
.badge-icon svg { width: 16px; height: 16px; fill: var(--yellow); }
.badge-text {
  margin-left: 8px;
  padding: 7px 14px;
  background: var(--yellow);
  font: 500 15px/1.3 var(--mono);
  clip-path: polygon(0 8%, 6% 0, 94% 6%, 100% 0, 99% 92%, 94% 100%, 5% 94%, 1% 100%);
}
.hero .lead { max-width: 768px; margin: 24px auto 34px; color: #000; line-height: 1.5; }
.lead { font-size: 20px; }
.hero-art { margin: 48px auto 0; width: min(960px, 100%); }

/* Dark forest band with three columns. */
.band-dark { background: var(--forest); color: var(--paper); padding: 88px 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio-item .icon {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}
.trio-item h3 { color: var(--paper); margin-bottom: 14px; }
.trio-item p { font-size: 17px; margin: 0 0 22px; color: #e9eee2; }

/* Process: sketch icons joined by arrows, then the four step cards. */
.process {
  padding: 100px 0;
  background: radial-gradient(ellipse 70% 600px at 50% 0, rgba(255, 235, 91, 0.145), transparent 70%);
}
.process h2 { text-align: center; }
.flow {
  list-style: none;
  padding: 0;
  margin: 48px 0 64px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 44px;
}
.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.flow li + li::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 38px;
  width: 30px;
  height: 20px;
  background: url("/assets/t/saybriefly/img/arrow.svg?v=2") center / contain no-repeat;
}
.flow img { width: 96px; height: 96px; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.step {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 36px 32px 32px;
}
.step-num {
  position: absolute;
  top: -20px;
  left: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  font: 800 20px/1 var(--display);
}
.step:nth-child(2) .step-num { background: var(--mint); }
.step:nth-child(3) .step-num { background: var(--blush); }
.step:nth-child(4) .step-num { background: var(--teal); }
.step h3 { margin-bottom: 12px; }
.step p { margin: 0 0 20px; }
.stores { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.stores li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 10px;
}
.stores b { flex: 1 1 200px; }
.stores a { font-size: 16px; font-weight: 700; }

/* Big statement: daily sign-in with two UI panels. */
.statement { background: var(--mint); padding: 100px 0; text-align: center; }
.statement .lead { max-width: 780px; margin: 24px auto 44px; }
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 44px; }
.panel {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 18px;
  border: 1.5px solid var(--ink);
}
.panel img { width: 100%; }
.panel figcaption { font-weight: 700; margin-top: 12px; }

/* Safety and help as two separated sticky notes. */
.notes { padding: 100px 0 40px; }
.notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.note { border-radius: 16px; padding: 36px 32px; }
.note-mint { background: var(--mint); transform: rotate(-0.6deg); }
.note-blush { background: var(--blush); transform: rotate(0.6deg); }
.note h3 { margin-bottom: 14px; }
.note p { margin: 0 0 22px; }

.finale { padding: 80px 0 110px; text-align: center; }
.finale h2 { margin-bottom: 34px; }

footer { border-top: 1px solid var(--pencil); padding: 40px 0; font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 28px; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #4a5a3a; }

/* Below the full nav width the six links move to a second, swipeable row, so
   the menu stays reachable without JavaScript. */
@media (max-width: 1140px) {
  html { scroll-padding-top: 132px; }
  .nav { flex-wrap: wrap; row-gap: 0; border-radius: 0 26px 26px 0; }
  .nav-links { order: 3; flex: 0 0 100%; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
}
@media (max-width: 1000px) {
  .trio { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .hero { padding-top: 130px; }
  .brand { font-size: 15px; }
  .band-dark, .process, .statement, .notes { padding: 64px 0; }
  .steps, .panels, .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 40px; }
  .step { padding: 34px 22px 24px; }
  .note { padding: 28px 22px; transform: none; }
  .flow { gap: 20px 28px; }
  .flow li + li::before { display: none; }
  .flow img { width: 72px; height: 72px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  h3 { font-size: 21px; }
  .note { padding: 26px 18px; }
}
/* On phones the logo mark alone stands for the brand, so the header keeps the
   store link. */
@media (max-width: 520px) {
  .nav-wrap { padding-left: 44px; }
  .nav::before { width: 30px; }
  .nav .brand-text { display: none; }
  .badge-text { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover { transform: none; }
}
