/* forgetful.me */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/lora.ttf) format("truetype");
}
@font-face {
  font-family: "Apfel Grotezk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/apfel-grotezk.otf) format("opentype");
}
/* Only for the Forgetful wordmark. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif.woff2) format("woff2");
}

/* Tokens from the Forgetful design system. Paper is the light theme, Dark the
   dark one. Periwinkle is the only colour; depth comes from raised surfaces and
   hairlines, never shadows. */
:root {
  --paper: #f5f2ed;        /* surface */
  --paper-deep: #ede9e2;   /* surface-raised */
  --card: #ede9e2;
  --ink: #211f1d;
  --ink-soft: #4a4640;     /* ink-muted */
  --muted: #4a4640;        /* ink-subtle is 3.2:1 on Paper, too faint for small text */
  --hair: #d6d1c8;
  --accent: #7188ff;
  --accent-deep: #434e89;
  --accent-text: #434e89;
  --on-accent: #141413;
  --btn2: #7188ff;         /* cream barely shows on Paper, so the small button is periwinkle too */
  --serif: "Lora", Georgia, serif;
  --sans: "Apfel Grotezk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wordmark: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413;
    --paper-deep: #1a1917;
    --card: #1a1917;
    --ink: #eae5d9;
    --ink-soft: #c4bdb1;
    --muted: #9a9488;
    --hair: #3a3835;
    --accent-text: #7188ff;
    --btn2: #eae5d9;       /* cream */
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

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

.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand span { font: 32px/1 var(--wordmark); }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--btn2);
  color: var(--on-accent);
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { color: var(--on-accent); opacity: 0.88; }
.btn-primary { background: var(--accent); color: var(--on-accent); min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-primary:hover { color: var(--on-accent); }

/* ---------- hero ---------- */

.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 32px; align-items: end; }
.hero-copy { padding: 72px 0 96px; display: flex; flex-direction: column; gap: 28px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(52px, 8vw, 96px); line-height: 1; }
.underline { position: relative; display: inline-block; }
.underline svg { position: absolute; left: 0; bottom: -0.08em; width: 100%; height: 0.22em; color: var(--accent); overflow: visible; }
.lead { margin: 0; max-width: 30em; font-size: 20px; line-height: 1.5; color: var(--ink-soft); }
.cta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.fine { margin: 0; font-size: 15px; color: var(--muted); }

.figure { color: var(--accent); align-self: end; }
.figure svg { display: block; width: 100%; height: auto; }
.figure .body { stroke: var(--ink); }

/* ---------- sections ---------- */

section { padding: 96px 0; }
.band { background: var(--paper-deep); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
h2 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; margin-bottom: 20px; }
.section-lead { margin: 0 0 48px; max-width: 34em; font-size: 19px; color: var(--ink-soft); }

.shot {
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.shot-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--hair); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { padding: 28px; border: 1px solid var(--hair); border-radius: 16px; background: var(--card); }
.steps .n { display: block; font: 56px/1 var(--serif); color: var(--accent-text); margin-bottom: 18px; }
.steps h3 { font-size: 26px; line-height: 1.1; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); }
kbd { font: 13px var(--sans); padding: 2px 7px; border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: 6px; background: var(--paper); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.features h3 { font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.features p { margin: 0; color: var(--ink-soft); }
.features svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--hair); border-radius: 18px; background: var(--card); }
.plan.featured { border: 2px solid var(--accent); padding: 27px; }
.plan h3 { font: 15px var(--sans); letter-spacing: 0; color: var(--ink-soft); }
.price { font: 64px/1 var(--serif); letter-spacing: -0.02em; margin: 6px 0 4px; }
.price small { font: 16px var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan p { margin: 0; color: var(--ink-soft); }
.tag { position: absolute; top: 26px; right: 24px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.plans-note { margin: 28px 0 0; max-width: 40em; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 18px; }
.checks svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent); }

.soon { display: flex; align-items: center; gap: 32px; padding: 40px; border: 1px dashed var(--hair); border-radius: 20px; }
.soon svg { width: 96px; height: 96px; flex: none; color: var(--accent); }
.soon h2 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 40px); }
.soon p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: 18px; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--hair); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; font: 22px/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

.closing { text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing h2 { margin: 0; }

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

.site-foot { padding: 48px 0 56px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-foot .brand span { font-size: 26px; }
.site-foot .brand svg { width: 28px; height: 28px; }
.foot-tag { font: 20px var(--serif); color: var(--ink-soft); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- long-form pages ---------- */

.prose { max-width: 720px; padding: 48px 24px 96px; margin: 0 auto; }
.prose h1 { font-size: clamp(48px, 7vw, 76px); margin-bottom: 8px; }
.prose h2 { font-size: 34px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); margin-top: 0; }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 40px 0 8px; }
  .figure { max-width: 360px; margin: 0 auto; width: 100%; }
  section { padding: 72px 0; }
  .steps, .features, .plans, .split { grid-template-columns: 1fr; }
  .soon { flex-direction: column; align-items: flex-start; padding: 28px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand span { font-size: 28px; }
  .site-head .btn { padding: 0 16px; }
  .lead { font-size: 18px; }
}

/* ---------- Claude ---------- */

.claude { margin-bottom: 64px; align-items: center; }
.claude .section-lead { margin-bottom: 28px; }
.chat { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--hair); border-radius: 20px; background: var(--card); }
.chat p { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.45; }
.chat .you { align-self: flex-end; background: var(--paper-deep); border-bottom-right-radius: 6px; }
.chat .them { align-self: flex-start; color: var(--ink-soft); padding-left: 0; }
.chat .them b { color: var(--ink); font-weight: 400; }
.chat .page { margin-top: 6px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--paper); }
.chat .page p { max-width: none; padding: 3px 0; border-radius: 0; }
.chat .todo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; }
.chat .box { width: 15px; height: 15px; flex: none; border: 1.6px solid var(--muted); border-radius: 4px; }
.chat .done { color: var(--muted); text-decoration: line-through; }
.chat .done .box { background: var(--accent); border-color: var(--accent); }
.chat .log { margin-left: 25px !important; font-size: 14px; color: var(--muted); }
.chat .log::before { content: "• "; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 5px; background: var(--paper); border: 1px solid var(--hair); word-break: break-all; }

/* ---------- cookie choice (Google Analytics only) ---------- */

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; padding: 16px 20px; border: 1px solid var(--hair); border-radius: 16px; background: var(--card); }
.consent p { margin: 0; flex: 1 1 260px; font-size: 15px; color: var(--ink-soft); }
.consent-actions { display: flex; gap: 10px; }
.consent .btn-primary { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--hair); font: inherit; font-size: 15px; cursor: pointer; }
.btn-quiet:hover { color: var(--ink); }
.consent button { font-family: var(--sans); cursor: pointer; border: 0; }
.consent .btn-quiet { border: 1px solid var(--hair); }
.foot-links button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
