/* Line a Day — a private, one-line-a-day diary.
   Signature: a handwritten line on ruled paper, and the same day across years.
   Warm cream paper + the icon's crimson quill; a serif to read, a hand to write. */

:root {
  --paper:      #F7F0E3;   /* warm diary cream */
  --paper-2:    #F1E7D4;
  --peach:      #FBE4D0;   /* the icon's backdrop — hero wash */
  --card:       #FFFDF8;
  --ink:        #2A2019;   /* warm near-black */
  --text:       #463B31;
  --muted:      #927F6C;
  --line:       #E3D6C0;   /* ruled line / hairline */
  --crimson:    #A31E4B;   /* the quill */
  --crimson-deep:#7C1338;
  --accent:     var(--crimson);
  --accent-ink: #931B44;

  --radius:     18px;
  --radius-lg:  26px;
  --shadow:     0 26px 52px -30px rgba(42,32,25,.42);
  --shadow-sm:  0 12px 26px -18px rgba(42,32,25,.45);
  --maxw:       1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.14rem; line-height: 1.65;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }

h1, h2, h3, .display {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500; line-height: 1.08; letter-spacing: -0.01em;
  color: var(--ink); margin: 0;
}
.hand { font-family: 'Caveat', cursive; }

.eyebrow {
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 14px 0 0; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,240,227,.84); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Newsreader',serif; font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.topnav { display: flex; gap: 24px; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.topnav a:hover { color: var(--accent-ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--crimson); color: #fff;
  padding: 15px 26px; border-radius: 999px;
  font-family: 'Hanken Grotesk',sans-serif; font-weight: 700; font-size: 1.04rem;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--crimson) 75%, transparent);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .apple { width: 19px; height: 22px; flex: 0 0 auto; }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

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

.hero { position: relative; overflow: hidden; padding: 66px 0 82px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 82% 8%, color-mix(in srgb, var(--peach) 75%, transparent), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); font-weight: 500; max-width: 11ch; margin: 16px 0 0; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lede { max-width: 40ch; margin: 22px 0 0; font-size: 1.22rem; color: var(--text); }
.hero .cta-row { margin-top: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .fine { font-weight: 600; font-size: .92rem; color: var(--muted); }

/* the diary page — the signature */
.diary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 32px 34px; position: relative; }
.diary .qmark { position: absolute; top: 26px; right: 30px; width: 34px; height: 34px; }
.diary .dow { font-family: 'Caveat',cursive; font-weight: 700; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.diary .date { font-family: 'Caveat',cursive; font-weight: 600; font-size: 1.3rem; color: var(--muted); margin-top: 2px; }
.diary .lines {
  margin-top: 22px; padding-top: 4px;
  background-image: repeating-linear-gradient(var(--card), var(--card) 2.5rem, var(--line) 2.5rem, var(--line) calc(2.5rem + 1.4px));
  min-height: 10rem;
}
.diary .entry { font-family: 'Caveat',cursive; font-weight: 600; font-size: 1.62rem; line-height: 2.55rem; color: var(--text); }
.diary .caret { display: inline-block; width: 2px; height: 1.4rem; background: var(--crimson); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
.diary .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.diary .left { font-size: .85rem; color: var(--muted); font-weight: 600; }
.diary .add { background: var(--ink); color: var(--paper); font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; }

/* ---------- on this day ---------- */

.years { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.yearcard { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.yearcard .yr { font-family: 'Newsreader',serif; font-weight: 600; font-size: 1.5rem; color: var(--accent-ink); border-right: 1px solid var(--line); }
.yearcard .ln { font-family: 'Caveat',cursive; font-weight: 600; font-size: 1.5rem; color: var(--text); line-height: 1.35; }
.yearcard--now { border-color: color-mix(in srgb, var(--crimson) 40%, var(--line)); box-shadow: var(--shadow-sm); }

/* ---------- features ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--crimson) 10%, var(--card)); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 23px; height: 23px; stroke: var(--crimson); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feature .free { font-family: 'Hanken Grotesk',sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: color-mix(in srgb,var(--crimson) 12%, #fff); padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.feature p { margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.55; }

/* ---------- no-AI band ---------- */

.noai { text-align: center; }
.noai h2 em { font-style: italic; color: var(--accent-ink); }
.noai .big { font-family: 'Caveat',cursive; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--ink); margin: 0 auto; max-width: 20ch; line-height: 1.2; }
.noai p { max-width: 46ch; margin: 22px auto 0; color: var(--muted); font-size: 1.12rem; }

/* ---------- screenshots ---------- */

.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; padding: 8px 24px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shot { flex: 0 0 auto; width: 234px; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- privacy strip ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; max-width: 940px; margin: 44px auto 0; }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.promise .ic { width: 34px; height: 34px; margin-bottom: 14px; color: var(--crimson); }
.promise .ic svg { width: 34px; height: 34px; stroke: var(--crimson); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promise b { font-family: 'Newsreader',serif; color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.promise p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- closer ---------- */

.closer { text-align: center; }
.closer h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.closer .cta-row { justify-content: center; margin-top: 28px; display: flex; gap: 16px; }

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

.foot { background: var(--card); border-top: 1px solid var(--line); padding: 44px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot nav a { color: var(--text); text-decoration: none; margin-left: 22px; font-weight: 600; }
.foot nav a:hover { color: var(--accent-ink); }
.foot .copy { width: 100%; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }

/* ---------- content pages (support / privacy) ---------- */

.page-head { text-align: center; padding: 58px 0 64px; position: relative; overflow: hidden; }
.page-head::before { content:""; position:absolute; inset:0; background: radial-gradient(55% 90% at 50% 0%, color-mix(in srgb, var(--peach) 70%, transparent), transparent 70%); }
.page-head > * { position: relative; }
.page-head img.logo { width: 84px; height: 84px; border-radius: 21px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.page-head h1 { font-size: clamp(2.2rem,5.4vw,3.2rem); }
.back-link { display: inline-block; margin-top: 22px; color: var(--accent-ink); background: color-mix(in srgb, var(--crimson) 10%, #fff); padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.prose { max-width: 760px; margin: 0 auto; padding: 66px 24px; }
.prose h2 { font-size: 1.9rem; margin: 8px 0 22px; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin: 38px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.updated { display: inline-block; font-family: 'Hanken Grotesk',sans-serif; font-weight: 700; font-size: .85rem; color: var(--accent-ink); background: color-mix(in srgb, var(--crimson) 12%, #fff); padding: 8px 14px; border-radius: 10px; margin-bottom: 28px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 22px 26px; font-family:'Newsreader',serif; font-weight: 600; font-size: 1.18rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--crimson); font-weight: 700; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); font-size: 1.04rem; }
.callout { background: color-mix(in srgb, var(--crimson) 8%, #fff); border-radius: var(--radius); padding: 24px 28px; }

/* ---------- motion ---------- */

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes writein { from { opacity: 0; } to { opacity: 1; } }
.hero h1, .hero .lede, .hero .cta-row { animation: rise .6s both cubic-bezier(.2,.7,.2,1); }
.hero .lede { animation-delay: .06s; } .hero .cta-row { animation-delay: .12s; }
.diary { animation: rise .7s .1s both cubic-bezier(.2,.7,.2,1); }
.diary .entry { animation: writein 1.1s .5s both; }

/* ---------- a11y ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .diary .caret { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1.08rem; }
  .section { padding: 62px 0; }
  .grid { grid-template-columns: 1fr; }
  .yearcard { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 20px; }
  .topnav { gap: 14px; font-size: .95rem; }
  .topnav a.hide-sm { display: none; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot nav a { margin: 0 22px 0 0; }
}
