/* hushpix.app. The look of the author's blog (blog.lufficc.com): paper and grain, a serif for what is read first, a
   mono for labels, hairlines. The layout is an app's: a wide page, the words beside the phone, each section's words
   beside its drawing; reading pages (questions, policy) keep the blog's one narrow column. Behind the hero, a page of
   a screenshot with its private words covered (tools/make_texture.py); the accent is the app's cover green. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.6e4f2958c3.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-ext.45683de03d.woff2") format("woff2-variations");
  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: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/mono-latin.18be452724.woff2") format("woff2-variations");
  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 dark;
  --bg: #f8f6f1;
  --bg-elev: #fffefb;
  --bg-sunk: #efece5;
  --text: #191816;
  --text-body: #2c2a27;
  --text-2: #55514b;
  --text-3: #6f6a63;
  --border: #e3dfd6;
  --border-strong: #cbc5b9;
  /* The app's accent (Settings → Accent: Sage) and the green its solid cover is drawn in. */
  --accent-text: #2b6e4e;
  --accent-soft: #dcebe2;
  --cover: #58be6a;
  --phone: #1c1c1e;
  --hero-ink: color-mix(in srgb, var(--text) 22%, transparent);
  --hero-cover: color-mix(in srgb, var(--cover) 45%, transparent);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans CJK SC", "Microsoft YaHei", "Noto Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", "Noto Serif SC", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif",
    Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 40rem;
  --page: 74rem;
  --gutter: 1.25rem;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --bg-elev: #1a1917;
    --bg-sunk: #0c0b0a;
    --text: #ece8e1;
    --text-body: #d6d2ca;
    --text-2: #aaa49b;
    --text-3: #8a857f;
    --border: #2a2825;
    --border-strong: #3b3935;
    --accent-text: #8fd3a8;
    --accent-soft: #1c2e24;
    --phone: #26262a;
    --hero-ink: color-mix(in srgb, var(--text) 16%, transparent);
    --hero-cover: color-mix(in srgb, var(--cover) 32%, transparent);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  text-spacing-trim: trim-start;
  text-autospace: normal;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body {
    font-size: 1.0625rem;
  }
}

/* ---- layout ------------------------------------------------------------------------------------------ */

.page {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Paper grain over every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("/assets/img/grain.e660e152b7.svg");
}
@media (prefers-color-scheme: dark) {
  body::before {
    opacity: 0.045;
    filter: invert(1);
  }
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}
a {
  color: inherit;
}
a:hover {
  color: var(--accent-text);
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 4px;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}
p {
  margin: 0;
}
.container {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.4rem 0.8rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.lead {
  margin-top: 1.2rem;
  color: var(--text-body);
  font-size: 1.08rem;
}
.more {
  margin-top: 1.4rem;
  font-size: 0.95rem;
}
.more a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
}

/* ---- header -------------------------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}
@media (min-width: 768px) {
  .site-header {
    padding-top: 3rem;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.85rem;
}
.site-nav a,
.lang summary {
  color: var(--text-3);
  text-decoration: none;
}
.site-nav a:hover,
.lang summary:hover {
  color: var(--accent-text);
}

.lang {
  position: relative;
}
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin-top: -0.2rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 5;
  min-width: 11rem;
  max-height: min(70vh, 30rem);
  overflow: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.25);
}
.lang li a {
  display: block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
}
.lang li a:hover {
  background: var(--bg-sunk);
  color: var(--text);
}
.lang li a[aria-current] {
  color: var(--text);
  font-weight: 600;
}

/* ---- hero: the words, and the phone going through the three steps --------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 3rem 5rem;
}
/* A page of a screenshot, its private words covered, strongest around the phone and fading to paper. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --fade: radial-gradient(ellipse 46% 62% at 74% 48%, #000 0%, rgb(0 0 0 / 0.55) 45%, transparent 100%);
  background: var(--ink);
  -webkit-mask: var(--lines) center / cover no-repeat, var(--fade);
  -webkit-mask-composite: source-in;
  mask: var(--lines) center / cover no-repeat, var(--fade);
  mask-composite: intersect; /* after the shorthand, which resets it */
}
.hero::before {
  --ink: var(--hero-ink);
  --lines: url("/assets/img/texture-ink.f5f7aee8de.svg");
}
.hero::after {
  --ink: var(--hero-cover);
  --lines: url("/assets/img/texture-cover.37b7456b25.svg");
}
.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    padding-block: 4.5rem 7rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
  }
}
.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
/* The private detail in the title, covered the way the app covers it: a solid bar over the words. */
.redact {
  padding: 0 0.12em;
  border-radius: 0.12em;
  background: var(--cover);
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.redact::selection {
  color: var(--text);
}
.hero .lead {
  max-width: 34rem;
  font-size: 1.12rem;
}

.steps {
  max-width: 34rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.step {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: baseline;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
  animation: step-on 12s infinite;
  opacity: 0.45;
}
.step .t {
  margin-right: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
}
.step .d {
  color: var(--text-2);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 19rem);
  padding: 1.6rem;
}
/* The editor's crop marks around the phone. */
.crop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
}
.crop path {
  vector-effect: non-scaling-stroke;
}
.phone {
  padding: 0.6rem;
  background: var(--phone);
  border-radius: 2.6rem;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(0 0 0 / 0.08);
}
@media (prefers-color-scheme: dark) {
  .phone {
    box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.1);
  }
}
.screen {
  position: relative;
  aspect-ratio: 9 / 20;
  overflow: hidden;
  background: var(--bg-elev);
  border-radius: 2rem;
}
.slot {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slot-on 12s infinite;
}
.slot img,
.slot svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Each step holds the first third of its cycle: slot 2 runs 8 s ahead, slot 3 4 s, so they follow in turn. */
.slot-2,
.step-2 {
  animation-delay: -8s;
}
.slot-3,
.step-3 {
  animation-delay: -4s;
}
@keyframes slot-on {
  0%, 30% { opacity: 1; }
  33.4%, 97% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes step-on {
  0%, 30% { opacity: 1; }
  33.4%, 97% { opacity: 0.45; }
  100% { opacity: 1; }
}
.hero.is-away .slot,
.hero.is-away .step {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .slot,
  .step {
    animation: none;
  }
  .slot-1 {
    opacity: 1;
  }
  .step {
    opacity: 1;
  }
}

/* The drawn screen, until a screenshot takes its place: the drawings' lines, a shade lighter. */
.screen {
  --art-ink: var(--border-strong);
}
.ph-card {
  fill: var(--bg);
  stroke: var(--border);
}
.ph-dim {
  fill: rgb(0 0 0 / 0.18);
}
.ph-sheet {
  fill: var(--bg-elev);
  stroke: var(--border);
}
.ph-ok {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- features: words on one side, a drawing on the other ------------------------------------------- */

.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: 4.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    padding-block: 6.5rem;
  }
  .feature.flip .feature-copy {
    order: 2;
  }
}
.feature h2,
.pricing h2,
.closing h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.feature .lead {
  max-width: 32rem;
  font-size: 1.02rem;
}

.kinds {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-body);
  font-size: 0.86rem;
}

/* Drawings in the site's lines: ink, found (dashed, accent), covered (cover green). */
.art {
  display: block;
  width: 100%;
}
.a-line {
  fill: none;
  stroke: var(--art-ink, var(--text-3));
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.a-ink {
  fill: var(--art-ink, var(--text-3));
}
.a-ink-2 {
  fill: var(--border);
}
.a-find {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}
.a-cover {
  fill: var(--cover);
}
.a-soft {
  fill: var(--cover);
  opacity: 0.35;
}
.a-strike {
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
/* One card look for the tiles, the comparison and the plans. */
.tile,
.compare,
.plan {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tile {
  padding: 0.8rem 0.8rem 0.7rem;
}
.tile figcaption {
  margin-top: 0.3rem;
}

.compare {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}
.cmp-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 520px) {
  .cmp-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
.cmp-tag.cmp-ok {
  color: var(--accent-text);
}
.cmp-bubble {
  fill: var(--bg-sunk);
}
.cmp-text {
  fill: var(--border-strong);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.facts li::before,
.plan li::before {
  content: "✓ ";
  color: var(--accent-text);
}
.lang-note {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* ---- Free and Pro ------------------------------------------------------------------------------------ */

.pricing {
  padding-block: 4.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) {
  .pricing {
    padding-block: 6.5rem;
  }
}
.pricing-head {
  max-width: 36rem;
}
.plans {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.6rem;
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.6rem;
}
.plan-pro {
  border-color: color-mix(in srgb, var(--cover) 55%, var(--border));
}
.plan h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.5rem;
}
.plan .plus {
  margin-top: 0.6rem;
  color: var(--text-3);
  font-size: 0.9rem;
}
.plan ul {
  flex: 1;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}
.plan li {
  padding-block: 0.3rem;
  color: var(--text-body);
  font-size: 0.95rem;
}
.plan-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
}
.note {
  margin-top: 1.4rem;
  color: var(--text-3);
  font-size: 0.88rem;
}

.closing {
  display: grid;
  justify-items: center;
  padding-block: 5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing img {
  border-radius: 14px;
}
.closing .lead {
  max-width: 32rem;
}

/* ---- reading pages: the blog's one column --------------------------------------------------------- */

.reading {
  margin-top: 4rem;
}
.reading > h1,
.policy h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.qa {
  margin: 2rem 0 0;
}
.qa div {
  padding-block: 1.1rem;
  border-top: 1px solid var(--border);
}
.qa dt {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
}
.qa dd {
  margin: 0.4rem 0 0;
  color: var(--text-2);
}

/* ---- privacy policy and 404 ---------------------------------------------------------------------------- */

.policy h2 {
  margin-top: 2.6rem;
  font-size: 1.4rem;
}
.policy p {
  margin-top: 1rem;
  color: var(--text-body);
}
.policy .policy-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}
.policy .owner {
  padding: 0.9rem 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.policy a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
}
.policy .other {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}

.error {
  margin-top: 6rem;
}
.error h1 {
  margin-top: 1rem;
}
.error .lead + .lead {
  margin-top: 0.4rem;
}
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2rem;
}
.error-links a {
  color: var(--accent-text);
}

/* ---- footer -------------------------------------------------------------------------------------------- */

.site-footer {
  margin-top: 7rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.mark {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-2);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.meta a,
.footer-langs a {
  color: inherit;
  text-decoration: none;
}
.meta a:hover,
.footer-langs a:hover {
  color: var(--accent-text);
}
.tagline {
  margin-top: 0.5rem;
  color: var(--text-3);
  font-size: 0.88rem;
}
.footer-langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-langs a[aria-current] {
  color: var(--text);
}
.fine {
  margin-top: 1.2rem;
  color: var(--text-3);
  font-size: 0.74rem;
  line-height: 1.7;
}
