/* ForgetMeNote site. Fonts are bundled locally with their OFL licenses in /fonts. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --petal: #3299d6;
  --center: #f0c43f;
  --navy: #111b27;

  --bg: #faf9f5;
  --surface: #ffffff;
  --tint: #f1f0ea;
  --text: #16212d;
  --muted: #4f5b67;
  --border: #dcdfe0;
  --link: #1f6aa5;
  --chip-bg: #e6f1fa;
  --chip-text: #1d5f93;
  --chip-border: #c6deef;
  --glow: rgb(50 153 214 / 0.12);
  --code-bg: #111b27;
  --code-text: #e6edf3;
  --code-muted: #9fb0c2;
  --secondary-bg: #ffffff;
  --secondary-border: #b9c3cc;
  --shadow: 0 1px 2px rgb(17 27 39 / 0.06), 0 12px 40px rgb(17 27 39 / 0.12);

  --brand-font: "Fraunces", Georgia, serif;
  --body-font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono-font: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111b27;
    --surface: #172433;
    --tint: #0d1520;
    --text: #e8eef4;
    --muted: #a7b4c2;
    --border: #26374a;
    --link: #7cc0ee;
    --chip-bg: #16283b;
    --chip-text: #a9d5f5;
    --chip-border: #2b4a66;
    --glow: rgb(50 153 214 / 0.2);
    --code-bg: #0b131c;
    --secondary-bg: #1d2c3d;
    --secondary-border: #36506b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 48px rgb(0 0 0 / 0.45);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body-font);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}
.hero__tagline {
  text-wrap: balance;
}
h2 {
  font: 500 clamp(1.9rem, 4.5vw, 2.6rem)/1.15 var(--brand-font);
  font-variation-settings: "SOFT" 70, "WONK" 0;
  letter-spacing: -0.025em;
  margin-bottom: 0.6em;
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.35em;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
code {
  font-family: var(--mono-font);
  font-size: 0.9em;
}
:not(pre) > code {
  background: var(--chip-bg);
  color: var(--text);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

/* Wordmark: Fraunces 500, soft and wonky, tight tracking. */
.wordmark {
  font-family: var(--brand-font);
  font-weight: 500;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  letter-spacing: -0.035em;
}

/* Header */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}
.brand .wordmark {
  font-size: 1.3rem;
  line-height: 1;
}
.nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  list-style: none;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a:hover {
  color: var(--link);
}

/* Hero */
.hero {
  background: radial-gradient(ellipse 60% 70% at 22% 45%, var(--glow), transparent 70%);
  padding-block: clamp(32px, 7vw, 88px) clamp(40px, 7vw, 80px);
}
.hero__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero__flower {
  width: clamp(150px, 22vw, 240px);
  height: auto;
}
.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 5.6rem);
  line-height: 1;
  margin-bottom: 0.18em;
}
.hero__tagline {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  margin-bottom: 0.75em;
}
.hero__lede {
  max-width: 40em;
  margin-bottom: 1.6em;
}
.hero__actions,
.license__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.button--primary {
  background: var(--petal);
  color: var(--navy);
}
.button--primary:hover {
  background: #4aa8e0;
}
.button--secondary {
  background: var(--secondary-bg);
  color: var(--text);
  border-color: var(--secondary-border);
}
.button--secondary:hover {
  border-color: var(--petal);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 1.6em;
}
.chips li {
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Screenshot */
.screenshot {
  margin: 0 auto;
  max-width: 1040px;
}
.screenshot img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section--tinted {
  background: var(--tint);
}
.section__intro {
  max-width: 46em;
  font-size: 1.125rem;
  margin-bottom: 2.2em;
}

.why-grid,
.feature-grid {
  display: grid;
  gap: 16px;
  list-style: none;
}
.why-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.feature-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.why-grid li,
.feature-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 6px;
}
.why-grid h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--petal) 0 70%, var(--center) 70%);
}
.why-grid p,
.feature-grid p {
  color: var(--muted);
  font-size: 0.98rem;
}
.feature-grid :not(pre) > code {
  background: var(--tint);
}

/* Quick start */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.start-grid h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}
.code {
  margin: 0 0 1.2em;
  padding: 18px 20px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font: 0.9rem/1.65 var(--mono-font);
  white-space: pre;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.code__comment {
  color: var(--code-muted);
}
.start-grid__ai {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 8px;
}
.endpoint code {
  display: block;
  padding: 12px 14px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
  font-size: 0.95rem;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 1.2em;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 0.6em;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
  font-size: 0.85rem;
  font-weight: 600;
}
.status {
  margin-top: clamp(28px, 4vw, 40px);
  padding: 16px 20px 2px;
  border-left: 4px solid var(--center);
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.status strong {
  color: var(--text);
}

/* License */
.license {
  max-width: 820px;
  text-align: center;
}
.license p {
  font-size: 1.0625rem;
  margin-bottom: 1.6em;
}
.license__actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 32px;
  align-items: center;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  list-style: none;
}
.footer-links a,
.site-footer__fonts a {
  color: var(--muted);
}
.footer-links a:hover,
.site-footer__fonts a:hover {
  color: var(--link);
}
.site-footer__fonts {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.85rem;
}

/* Not-found page */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}
.not-found img {
  width: 96px;
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .start-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .hero__flower {
    width: 112px;
  }
  .hero__actions,
  .chips {
    justify-content: center;
  }
  .hero {
    background: radial-gradient(ellipse 90% 45% at 50% 22%, var(--glow), transparent 70%);
  }
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav__extra {
    display: none;
  }
  .button {
    flex: 1 1 100%;
  }
  .code {
    padding: 16px;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
