/* Verdelle website. Palette and type mirror lib/core/theme.dart in the app. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #f7f2e8;
  --parchment: #efe6d4;
  --parchment-deep: #e3d6be;
  --paper-edge: #d6c6a8;
  --ink: #233629;
  --ink-soft: #4d5e51;
  --ink-mute: #85907f;
  --forest: #2f4a37;
  --moss: #6e8957;
  --sage: #a6b796;
  --leaf-light: #c8d5a4;
  --blush: #d8a39d;
  --lavender: #b4a6cc;
  --butter: #f0dd9c;
  --night: #233245;
  --night-ink: #e9e4d8;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --wrap: 1120px;
  --measure: 68ch;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 380;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
}
h3 {
  font-size: 1.35rem;
  font-weight: 450;
}
p {
  margin: 0 0 1em;
}
.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.aside {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.6rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--forest);
  color: var(--ivory);
  padding: 0.5rem 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--paper-edge);
  background: var(--ivory);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img {
  border-radius: 8px;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-desktop a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
}
.nav-desktop a[aria-current='page'],
.nav-desktop a:not(.btn):hover {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--moss);
}
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 1rem;
  min-height: 48px;
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  font-weight: 600;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-mobile[open] summary {
  background: var(--parchment);
}
.nav-mobile nav {
  position: absolute;
  right: 1.25rem;
  left: 1.25rem;
  margin-top: 0.5rem;
  z-index: 5;
  display: grid;
  background: var(--ivory);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgb(35 54 41 / 0.12);
  padding: 0.5rem;
}
.nav-mobile nav a {
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 12px;
}
.nav-mobile nav a:hover {
  background: var(--parchment);
}
@media (min-width: 800px) {
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--ivory);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--ink);
}
.btn-small {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
}
.btn-soon,
.btn-soon:hover {
  background: var(--parchment);
  color: var(--ink-soft);
  border: 1px dashed var(--paper-edge);
  cursor: default;
}
.cta-note {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-top: 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-tint {
  background: var(--parchment);
}
.section-night {
  background: var(--night);
  color: var(--night-ink);
}
.section-night h2,
.section-night h3 {
  color: #fbf8f1;
}
.section-night .lead,
.section-night p {
  color: #d4d0c4;
}
.section-night a {
  color: var(--leaf-light);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.divider {
  display: block;
  width: 72px;
  height: 14px;
  margin: 0 0 1.25rem;
  color: var(--moss);
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  margin-bottom: 0.4em;
}
.hero-copy .btn {
  margin-top: 0.5rem;
}
.hero-media {
  justify-self: center;
}

/* Phone frame around screenshots */
.phone {
  margin: 0;
  width: min(300px, 78vw);
  border-radius: 34px;
  padding: 8px;
  background: #1c2620;
  box-shadow: 0 24px 50px rgb(35 54 41 / 0.22);
}
.phone img,
.phone video {
  border-radius: 27px;
  width: 100%;
  aspect-ratio: 540 / 1170;
  object-fit: cover;
  object-position: top;
}
.phone figcaption,
.shot figcaption {
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 0.75rem;
}
.phone figcaption {
  color: #b9bfb4;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  background: var(--ivory);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 1.5rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--leaf-light);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.steps h3 {
  margin-bottom: 0.3em;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* Feature rows */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
}
.feature + .feature {
  border-top: 1px solid var(--paper-edge);
}
.feature-media {
  justify-self: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.chips li {
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.92rem;
  background: var(--ivory);
}

/* Promise cards */
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--ivory);
}
.section-night .card {
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(255 255 255 / 0.14);
}
.card h3 {
  margin-bottom: 0.35em;
}
.card p {
  margin: 0;
}

/* Swipe strip of screenshots on phones */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 70vw);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.25rem 1.5rem;
  margin: 0 -1.25rem;
}
.shot {
  margin: 0;
  scroll-snap-align: center;
}
.shot img {
  border-radius: 22px;
  border: 1px solid var(--paper-edge);
  box-shadow: 0 10px 24px rgb(35 54 41 / 0.12);
}

/* FAQ */
.faq {
  max-width: var(--measure);
}
.faq details {
  border-bottom: 1px solid var(--paper-edge);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  position: relative;
  min-height: 48px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.9rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--moss);
}
.faq details[open] summary::after {
  content: '\2013';
}
.faq details p {
  color: var(--ink-soft);
}

.closing {
  text-align: center;
}
.closing .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Prose pages: how it works, about, privacy, articles */
.page-head {
  padding: 3rem 0 1.5rem;
}
.prose {
  max-width: var(--measure);
}
.prose h2 {
  margin-top: 2.4em;
}
.prose h3 {
  margin-top: 1.8em;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose figure {
  margin: 2rem 0;
}
.prose .note {
  background: var(--parchment);
  border-left: 3px solid var(--moss);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
}
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.98rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--paper-edge);
}
th {
  font-weight: 700;
  background: var(--parchment);
}
.toc {
  font-size: 0.95rem;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  max-width: var(--measure);
}
.toc ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}
.byline {
  color: var(--ink-mute);
  font-size: 0.95rem;
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--ink-mute);
}
.post-list {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}
.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--paper-edge);
}
.post-list h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25em;
}
.post-list a {
  text-decoration: none;
  color: var(--ink);
}
.post-list a:hover {
  text-decoration: underline;
}
.about-app {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  background: var(--parchment);
  max-width: var(--measure);
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.press-grid figure {
  margin: 0;
  font-size: 0.85rem;
}
.press-grid img {
  border-radius: 12px;
  border: 1px solid var(--paper-edge);
  margin-bottom: 0.4rem;
}
mark {
  background: var(--butter);
}

/* Footer */
.site-footer {
  background: var(--night);
  color: #d4d0c4;
  padding: 3rem 0;
  margin-top: 0;
}
.site-footer .wordmark {
  color: #fbf8f1;
}
.site-footer a {
  color: var(--leaf-light);
}
.footer-inner {
  display: grid;
  gap: 1.75rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer-nav a {
  padding: 0.5rem 0;
}
.footer-meta {
  font-size: 0.88rem;
  color: #aab0a5;
  margin: 0;
}

/* Gentle entrance, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s ease-out both;
  }
  .sway {
    transform-origin: 50% 100%;
    animation: sway 6s ease-in-out infinite;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes sway {
  50% {
    transform: rotate(4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Tablet */
@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }
  .steps,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .feature:nth-of-type(even) .feature-media {
    order: -1;
  }
  .footer-inner {
    grid-template-columns: 2fr 1fr;
  }
  .footer-meta {
    grid-column: 1 / -1;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .shots {
    grid-auto-flow: initial;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0.5rem 0 1.5rem;
  }
}

.feature-media.shot {
  max-width: 260px;
}
.more {
  margin-top: 1.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
