/* Kognog Labs — look A "Clear Desk". Fonts are served from /fonts (SIL OFL, see fonts/OFL-fonts.txt). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/Inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("fonts/Inter-800.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("fonts/SourceSerif4-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("fonts/SourceSerif4-600.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/SourceSerif4-Italic-400.woff2") format("woff2"); }

:root {
  --ground: #FAFBFC;
  --surface: #FFFFFF;
  --tint: #EEF2F6;
  --line: #E3E7EC;
  --line-strong: #CBD3DC;
  --ink: #1D232B;
  --body: #333C47;
  --muted: #4A5562;
  --faint: #5A6573;
  --accent: #2C5B87;
  --accent-dark: #1E4166;
  --free-bg: #E6F0E8;
  --free-ink: #24502F;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(29, 35, 43, 0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer strong { color: var(--ink); }
.site-footer .legal { max-width: 520px; }
.site-footer .links { display: flex; flex-direction: column; gap: 6px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lede { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--muted); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
.h3 { font-size: 20px; font-weight: 700; }

/* Buttons and tags */
.btn { display: inline-block; font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.is-soon { background: var(--tint); color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { display: inline-block; font-size: 13px; padding: 5px 10px; border-radius: 6px; background: var(--tint); color: var(--muted); }
.tag-free { background: var(--free-bg); color: var(--free-ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.soon { font-size: 14px; font-weight: 600; color: var(--faint); }
.more { font-weight: 600; font-size: 15px; }

/* Sections */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-tight { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* Hero */
.hero { display: grid; gap: 56px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); padding-top: 88px; padding-bottom: 72px; }
.hero-art { position: relative; border-radius: 14px; overflow: hidden; min-height: 320px; box-shadow: var(--shadow); }
.hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art .plate { position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(255, 255, 255, 0.95); border-radius: 10px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-art .plate img { height: 44px; width: auto; }

/* Cards */
.card { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.band .card { background: var(--ground); }
.card-white { background: var(--surface); }
a.card:hover { border-color: var(--accent); color: var(--ink); }
.card .kind { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; }
.card .name { font-size: 22px; font-weight: 700; }
.card .line { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 4px; }
.app .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.app .name { font-size: 18px; }
.app .where { font-size: 13px; color: var(--faint); margin-top: auto; }

.lead { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; }
a.lead:hover { border-color: var(--accent); color: var(--ink); }
.lead .pic { flex: 1 1 360px; min-height: 240px; position: relative; }
.lead .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead .text { flex: 999 1 420px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.lead .logo { height: 50px; width: auto; align-self: flex-start; }

.covers { display: flex; gap: 10px; }
.covers img { width: auto; height: 102px; border-radius: 3px; }

/* Stand-in cover: picture + title plate, until the real cover exists */
.standin { position: relative; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; }
.standin img { width: 100%; height: 100%; object-fit: cover; }
.standin .plate { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(250, 251, 252, 0.94); padding: 12px 14px; }
.standin .plate b { display: block; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-size: 1.15em; }
.standin .plate span { display: block; font-size: 0.7em; color: var(--muted); margin-top: 6px; }

/* Principles */
.principle { display: flex; flex-direction: column; gap: 10px; }
.principle .num { font-size: 13px; font-weight: 700; color: var(--accent); }
.principle p { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Store */
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.book-card .shelf { background: var(--tint); padding: 40px; display: flex; justify-content: center; }
.book-card .shelf img, .book-card .shelf .standin { width: 200px; box-shadow: 0 14px 30px rgba(29, 35, 43, 0.18); border-radius: 3px; }
.book-card .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.book-card .buyrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.price strong { font-size: 20px; }
.howbuy { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding: 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.howbuy p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Book page */
.crumbs { padding-top: 20px; font-size: 14px; color: var(--faint); }
.crumbs a { text-decoration: none; }
.book-top { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 40px; padding-bottom: 64px; }
.book-top .cover { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.book-top .cover > img, .book-top .cover .standin { box-shadow: 0 20px 44px rgba(29, 35, 43, 0.2); border-radius: 4px; font-size: 26px; }
.book-top .info { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.buy { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
.buy .fmt { display: flex; flex-direction: column; gap: 10px; }
.buy .fmt b { font-size: 17px; }
.buy .fmt span { font-size: 14px; color: var(--faint); }
.prose { display: flex; flex-direction: column; gap: 16px; font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--body); }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; color: var(--body); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px 16px; font-size: 15px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; }

/* About */
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.person .badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-weight: 700; font-size: 20px; }
.person .role { font-size: 14px; font-weight: 600; color: var(--accent); }
.qa p { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--muted); }
.qa strong { font-family: var(--sans); color: var(--ink); }
.narrow { max-width: 820px; }
