/* ================================================================
   Pocketknife Design System — colors_and_type.css
   Editorial × Terminal. Light-dominant. Near-white warm paper base,
   near-black text, single light-coral accent (from halftone galaxy).
   ================================================================ */

:root {
  --pk-surface-mist: linear-gradient(115deg, #f8f9fb 12%, #eef3f1 58%, #eeeaf5 100%);
  --pk-surface-dark: linear-gradient(115deg, #0a0d0c 12%, #111616 58%, #211c2b 100%);
  --pk-surface-paper: linear-gradient(120deg, #ffffff 20%, #f3f5f3 100%);
  --pk-action-violet: #6750b7;
  --pk-action-violet-light: #c4b4f0;
  /* Paper / ink */
  --pk-paper:       #FDFBF6;
  --pk-paper-2:     #F7F3EA;
  --pk-paper-edge:  #ECE5D5;
  --pk-ink:         #1A1714;
  --pk-ink-2:       #3A332E;
  --pk-ink-3:       #6B615A;
  --pk-ink-4:       #A39A90;

  /* Chamber (sparingly — hero + final CTA) */
  --pk-chamber:      #0D0B09;
  --pk-chamber-2:    #171411;
  --pk-chamber-ink:  #F6F2E8;
  --pk-chamber-ink-2:#9A918A;

  /* Accent — light coral from halftone galaxy */
  --pk-accent:       #F28B72;
  --pk-accent-hot:   #F7A38D;
  --pk-accent-deep:  #D86A50;
  --pk-accent-wash:  #FBE4DB;
  --pk-star-cold:    #6A7BA8;

  /* Semantic */
  --pk-ok:           #2F6B4F;
  --pk-warn:         #8A6A1E;
  --pk-err:          #A23B2A;

  /* Type */
  --pk-font-display: "Newsreader", "Times New Roman", Georgia, serif;
  --pk-font-header:  "Newsreader", "Times New Roman", Georgia, serif;
  --pk-font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pk-font-body:    "Inter Tight", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;

  --pk-display-opsz: 96;
  --pk-display-weight: 360;
  --pk-display-tracking: -0.015em;

  --pk-fs-marginalia: 11px;
  --pk-fs-mono-s:     12px;
  --pk-fs-mono:       13px;
  --pk-fs-caption:    13px;
  --pk-fs-body-s:     15px;
  --pk-fs-body:       17px;
  --pk-fs-lede:       21px;
  --pk-fs-h6:         18px;
  --pk-fs-h5:         22px;
  --pk-fs-h4:         28px;
  --pk-fs-h3:         36px;
  --pk-fs-h2:         52px;
  --pk-fs-h1:         76px;
  --pk-fs-display:    128px;
  --pk-fs-display-xl: 184px;

  --pk-lh-tight:   1.02;
  --pk-lh-display: 1.04;
  --pk-lh-heading: 1.12;
  --pk-lh-lede:    1.45;
  --pk-lh-body:    1.6;
  --pk-lh-mono:    1.5;

  --pk-track-mono:       0.08em;
  --pk-track-mono-loose: 0.14em;
  --pk-track-display:   -0.015em;
  --pk-track-h1:        -0.02em;
  --pk-track-body:       0em;

  /* Spacing — 4px base */
  --pk-s-1:   4px;  --pk-s-2:   8px;  --pk-s-3:  12px;  --pk-s-4:  16px;
  --pk-s-5:  20px;  --pk-s-6:  24px;  --pk-s-8:  32px;  --pk-s-10: 40px;
  --pk-s-12: 48px;  --pk-s-16: 64px;  --pk-s-20: 80px;  --pk-s-24: 96px;
  --pk-s-32:128px;  --pk-s-40:160px;

  --pk-rhythm:        160px;
  --pk-rhythm-half:    80px;
  --pk-gutter:         32px;
  --pk-col-max:      1280px;
  --pk-col-text:      680px;

  /* Radii — editorial = mostly square */
  --pk-radius-0:  0px;
  --pk-radius-1:  2px;
  --pk-radius-2:  4px;
  --pk-radius-3:  6px;
  --pk-radius-photo: 2px;
  --pk-radius-pill: 999px;

  --pk-border-hair: 1px solid var(--pk-paper-edge);
  --pk-border-rule: 1px solid var(--pk-ink);
  --pk-border-dash: 1px dashed var(--pk-ink-4);

  /* Shadows — minimal */
  --pk-shadow-0: none;
  --pk-shadow-1: 0 1px 0 rgba(26, 23, 20, 0.04);
  --pk-shadow-2: 0 6px 24px -12px rgba(26, 23, 20, 0.18);
  --pk-shadow-3: 0 24px 48px -24px rgba(26, 23, 20, 0.32);
  --pk-inset-rule: inset 0 -1px 0 var(--pk-paper-edge);

  /* Motion */
  --pk-ease-out:    cubic-bezier(0.2, 0.7, 0.2, 1);
  --pk-ease-in-out: cubic-bezier(0.5, 0, 0.1, 1);
  --pk-ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --pk-dur-fast:   120ms;
  --pk-dur-med:    220ms;
  --pk-dur-slow:   420ms;
  --pk-dur-reveal: 900ms;

  /* Dot grid */
  --pk-dotgrid-size: 24px;
  --pk-dotgrid-dot: 1px;
  --pk-dotgrid-color: rgba(26, 23, 20, 0.06);
}

* { box-sizing: border-box; }
html, body { background: var(--pk-paper); color: var(--pk-ink); }
body {
  margin: 0;
  font-family: var(--pk-font-body);
  font-size: var(--pk-fs-body);
  line-height: var(--pk-lh-body);
  text-wrap: pretty;
  orphans: 3;
  widows: 3;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "liga";
}
img { display: block; max-width: 100%; }
::selection { background: var(--pk-accent); color: var(--pk-paper); }

/* Headings — display serif, tight tracking, warm ink */
h1 {
  font-family: var(--pk-font-display);
  font-size: var(--pk-fs-h1); line-height: var(--pk-lh-display);
  letter-spacing: var(--pk-track-h1);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--pk-ink); margin: 0; text-wrap: pretty;
}
h2 {
  font-family: var(--pk-font-display);
  font-size: var(--pk-fs-h2); line-height: var(--pk-lh-heading);
  letter-spacing: var(--pk-track-display);
  font-weight: 380;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  margin: 0; text-wrap: pretty;
}
h3 {
  font-family: var(--pk-font-display);
  font-size: var(--pk-fs-h3); line-height: var(--pk-lh-heading);
  font-weight: 400;
  font-variation-settings: "opsz" 48, "SOFT" 40;
  letter-spacing: -0.01em; margin: 0; text-wrap: pretty;
}
h4 {
  font-family: var(--pk-font-display);
  font-size: var(--pk-fs-h4); line-height: 1.2;
  font-weight: 420; margin: 0; text-wrap: pretty;
}
h5, h6 {
  font-family: var(--pk-font-header);
  font-weight: 500;
  font-size: var(--pk-fs-h5); line-height: 1.3;
  margin: 0; text-wrap: pretty;
}

/* Eyebrow — core editorial signal */

/* Pill eyebrow — chamber-hero variant */

p {
  font-family: var(--pk-font-body);
  font-size: var(--pk-fs-body);
  line-height: var(--pk-lh-body);
  color: var(--pk-ink-2);
  max-width: var(--pk-col-text);
  text-wrap: pretty;
}

code {
  font-family: var(--pk-font-mono);
  font-size: var(--pk-fs-mono);
  letter-spacing: 0; color: var(--pk-ink);
}

a {
  color: var(--pk-ink);
  text-decoration: underline;
  text-decoration-color: var(--pk-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--pk-dur-fast) var(--pk-ease-out),
              color var(--pk-dur-fast) var(--pk-ease-out);
}
a:hover { text-decoration-thickness: 2px; color: var(--pk-accent-deep); }

/* Buttons — mono uppercase, editorial */

@media (max-width: 720px) {
  :root {
    --pk-fs-display:    72px;
    --pk-fs-display-xl: 96px;
    --pk-fs-h1:         48px;
    --pk-fs-h2:         36px;
    --pk-fs-h3:         28px;
    --pk-rhythm:        96px;
    --pk-rhythm-half:   56px;
  }
}
