/* Fruity Designs site. No third-party fonts, scripts or trackers (see the
   privacy policy): body text uses system fonts, and headings use Cormorant
   Garamond, self-hosted from /assets/fonts (SIL OFL, licence alongside). It
   matches the App Store screenshots. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #5c5650;
  --line: #e6dfd4;
  --accent: #b23a2e;
  --accent-soft: #f6e3df;
  --emphasis: var(--accent);

  --readit-navy: #16223a;
  --readit-surface: #1f2f4d;
  --readit-cream: #f7f5ef;
  --readit-gold: #d8bd81;
  --readit-muted: #b7ad91;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --max: 68rem;
  --prose: 42rem;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1d1b18;
    --text: #f3efe8;
    --muted: #b3aba0;
    --line: #34302b;
    --accent: #f2877a;
    --accent-soft: #3a2421;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
}

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; }

/* Header and footer */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--line); margin-top: 4rem;
  color: var(--muted); font-size: 0.875rem;
}
.site-footer .wrap { padding-top: 2rem; padding-bottom: 2.5rem; }
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: var(--muted); }

/* Studio home */

.hero { padding: 4rem 0 3rem; }
.hero h1 {
  font: 600 clamp(2.6rem, 7vw, 4.4rem)/1.02 var(--display);
  letter-spacing: -0.01em; margin: 0 0 1rem; max-width: 16ch;
}
.hero p { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 36rem; }

.section-title {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 0 0 1rem; font-weight: 600;
}

.app-card {
  display: grid; gap: 1.5rem; align-items: center;
  background: var(--readit-navy); color: var(--readit-cream);
  border-radius: var(--radius); padding: 1.5rem; text-decoration: none;
}
@media (min-width: 40rem) {
  .app-card { grid-template-columns: auto 1fr auto; padding: 2rem; }
}
.app-card .icon {
  width: 84px; height: 84px; border-radius: 20px; background: var(--readit-surface);
  display: grid; place-items: center;
}
.app-card .icon img { width: 56px; }
.app-card h3 { font: 700 2rem/1.1 var(--display); margin: 0 0 0.25rem; }
.app-card p { margin: 0; color: var(--readit-muted); }
.app-card .go { color: var(--readit-gold); font-weight: 600; white-space: nowrap; }
.app-card:hover .go { text-decoration: underline; }
.app-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.contact { margin-top: 3rem; }

/* Prose pages (privacy, support) */

.prose { max-width: var(--prose); padding: 3rem 0 0; }
.prose h1 { font: 600 clamp(2.3rem, 6vw, 3.2rem)/1.08 var(--display); margin: 0 0 0.5rem; }
.prose .meta { color: var(--muted); margin: 0 0 2rem; }
.prose h2 { font: 700 1.65rem/1.2 var(--display); margin: 2.5rem 0 0.5rem; }
.prose h3 { font-size: 1.05rem; margin: 1.75rem 0 0.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.summary {
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 0 0 1rem;
}
.summary p { margin: 0.25rem 0; }

/* Read It product page */

.readit {
  background: var(--readit-navy); color: var(--readit-cream);
  --emphasis: var(--readit-gold);
}

h1, h2, h3 { text-wrap: balance; }

/* One highlighted word or phrase per headline, as in the App Store screenshots. */
h1 em, h2 em, h3 em { font-style: italic; color: var(--emphasis); }
.readit a { color: var(--readit-gold); }
.readit-hero { padding: 4rem 0 3rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .readit-hero { grid-template-columns: 1.1fr 1fr; } }
.readit-hero .crest { width: 72px; margin-bottom: 1.25rem; }
.readit-hero h1 {
  font: 600 clamp(2.8rem, 8vw, 4.8rem)/1 var(--display);
  margin: 0 0 1rem;
}
.readit-hero .lede { font-size: 1.25rem; color: var(--readit-muted); margin: 0 0 1.5rem; max-width: 32rem; }
.badge {
  display: inline-block; border: 1px solid var(--readit-gold); color: var(--readit-gold);
  border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; font-size: 0.95rem;
}

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.shots img {
  border-radius: 18px; border: 1px solid rgba(247, 245, 239, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.shots img:nth-child(2) { transform: translateY(-1.25rem); }

.features { padding: 1rem 0 4rem; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--readit-surface); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.5rem; }
.feature h2 { font: 700 1.5rem/1.15 var(--display); margin: 0 0 0.5rem; color: var(--readit-gold); }
.feature p { margin: 0; color: var(--readit-cream); opacity: 0.88; font-size: 0.98rem; }

.readit-more { padding: 0 0 4rem; display: grid; gap: 2rem; }
@media (min-width: 52rem) { .readit-more { grid-template-columns: 1fr 1fr; } }
.readit-more h2 { font: 700 1.9rem/1.15 var(--display); margin: 0 0 0.5rem; }
.readit-more p, .readit-more li { color: var(--readit-cream); opacity: 0.9; }
.readit-more ul { padding-left: 1.25rem; margin: 0.5rem 0 0; }

.readit .site-header { border-color: rgba(247, 245, 239, 0.12); }
.readit .brand, .readit .site-nav a:hover, .readit .site-nav a[aria-current="page"] { color: var(--readit-cream); }
.readit .site-nav a { color: var(--readit-muted); }
.readit .site-footer { border-color: rgba(247, 245, 239, 0.12); color: var(--readit-muted); margin-top: 0; }
.readit .site-footer a { color: var(--readit-muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Live RSVP demo: the app's Classical theme (cream page, oxblood focal
   letter). The focal letter's centre sits 42% across, as in the app;
   rsvp-demo.js keeps the prefix and suffix either side of it. */

.rsvp {
  margin: 0; background: #f5efe0; color: #2b2620;
  border-radius: 28px; padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  width: 100%; max-width: 30rem; justify-self: center;
}
.rsvp-title { text-align: center; font-weight: 600; font-size: 0.95rem; margin: 0; }
.rsvp-title span { display: block; font-weight: 400; font-size: 0.8rem; color: #5c5346; }

.rsvp-stage { padding: 2.5rem 0; display: grid; justify-items: start; }
.rsvp-tick {
  display: block; width: 1.5px; height: 1rem; background: #5c5346; opacity: 0.6;
  margin-left: 42%; transform: translateX(-50%);
}
.rsvp-word {
  position: relative; width: 100%; height: 1.3em; margin: 0.5rem 0;
  font: 400 clamp(1.8rem, 9vw, 3rem)/1.3 var(--serif); white-space: nowrap;
}
.rsvp-word span { position: absolute; top: 0; }
.rsvp-word .focal { left: 42%; transform: translateX(-50%); color: #8a1f1f; }
.rsvp-word .pre { right: calc(58% + 0.3em); }
.rsvp-word .post { left: calc(42% + 0.3em); }

.rsvp-controls { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; align-items: center; }
.rsvp-controls[hidden] { display: none; }
.rsvp-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: #7a5c2e; color: #f5efe0; display: grid; place-items: center;
}
.rsvp-play svg { width: 24px; height: 24px; fill: currentColor; }
.rsvp-play .icon-pause, .rsvp.is-playing .rsvp-play .icon-play { display: none; }
.rsvp.is-playing .rsvp-play .icon-pause { display: block; }
.rsvp-play:focus-visible, .rsvp-speed:focus-visible { outline: 3px solid #8a1f1f; outline-offset: 3px; }
.rsvp-speed { width: 100%; accent-color: #7a5c2e; }
.rsvp-speed-label { grid-column: 1 / -1; text-align: center; margin: 0; font-size: 0.85rem; color: #5c5346; }

.readit-shots { padding: 0 0 4rem; }
.readit-shots .shots { max-width: 40rem; margin: 0 auto; padding-top: 1.25rem; }
