/* journal, topic and about pages of app.fraegile.com – same look as the landing page */

@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(/assets/inter-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 400 600; font-display: swap; src: url(/assets/inter-latin-400-normal.woff2) format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #f3f1f0;
  --card: #f7f5f3;
  --fg: #171717;
  --soft: rgba(23, 23, 23, .62);
  --faint: rgba(23, 23, 23, .45);
  --line: rgba(23, 23, 23, .12);
  --accent: #c8354b;
  --sun: rgba(246, 222, 186, .55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a19;
    --card: #232120;
    --fg: #ece9e5;
    --soft: rgba(236, 233, 229, .66);
    --faint: rgba(236, 233, 229, .45);
    --line: rgba(236, 233, 229, .14);
    --accent: #ef7a8a;
    --sun: rgba(246, 222, 186, .05);
  }
  .brand img { filter: invert(1); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative; isolation: isolate;
  margin: 0;
  background: var(--bg) radial-gradient(60vmax 60vmax at 100% 0, var(--sun), transparent 70%) no-repeat;
  color: var(--fg);
  font: 300 17px/1.7 Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* top bar */
.top {
  max-width: 1080px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { display: block; width: 44px; height: auto; }
.top nav { display: flex; gap: 22px; font-size: 14px; align-items: center; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a[aria-current] { color: var(--fg); }
.top nav .get { color: #fff; background: var(--red-ink); border-radius: 999px; padding: 7px 16px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.top nav .get:hover { color: #fff; opacity: .88; }
@media (max-width: 520px) { .top nav { gap: 14px; } .top nav .get { display: none; } }

main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { text-decoration: none; }

/* headings of hub pages */
.hub-head { text-align: center; max-width: 720px; margin: 40px auto 32px; }
.hub-head h1 { font-weight: 300; font-size: clamp(34px, 6vw, 52px); letter-spacing: -.01em; margin: 0; line-height: 1.15; }
.hub-head .question { font-size: 20px; margin: 10px 0 0; }
.lead { color: var(--soft); font-size: 19px; margin: 16px auto 0; }
.kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.kicker a { text-decoration: none; }
.muted, .center { text-align: center; color: var(--soft); }
.section { font-weight: 400; font-size: 15px; letter-spacing: .06em; color: var(--faint); text-align: center; margin: 48px 0 16px; }

/* cards */
.cards { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); max-width: 1080px; }
.card a { display: block; height: 100%; padding: 22px 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; transition: border-color .3s ease, transform .3s ease; }
.card a:hover { color: inherit; border-color: var(--fg); transform: translateY(-2px); }
.card .kicker { display: block; }
.card strong { display: block; font-weight: 400; font-size: 20px; line-height: 1.3; }
.card .excerpt { display: block; margin-top: 10px; color: var(--soft); font-size: 15px; line-height: 1.55; }

.topics { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.topics a { display: block; padding: 20px 22px; border: 1px solid var(--glass-line); border-radius: 999px; text-decoration: none; text-align: center; background: radial-gradient(120% 140% at 30% 20%, var(--glass-hi), var(--glass-lo) 70%); box-shadow: 0 4px 16px var(--glass-shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s ease; }
.topics a:hover { color: inherit; transform: scale(1.02); }
.topics a:hover strong { color: var(--red-ink); }
.topics strong { display: block; font-weight: 400; font-size: 19px; }
.topics span { display: block; color: var(--soft); font-size: 14px; }

/* article */
.article { max-width: 700px; margin: 0 auto; }
.article-head { margin: 40px 0 28px; }
.article-head h1 { font-weight: 300; font-size: clamp(32px, 5.4vw, 46px); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.article-head .lead { margin: 18px 0 0; }
.updated { font-size: 13px; color: var(--faint); margin: 12px 0 0; }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0 16px; margin: 0 0 28px; font-size: 15px; }
.toc p { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; color: var(--faint); }
.toc ol { margin: 0; padding-left: 20px; color: var(--soft); }
.toc a { text-decoration: none; }
.prose h2 { font-weight: 400; font-size: 26px; line-height: 1.3; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose h3 { font-weight: 400; font-size: 20px; margin: 32px 0 8px; scroll-margin-top: 24px; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 88%, transparent); }
.prose strong { font-weight: 500; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.reflect { background: radial-gradient(130% 120% at 25% 15%, hsla(356, 97%, 44%, .14), hsla(356, 97%, 44%, .05) 60%, hsla(356, 97%, 44%, .02)); border: 1px solid hsla(356, 97%, 44%, .2); box-shadow: inset 0 0 15px hsla(356, 97%, 44%, .06), 0 4px 16px hsla(356, 97%, 44%, .08); border-radius: 28px; padding: 8px 26px; margin: 28px 0; max-width: 700px; margin-inline: auto; }
.reflect p:first-child strong, .reflect strong:first-child { font-weight: 400; letter-spacing: .32em; font-size: 11px; color: var(--red-ink); text-transform: uppercase; }
.reflect ul { padding-left: 20px; }

/* call to action */
.cta { text-align: center; margin: 56px auto 24px; padding: 32px 24px 36px; border-radius: 28px; border: 1px solid var(--glass-line); background: radial-gradient(120% 120% at 30% 10%, var(--glass-hi), var(--glass-lo) 70%); box-shadow: 0 4px 16px var(--glass-shadow); max-width: 700px; }
.cta h2 { font-weight: 300; font-size: 26px; margin: 0 0 8px; }
.cta p { color: var(--soft); margin: 0 auto; max-width: 46ch; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px 11px 18px; min-width: 176px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 400; font-size: 14px; background: var(--bg); }
.store:hover { color: inherit; border-color: var(--fg); }
.store svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.store span { text-align: left; line-height: 1.25; }
.store small { display: block; font-size: 10px; font-weight: 300; letter-spacing: .06em; color: var(--soft); }
.note { font-size: 13px; color: var(--faint); max-width: 700px; margin: 24px auto 0; }

.related { max-width: 1080px; margin: 64px auto 0; }
.related h2 { font-weight: 400; font-size: 15px; letter-spacing: .06em; color: var(--faint); text-align: center; margin: 0 0 16px; }

/* footer */
.foot { max-width: 1080px; margin: 0 auto; padding: 32px 20px max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--faint); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 14px; }
.foot a { text-decoration: none; }
.foot button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* the analytics question (built by consent.js) */
.consent { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; width: min(440px, calc(100% - 32px)); padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, var(--fg) 4%); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; line-height: 1.5; color: var(--soft); display: flex; align-items: center; gap: 14px; transition: opacity .6s ease, transform .6s ease; z-index: 20; }
.consent.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.consent p { margin: 0; flex: 1; text-align: left; }
.consent button { font: 400 13px Inter, system-ui, sans-serif; color: var(--fg); background: none; border: 0; padding: 6px 4px; cursor: pointer; }
.consent .yes { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .cta, .related, .consent, .toc { display: none; } body { background: #fff; color: #000; } }

/* German start page (/de/) */
.hero-logo { display: block; width: min(240px, 60vw); height: auto; margin: 8px auto 0; }
.hero-claim { font-size: 18px !important; letter-spacing: .04em !important; margin-top: 28px !important; }
@media (prefers-color-scheme: dark) { .hero-logo { filter: invert(1); } }
/* download right under the text, two buttons side by side, also on phones */
.hub-head .stores { flex-wrap: nowrap; width: min(376px, 100%); margin: 32px auto 0; }
.hub-head .store { flex: 1 1 0; min-width: 0; padding-inline: 14px 16px; }
