/* Penkeys pages (/penkeys/, /penkeys/support/, /penkeys/privacy/).
   Colours come from the app: stone board, ink and the vermilion of the icon. Follows the visitor's light or dark setting.
   The type is Penkeys Grotesk, a subset of Schibsted Grotesk (SIL Open Font License, see assets/fonts/penkeys/). */

@font-face { font-family: "Penkeys Grotesk"; src: url("../fonts/penkeys/TernGrotesk-Regular400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Penkeys Grotesk"; src: url("../fonts/penkeys/TernGrotesk-Medium500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Penkeys Grotesk"; src: url("../fonts/penkeys/TernGrotesk-SemiBold600.ttf") format("truetype"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #EDECE7;
  --surface: #FBFBF9;
  --board: #DAD9D3;
  --ink: #23231F;
  --soft: #53524B;
  --line: #D3D1C9;
  --accent: #C93A14;
  --accent-text: #A9300D;
  --shadow: 0 1px 2px rgba(35, 35, 31, .08), 0 14px 34px rgba(35, 35, 31, .12);
  --footer-bg: #23231F;
  --footer-ink: #EDECE7;
  --footer-soft: #B9B7AD;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --surface: #222220;
    --board: #2B2B28;
    --ink: #EEEDE7;
    --soft: #B8B6AC;
    --line: #383833;
    --accent: #F26B3F;
    --accent-text: #FF8B66;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 34px rgba(0, 0, 0, .45);
    --footer-bg: #0E0E0D;
    --footer-ink: #EEEDE7;
    --footer-soft: #A9A79E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Penkeys Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.018em; text-wrap: balance; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.pk-skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.pk-skip:focus { top: 12px; }
.pk-container { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* ---------- header ---------- */
.pk-header { border-bottom: 1px solid var(--line); }
.pk-nav { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.pk-studio { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: .92rem; font-weight: 500; text-decoration: none; padding-right: 18px; border-right: 1px solid var(--line); min-height: 44px; }
.pk-studio img { width: 26px; height: 28px; flex: none; }
.pk-studio .on-dark { display: none; }
@media (max-width: 720px) { .pk-studio-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .pk-studio { padding-right: 12px; min-width: 44px; } .pk-nav { gap: 12px; } .pk-links a { padding: 0 8px; } }
@media (max-width: 345px) { .pk-brand span { display: none; } }
@media (prefers-color-scheme: dark) { .pk-studio .on-light { display: none; } .pk-studio .on-dark { display: block; } }
.pk-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; min-height: 44px; }
.pk-brand img { width: 36px; height: 36px; border-radius: 9px; }
.pk-links { margin-left: auto; display: flex; gap: 4px; }
.pk-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .98rem; text-decoration: none; }
.pk-links a:hover { background: var(--board); }
.pk-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }

/* ---------- hero ---------- */
.pk-hero { padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 76px); }
.pk-hero-grid { display: grid; gap: clamp(30px, 5vw, 64px); align-items: center; }
.pk-hero-grid > * { min-width: 0; }
@media (min-width: 920px) { .pk-hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }
.pk-icon { width: 88px; height: 88px; border-radius: 21px; box-shadow: var(--shadow); display: block; margin-bottom: 22px; }
.pk-hero h1 { font-size: clamp(3rem, 1.8rem + 5vw, 4.9rem); line-height: 1; letter-spacing: -.034em; margin: 0 0 16px; }
.pk-lede { font-size: clamp(1.18rem, 1.05rem + .55vw, 1.42rem); line-height: 1.45; margin: 0 0 8px; max-width: 30ch; }
.pk-for { color: var(--soft); margin: 0 0 24px; }
.pk-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: .96rem; line-height: 1.35; }
.pk-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.pk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.pk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.pk-btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.pk-btn.quiet:hover { background: var(--surface); }
.pk-shot { display: block; width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.pk-hero-art { padding: clamp(12px, 2vw, 22px); border-radius: 30px; background: var(--board); }

/* ---------- sections ---------- */
.pk-section { padding: clamp(36px, 5vw, 68px) 0; }
.pk-section > .pk-container > h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); margin: 0 0 8px; }
.pk-intro { color: var(--soft); margin: 0 0 30px; max-width: 54ch; }
.pk-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px 24px; margin: 0; padding: 0; list-style: none; }
.pk-designs figure { margin: 0; }
.pk-designs figcaption { padding: 14px 2px 0; }
.pk-designs figcaption b { display: block; font-size: 1.16rem; }
.pk-designs figcaption span { color: var(--soft); font-size: .98rem; }
.pk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pk-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.pk-cards h3 { font-size: 1.14rem; margin: 0 0 8px; }
.pk-cards h3::before { content: ""; display: block; width: 26px; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 14px; }
.pk-cards p { margin: 0; color: var(--soft); font-size: .99rem; line-height: 1.55; }
.pk-private { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.pk-private h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); margin: 0 0 12px; }
.pk-private p { max-width: 58ch; margin: 0 0 14px; }
.pk-private .pk-actions { margin-top: 22px; }

/* ---------- support and privacy ---------- */
.pk-page-hero { padding: clamp(36px, 6vw, 70px) 0 8px; }
.pk-narrow { max-width: 820px; }
.pk-eyebrow { color: var(--accent-text); font-weight: 600; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 10px; }
.pk-page-hero h1 { font-size: clamp(2.4rem, 1.8rem + 2.8vw, 3.5rem); margin: 0 0 12px; }
.pk-page-hero p { margin: 0 0 12px; color: var(--soft); max-width: 56ch; }
.pk-updated { display: inline-block; margin: 0 14px 0 0; color: var(--soft); font-size: .92rem; }
.pk-prose { padding-bottom: clamp(48px, 7vw, 90px); }
.pk-prose h2 { font-size: 1.5rem; margin: 46px 0 12px; scroll-margin-top: 16px; }
.pk-prose h3 { font-size: 1.13rem; margin: 28px 0 8px; }
.pk-prose p { margin: 0 0 14px; }
.pk-prose ul, .pk-prose ol { margin: 0 0 16px; padding-left: 22px; }
.pk-prose li { margin: 0 0 8px; }
.pk-callout { margin: 22px 0 8px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; }
.pk-callout p:last-child { margin-bottom: 0; }
.pk-toc { columns: 2; column-gap: 34px; margin-top: 22px !important; }
.pk-toc li { break-inside: avoid; }
@media (max-width: 560px) { .pk-toc { columns: 1; } }
.pk-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pk-table table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.5; }
.pk-table th, .pk-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pk-table th { font-weight: 600; }
.pk-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  /* each row becomes a small block, so nothing has to be scrolled sideways on a phone */
  .pk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pk-table table, .pk-table tbody, .pk-table tr, .pk-table td { display: block; width: 100%; }
  .pk-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .pk-table tr:last-child { border-bottom: 0; }
  .pk-table td { padding: 0 0 4px; border: 0; }
  .pk-table td:first-child { font-weight: 600; }
}
.pk-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; }
.pk-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 12px 18px; font-weight: 600; line-height: 1.35; border-radius: 14px; }
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.5rem; font-weight: 400; line-height: 1; flex: none; }
.pk-faq details[open] summary::after { content: "\2212"; }
.pk-faq .answer { padding: 0 18px 4px; }

/* ---------- footer ---------- */
.pk-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 52px 0 34px; font-size: .96rem; }
.pk-footer a { color: var(--footer-ink); text-decoration: none; }
.pk-footer a:hover { text-decoration: underline; }
.pk-footer-grid { display: grid; gap: 30px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 920px) { .pk-footer-grid { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); } .pk-footer-grid > div:first-child { grid-column: auto; } }
.pk-footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.pk-footer-brand img { width: 46px; height: 50px; }
.pk-footer-brand span { font-size: 1.3rem; white-space: nowrap; }
.pk-footer .tag { color: var(--footer-soft); max-width: 34ch; margin: 12px 0 0; }
.pk-footer-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--footer-soft); margin: 0 0 10px; }
.pk-footer ul { list-style: none; margin: 0; padding: 0; }
.pk-footer li a { display: inline-block; padding: 5px 0; }
.pk-footer .follow a { display: inline-flex; align-items: center; gap: 9px; }
.pk-footer .follow svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.pk-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(238, 237, 231, .16); color: var(--footer-soft); font-size: .85rem; }
.pk-legal p { margin: 0 0 8px; }
.pk-legal a { text-decoration: underline; color: inherit; }
