/* wünschekalender.de — the one stylesheet. Colours are the app's (frontend/constants/Theme.ts): ink
   on paper, the desk behind it, the calendar's gold as the accent; dark follows the device.
   Cormorant Garamond is served from this site (assets/fonts/, SIL OFL): no request leaves the domain.
   No inline styles anywhere: the Content-Security-Policy in render.yaml allows only this file. */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/CormorantGaramond_500Medium.woff') format('woff'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/CormorantGaramond_600SemiBold.woff') format('woff'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('fonts/CormorantGaramond_500Medium_Italic.woff') format('woff'); }

:root {
  --desk: #E6E0D4;
  --paper: #FAF7F0;
  --binding: #EDE6D8;
  --ink: #2B2620;
  --muted: #6B6156;
  --accent: #E0A526;
  --link: #8A5F00;
  --line: rgba(43, 38, 32, 0.14);
  --shadow: 0 18px 40px rgba(43, 38, 32, 0.16);
  --display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --text: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #171411;
    --paper: #221E19;
    --binding: #2B2620;
    --ink: #F1EBDF;
    --muted: #B5AA9A;
    --link: #F0BE4F;
    --line: rgba(241, 235, 223, 0.16);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

* { 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(--desk);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(42px, 7vw, 68px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.6vw, 44px); }
h3 { font-size: 26px; }
p { margin: 0 0 16px; }

/* Header and footer */
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.15; }
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
header.site nav a { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 20px; text-decoration: none; padding: 10px 4px; }
header.site nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; padding-bottom: 36px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer.site a { color: var(--muted); padding: 6px 0; }
footer.site p { margin: 0; padding: 6px 0; }

/* Hero */
.hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; padding-top: 48px; padding-bottom: 88px; } }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--link); margin: 0 0 14px; }
.lead { font-size: 21px; color: var(--muted); max-width: 34em; margin: 18px 0 28px; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stores li { margin: 0; }
.stores img { height: 46px; width: auto; }
/* A badge for a store the app is not in yet is no link and stands back; its `.soon` goes when it is. */
.stores .soon img { opacity: 0.45; filter: grayscale(1); }
.stores-note { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 21px; color: var(--muted); margin: 12px 0 0; }

/* A phone drawn around a capture */
.phone { width: min(300px, 74vw); margin: 0 auto; border: 9px solid #1B1815; border-radius: 44px; overflow: hidden; box-shadow: var(--shadow); background: #1B1815; }
.phone img { width: 100%; }

/* Sections */
section.band { padding: 72px 0; }
section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule { width: 56px; height: 2px; background: var(--accent); border: 0; margin: 0 0 22px; }
.centered { text-align: center; }
.centered .rule { margin-left: auto; margin-right: auto; }
.band p { color: var(--muted); }
.band h2 { margin-bottom: 18px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }

.widgets { display: grid; gap: 22px; justify-items: center; }
.widgets img { filter: drop-shadow(0 14px 22px rgba(43, 38, 32, 0.2)); }
.widgets .wide { width: min(400px, 100%); }
.widgets .square { width: min(200px, 56%); }

/* Prices */
.plans { display: grid; gap: 18px; margin: 30px 0 22px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--desk); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; text-align: center; }
.plan.best { border-color: var(--accent); border-width: 2px; }
.plan h3 { font-size: 24px; margin-bottom: 6px; }
.plan .price { font-family: var(--display); font-weight: 600; font-size: 46px; line-height: 1.1; color: var(--ink); margin: 0; }
.plan .per { margin: 2px 0 0; font-size: 17px; }
.small { font-size: 16px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
section.paper .card { background: var(--desk); }

/* Text pages: help, legal texts, not found */
main.page { padding-top: 28px; padding-bottom: 72px; }
main.page h1 { font-size: clamp(38px, 6vw, 52px); margin-bottom: 10px; }
main.page h2 { font-size: 27px; line-height: 1.2; margin: 34px 0 8px; }
main.page .updated { font-style: italic; color: var(--muted); margin-bottom: 24px; }
main.page p { overflow-wrap: break-word; }
