/* Albert Sans (SIL Open Font License, fonts/OFL.txt), served from this site: no third party sees visitors */
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/albert-sans-latin.woff2") format("woff2");
}

/* The house look of every product Josh makes (see Unslip's DESIGN.md): KeBe's warm black, cream text,
   one pine accent. Kept plain here: a resume, so no keycap letters. */
:root {
  color-scheme: dark;
  --bg: #1c1a17;
  --surface: #262320;
  --surface-2: #34302a;
  --ink: #f0efec;
  --muted: #b3ab9f;
  --accent: #3f9e77;
  --accent-ink: #12110f;
  --accent-foot: #2d7558;
  --blank-foot: #2a2622;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 1rem + 6vw, 6.5rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --r: 14px;
  --gap-section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 "Albert Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 8px; z-index: 10; background: var(--ink); color: var(--bg); padding: 8px 12px; }

/* Buttons are keycaps stretched. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--r);
  border-bottom: 4px solid var(--accent-foot);
  font: 600 var(--step-body)/1.2 "Albert Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), border-bottom-width 160ms var(--ease), filter 160ms var(--ease);
}
.button:hover { color: var(--accent-ink); filter: brightness(1.08); transform: translateY(-1px); }
.button:active { transform: translateY(3px); border-bottom-width: 1px; }
.button.small { padding: 10px 16px 9px; font-size: var(--step-small); border-bottom-width: 3px; }
.button.quiet { background: var(--surface-2); color: var(--ink); border-bottom-color: var(--blank-foot); }
.button.quiet:hover { color: var(--ink); }

/* Header */
.top { display: flex; align-items: center; gap: 24px; padding: 16px var(--margin); }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: var(--step-small); }
.top nav a:not(.button) { text-decoration: none; }
.top nav a.button { color: var(--accent-ink); }

/* Hero: the introduction beside the floor board */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; padding: 0 12px; }
.card { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
.intro { min-height: min(calc(100svh - 84px), 860px); gap: 56px; }
.intro .body { max-width: 38rem; }
.results { margin-top: auto; }
.results dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px clamp(28px, 4vw, 56px); margin: 0; }
.results dt { color: var(--muted); font-size: var(--step-small); }
.results dd { margin: 6px 0 0; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.where { color: var(--muted); font-size: var(--step-small); margin-bottom: 14px; }
.intro h1 { font-size: var(--step-display); margin-bottom: 28px; }
.intro .lead { font-size: var(--step-lead); line-height: 1.35; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.floor { text-decoration: none; gap: 28px; transition: background 200ms var(--ease); }
.floor:hover { color: inherit; background: var(--surface-2); }
.floor:hover .open { color: var(--accent); }
.floor-head h2 { font-size: var(--step-head); }
.floor .note { margin-top: 10px; color: var(--muted); font-size: var(--step-small); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.kpis div { background: var(--bg); border-radius: var(--r); padding: 16px 18px; }
.kpis dt { color: var(--muted); font-size: var(--step-small); }
.kpis dd { margin: 6px 0 0; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.week { flex: 1; min-height: 160px; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.week span { height: calc(var(--h) * 100%); min-height: 28px; background: var(--surface-2); border-radius: 8px 8px 4px 4px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.floor:hover .week span { background: var(--bg); }
.week span.top-day { background: var(--accent); color: var(--accent-ink); }
.week b { font-size: var(--step-small); font-weight: 600; }
.open { font-size: var(--step-body); font-weight: 600; transition: color 200ms var(--ease); }

/* Sections */
.section { margin-top: var(--gap-section); padding: 0 var(--margin); }
.section-title { font-size: var(--step-head); }
.section-lead { margin-top: 16px; font-size: var(--step-lead); line-height: 1.35; max-width: 40rem; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 48px; }
.tile { height: 100%; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 28px; text-decoration: none; transition: background 200ms var(--ease); }
a.tile:hover { color: inherit; background: var(--surface-2); }
a.tile:hover .url { color: var(--accent); }
.status { align-self: flex-start; background: var(--surface-2); color: var(--ink); font-size: var(--step-small); font-weight: 500; border-radius: 8px; padding: 4px 10px; }
a.tile:hover .status { background: var(--bg); }
.tile h3 { font-size: var(--step-lead); }
.tile .url { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: var(--step-small); transition: color 200ms var(--ease); }

/* Resume */
.resume-head { display: grid; gap: 0 32px; grid-template-columns: 1fr auto; align-items: end; }
.resume-head .section-lead { grid-column: 1; }
.resume-head .button { grid-row: 1 / 3; grid-column: 2; }
.group { font-size: var(--step-lead); margin: 64px 0 20px; }
.jobs { display: grid; gap: 8px; }
.jobs > li { display: grid; grid-template-columns: minmax(10rem, 0.32fr) 1fr; gap: 12px 32px; background: var(--surface); border-radius: var(--r); padding: 28px; }
.when { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.when span { color: var(--muted); font-weight: 400; }
.jobs h4 { font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.15; }
.jobs h4 span { font-weight: 400; }
.sub { color: var(--muted); margin-top: 8px; }
.jobs ul { margin-top: 14px; display: grid; gap: 6px; }
.jobs ul li { padding-left: 1.1em; position: relative; }
.jobs ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.42em; height: 0.42em; border-radius: 22%; background: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.fact.wide { grid-column: 1 / -1; }
.fact h4 { font-size: var(--step-body); letter-spacing: -0.01em; line-height: 1.3; margin-top: 18px; }
.fact h4:first-of-type { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border-radius: 10px; padding: 8px 14px; font-size: var(--step-small); font-weight: 500; }
.plain { display: grid; gap: 8px; }

/* Footer */
.foot { margin-top: var(--gap-section); padding: 48px var(--margin) 40px; background: var(--surface); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot .mark { font-size: var(--step-body); margin-bottom: 12px; }
.foot p { font-size: var(--step-small); }
.handles { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; font-size: var(--step-small); max-width: 36rem; }
.handles a { text-decoration: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .intro { min-height: auto; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 0 8px; }
  .results dd { font-size: 1.6rem; }
  .top { flex-wrap: wrap; gap: 12px; }
  .top nav { margin-left: 0; width: 100%; gap: 18px; }
  .top nav .button { margin-left: auto; }
  .jobs > li { grid-template-columns: 1fr; padding: 22px; }
  .tile { padding: 22px; }
  .resume-head { grid-template-columns: 1fr; }
  .resume-head .button { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 20px; }
}

/* Print: the resume alone, on white */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --muted: #444; --accent: #000; }
  body { font-size: 10.5pt; }
  .top, .hero, #work, .foot, .print-hide, .skip { display: none !important; }
  .section { margin-top: 0; padding: 0; }
  .section-title { font-size: 22pt; }
  .section-lead { font-size: 12pt; margin-top: 6pt; }
  .group { font-size: 13pt; margin: 16pt 0 6pt; }
  .jobs { gap: 0; }
  .jobs > li { padding: 6pt 0; break-inside: avoid; }
  .jobs h4 { font-size: 11.5pt; }
  .chips li { padding: 0; }
  .chips li:not(:last-child)::after { content: " ·"; }
  a { text-decoration: none; }
}
