/* The demo site's own pages, in Jordebok's colors: Schiefer by day, Anthrazit by night. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/CormorantGaramond-500-italic.woff") format("woff");
}
:root {
  --background: #f5f6f7;
  --surface: #ffffff;
  --border: #e2e5e9;
  --text: #1e2226;
  --muted: #5c6670;
  --accent: #56708a;
  --accent-hover: #475e75;
  --on-accent: #ffffff;
  --mark-line: #1e2226;
  --mark-accent: #56708a;
  --finances-accent: #7a2e3a;
  /* Quiet links, such as the mobile version's: dark gray, underlined. */
  --link-quiet: #3d454d;
  --bezel: #1e2226;
  /* The favicon's tile: the accent, with the J in the color the theme uses on it. */
  --tile: #56708a;
  --tile-k: #f5f6f7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #16181b;
    --surface: #1e2125;
    --border: #2e3339;
    --text: #e8eaed;
    --muted: #a3abb4;
    --accent: #8fa8c0;
    --accent-hover: #a5bace;
    --on-accent: #16181b;
    --mark-line: #e8eaed;
    --mark-accent: #8fa8c0;
    --finances-accent: #d3949e;
    --link-quiet: #c4cbd2;
    --bezel: #000000;
    --tile: #8fa8c0;
    --tile-k: #000000;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 300 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.page { max-width: 880px; margin: 0 auto; padding: 48px 16px 64px; }
.brand { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 40px; text-decoration: none; color: var(--text); }
.brand .tile { width: 46px; height: 46px; }
.tile rect { fill: var(--tile); }
.tile-k { fill: var(--tile-k); }
.mark-line { fill: none; stroke: var(--mark-line); stroke-linecap: round; stroke-linejoin: round; }
.mark-k { fill: var(--mark-accent); }
.wordmark { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 44px; line-height: 1; }
h1 { font-weight: 300; font-size: 32px; line-height: 1.25; margin: 0 0 12px; }
h2 { font-weight: 400; font-size: 20px; margin: 32px 0 8px; }
p { margin: 0 0 12px; }
.flush { margin-top: 0; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 40px 0; }
.edition { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.edition h2 { margin: 0; }
.edition .name { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 26px; }
.edition p { color: var(--muted); flex: 1; }
.button { display: inline-block; text-align: center; padding: 10px 18px; border-radius: 6px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-size: 15px; font-weight: 400; }
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.edition-head { display: flex; align-items: center; gap: 12px; }
.edition-head .mark { width: 40px; height: 40px; flex-shrink: 0; }
.coin-k { fill: var(--finances-accent); }
.button[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px dashed var(--border); cursor: not-allowed; pointer-events: none; }
.notes { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; }
.notes ul { margin: 0; padding-left: 20px; color: var(--muted); }
.notes li { margin: 4px 0; }
.notes .feedback { color: var(--muted); margin: 16px 0 0; }
.policy { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px 32px; }
.policy ul { padding-left: 20px; }
.effective { color: var(--muted); font-size: 14px; }
/* A quiet link under a button: smaller than the button, a little larger than the footer's links. */
.phone-link { color: var(--link-quiet); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-align: center; }
.phone-link:hover { color: var(--text); }
/* A phone already shows the demo at its own size, so the link is for larger screens. */
@media (max-width: 640px) {
  .edition .phone-link { display: none; }
}
/* The demo inside a phone-sized frame, beside a few lines about it. */
.phone-page { max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; display: flex; gap: 56px; align-items: center; justify-content: center; }
.phone-side { max-width: 420px; }
.phone-side .brand { justify-content: flex-start; margin-bottom: 28px; }
.phone-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 20px; }
.phone-frame { flex-shrink: 0; width: 414px; height: min(868px, calc(100vh - 64px)); min-height: 560px; border: 12px solid var(--bezel); border-radius: 48px; overflow: hidden; background: var(--background); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--border); }
.phone-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.phone-narrow { display: none; }
@media (max-width: 860px) {
  .phone-page { flex-direction: column; gap: 32px; }
  .phone-side { max-width: 560px; }
}
@media (max-width: 640px) {
  .phone-wide { display: none; }
  .phone-narrow { display: block; }
  .phone-actions .phone-narrow { display: inline-block; }
}
footer { margin-top: 48px; color: var(--muted); font-size: 14px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-bottom: 8px; }
@media (max-width: 520px) {
  .policy { padding: 20px; }
  h1 { font-size: 26px; }
  .wordmark { font-size: 38px; }
}
