/* Creating Kings magazine look (Nate, 25 Oct 2026): black and white, big condensed capitals, photo tiles, motion.
   Loads after site.css and website.css. Colours and fonts still come from brand.css. Each part is styled once here. */

/* Every headline in the headline font is in capitals (Nate, 25 Oct), the big ones in the page tighter */
h1, h2 { text-transform: uppercase; }
main h1, main h2 { line-height: 1.04; }
main h2 { font-size: clamp(30px, 4vw, 52px); }
.sec { border-top: 1px solid var(--line); }

/* Section head: headline and sub line on the left, an optional link on the right */
.ck-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: var(--gap-4); }
.ck-head .lead { margin: 12px 0 0; max-width: 34em; }

/* Hero: huge headline on the left, the email form under it, a faint crown on the right */
.ck-hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 140px) 0 clamp(56px, 8vw, 112px); }
.ck-hero h1 { font-size: clamp(40px, 6.6vw, 92px); margin-bottom: 24px; }
.ck-hero .lead { max-width: 32em; }
.ck-hero .hero-form { margin: 36px 0 0; max-width: 560px; }
.ck-hero .wrap { position: relative; }
.ck-hero h1, .ck-hero .lead, .ck-hero form, .ck-hero .cta-row { position: relative; }
.ck-hero-art { position: absolute; right: 0; top: 50%; width: min(34vw, 440px); transform: translateY(-50%); opacity: .6; pointer-events: none; }
.ck-hero-art-area { width: min(40vw, 520px); opacity: .6; }
@media (max-width: 899px) { .ck-hero-art { top: -20px; right: -30%; width: 120vw; transform: none; opacity: .16; } }

/* Moving strip of the 3 areas */
.ck-ticker { overflow: hidden; border-top: 1px solid var(--line); padding: 20px 0; }
.ck-ticker-track { display: flex; width: max-content; animation: ck-scroll 40s linear infinite; font: 700 clamp(20px, 2.6vw, 30px)/1 var(--font-head); letter-spacing: var(--head-tracking); text-transform: uppercase; color: var(--sub); }
.ck-ticker-track span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; }
.ck-ticker-track span::after { content: ""; width: 26px; height: 14px; background: url('crown.svg') center / contain no-repeat; opacity: .5; }
@keyframes ck-scroll { to { transform: translateX(-50%); } }

/* Photo tiles: the whole tile is a link. A photo sits behind if there is one, in black and white. */
.ck-tiles { display: grid; gap: 16px; }
@media (min-width: 800px) { .ck-tiles { grid-template-columns: repeat(3, 1fr); } }
.ck-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(340px, 40vw, 520px); padding: 28px; overflow: hidden; border-radius: var(--r); background: radial-gradient(120% 90% at 85% 0%, #262626 0%, #121212 50%, #0d0d0d 100%); color: var(--ink); text-decoration: none; transition: transform var(--fast); }
.ck-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0) 65%); }
.ck-tile img, .ck-ph img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .6s var(--ease); }
.ck-num { position: absolute; top: 26px; left: 28px; font: 600 15px/1 var(--font-head); letter-spacing: .12em; color: var(--sub); }
.ck-tile h3 { font: 700 clamp(32px, 3.6vw, 48px)/1.05 var(--font-head); letter-spacing: var(--head-tracking); text-transform: uppercase; margin-bottom: 10px; }
.ck-tile p { color: #d4d4d4; }
.ck-tile .arr, .ck-guide .arr { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast); }
.ck-tile .arr { position: absolute; top: 22px; right: 24px; }
.ck-tile:hover img, .ck-guide:hover img { transform: scale(1.05); }
.ck-tile:hover .arr, .ck-guide:hover .arr { transform: translateX(4px); }
.ck-tile:active, .ck-guide:active { transform: scale(.99); }

/* Guides: one big story on the left, two smaller ones on the right */
.ck-guides { display: grid; gap: 32px; }
@media (min-width: 900px) { .ck-guides { grid-template-columns: 1.35fr 1fr; gap: 40px; } .ck-guide-big { grid-row: span 2; } }
.ck-guide { display: block; color: var(--ink); text-decoration: none; transition: transform var(--fast); }
.ck-ph { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 18px; border-radius: var(--r); background: radial-gradient(120% 90% at 85% 0%, #262626 0%, #121212 55%, #0d0d0d 100%); }
.ck-guide h3 { font: 700 clamp(20px, 2vw, 26px)/1.15 var(--font-head); letter-spacing: var(--head-tracking); text-transform: uppercase; margin-bottom: 8px; }
.ck-guide-big h3 { font-size: clamp(26px, 2.8vw, 38px); }
.ck-guide p { color: var(--sub); }
.ck-guide:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (min-width: 560px) { .ck-guide:not(.ck-guide-big) { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; } .ck-guide:not(.ck-guide-big) h3 { font-size: clamp(18px, 1.7vw, 22px); } .ck-guide:not(.ck-guide-big) .ck-ph { aspect-ratio: 1; margin: 0; } }

/* One big line across the page */
.ck-statement { text-align: center; }
.ck-statement h2 { font-size: clamp(36px, 6vw, 84px); }
.ck-signal { display: block; width: 100%; height: auto; margin-top: var(--gap-4); }

/* Free tools: pictures in black and white */
.ck-tools .pic { filter: grayscale(1); }

/* Last section: headline on the left, the email form on the right */
.ck-join-grid { display: grid; gap: 24px 64px; align-items: end; }
@media (min-width: 900px) { .ck-join-grid { grid-template-columns: 1.2fr 1fr; } }
.ck-join .hero-form { margin: 24px 0 0; max-width: none; }

/* Two columns: headline and sub line on the left, the list or the questions on the right */
.ck-two { display: grid; gap: var(--gap-4); }
@media (min-width: 900px) { .ck-two { grid-template-columns: 1fr 1.6fr; gap: var(--gap-5); align-items: start; } }
.ck-two .faq { max-width: none; margin: 0; }
.ck-two .lead { margin-top: 12px; }

/* Footer: two link columns side by side, filling the row */
@media (min-width: 800px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* Legal pages: smaller section headlines */
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); }

/* A button under a left-aligned hero sits on the left */
.ck-hero .cta-row { align-items: flex-start; }

/* Sign-up pop-up: the form on the left, the picture on the right (desktop only; phones keep the picture on top) */
@media (min-width: 768px) { .fn-box[open] { grid-template-columns: 6fr 5fr; } .fn-box .fn-photo { order: 2; } }

/* Line art in the area tiles: thin white drawings, in the top part of the tile */
.ck-tile .ck-art { position: absolute; z-index: -2; inset: 56px auto auto 50%; width: min(88%, 400px); height: auto; object-fit: contain; filter: none; transform: translateX(-50%); opacity: .85; pointer-events: none; transition: transform .6s var(--ease), opacity var(--fast); }
.ck-tile:hover .ck-art { transform: translateX(-50%) scale(1.04); opacity: 1; }

/* Blog (25 Oct 2026): guide pages and the blog index, built by build.py from pages/blog/ */
.ck-post-hero { padding-bottom: clamp(40px, 6vw, 80px); }
.ck-post-hero h1 { font-size: clamp(36px, 5.6vw, 76px); max-width: 15em; }
.ck-post-hero .ck-crumbs, .ck-post-hero .ck-meta { position: relative; }
.ck-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--sub); }
.ck-crumbs a { color: var(--sub); text-decoration: none; }
.ck-crumbs a:hover { color: var(--ink); }
.ck-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; font-size: 14px; color: var(--sub); }
.ck-article { margin: 0; }
.ck-article > p:first-child { font-size: 19px; color: var(--ink); }
.ck-article h3 { margin: 28px 0 8px; }
.ck-article ul, .ck-article ol { max-width: var(--text); margin: 0 0 1.4em; padding-left: 1.3em; }
.ck-article li { margin-bottom: .6em; }
.ck-article li::marker { color: var(--sub); }
.ck-lines li { font-weight: 600; }
.ck-table { max-width: 100%; margin: 0 0 1.6em; overflow-x: auto; }
.ck-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ck-table th, .ck-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ck-table th { font-weight: 700; color: var(--ink); border-bottom-color: var(--sub); }
.ck-table td { color: var(--sub); }
.ck-table td:first-child { color: var(--ink); font-weight: 600; }

/* A link on the right of a section head, like "All guides" */
.ck-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ck-link .arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast); }
.ck-link:hover .arr { transform: translateX(4px); }

/* More guides: small cards in two columns (area pages, keep reading, and the blog after the first 3) */
.ck-more { display: grid; gap: 32px; }
.ck-guides + .ck-more { margin-top: 40px; }
@media (min-width: 900px) { .ck-more { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* Fade in as you scroll (ck.js turns it on, and leaves it off for people who ask for less motion) */
.ck-motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ck-motion [data-reveal].in { opacity: 1; transform: none; }
.ck-instant [data-reveal] { transition: none; }
@media (prefers-reduced-motion: reduce) { .ck-ticker-track { animation: none; } .ck-tile img, .ck-ph img { transition: none; } }
