/* ------------------------------------------------------------------
   Chris Kubicki — owner's manual
   paper / ink / safety yellow
------------------------------------------------------------------ */

:root {
  --paper: #F6F6F2;
  --ink: #161616;
  --yellow: #FFD02F;
  --graphite: #63635C;
  --line: #D8D8CF;
  --rule: 3px solid var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  border-top: 8px solid var(--yellow);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a { color: inherit; }

/* --- content column (keeps everything together on wide screens) --- */

.shell {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- skip link ---------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

/* --- topbar ------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.topnav a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.topnav a:hover { border-bottom-color: var(--ink); }

.clock-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.clock { font-size: 15px; font-weight: 600; }

.clock-tz {
  font-size: 13px;
  color: var(--graphite);
}

/* --- cover -------------------------------------------------------- */

.cover {
  padding: clamp(40px, 7vw, 88px) 0 24px;
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.poster {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(3.6rem, 12.5vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.poster-line { display: block; }

.poster-line-solid {
  color: var(--ink);
  animation: stamp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both;
}

.poster-line-stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  animation: stamp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
}

@keyframes stamp {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.tagline {
  max-width: 46ch;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
}

/* --- spec card ---------------------------------------------------- */

.spec-card {
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 18px 18px 0;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-head {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.card-list { list-style: none; }

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(22, 22, 22, 0.35);
}

.card-row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(22, 22, 22, 0.7);
  padding-top: 2px;
}

.card-row dd {
  font-weight: 700;
  text-align: right;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 -18px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--ink);
}

.serial {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* --- barcode ------------------------------------------------------ */

.barcode {
  display: flex;
  align-items: stretch;
  height: 26px;
  min-width: 70px;
}

.barcode .bar {
  background: var(--ink);
  width: 2px;
  flex: none;
}

.barcode .space {
  width: 1.5px;
  flex: none;
}

/* --- cover foot --------------------------------------------------- */

.cover-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--graphite);
}

/* --- manual sections ---------------------------------------------- */

.manual {
  padding-top: clamp(48px, 8vw, 88px);
}

.sec-head {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: var(--rule);
  margin-bottom: 0;
}

/* --- spec table --------------------------------------------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}

.spec-table tr:hover { background: var(--yellow); }

.spec-table th,
.spec-table td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 180px;
  font-weight: 700;
}

/* --- operating range ---------------------------------------------- */

.range-list { list-style: none; }

.range-list li {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px 24px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}

.range-list li:hover { background: var(--yellow); }

.r-term { font-weight: 700; }

.r-desc { color: var(--graphite); }

/* --- selected work ------------------------------------------------ */

.work-list { list-style: none; }

.work-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px 24px;
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}

.work-row:hover { background: var(--yellow); }

.w-years {
  font-weight: 700;
  color: var(--graphite);
  padding-top: 4px;
}

.w-name {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

a.w-name { border-bottom: 2px solid transparent; }

a.w-name:hover { border-bottom-color: var(--ink); }

.w-desc {
  margin-top: 4px;
  font-size: 15px;
  color: var(--graphite);
  max-width: 62ch;
}

/* --- contact ------------------------------------------------------ */

.contact-lede {
  margin: 24px 0 28px;
  max-width: 52ch;
  font-size: 1.2rem;
}

.mail-big {
  display: inline-block;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 5.5vw, 3.6rem);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-decoration: none;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 4px;
  transition: background 0.12s ease;
}

.mail-big:hover { background: var(--yellow); }

/* --- footer ------------------------------------------------------- */

.page-foot {
  margin-top: clamp(64px, 10vw, 120px);
  border-top: var(--rule);
  padding: 28px 0 40px;
}

.page-foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.foot-note {
  font-size: 14px;
  color: var(--graphite);
}

/* --- responsive --------------------------------------------------- */

@media (max-width: 860px) {
  .cover-grid { grid-template-columns: 1fr; align-items: start; }
  .spec-card { max-width: 340px; }
  .topnav { display: none; }
  .range-list li { grid-template-columns: 1fr; gap: 4px; }
  .work-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-table th { width: 130px; }
}

/* --- reduced motion ----------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster-line-solid,
  .poster-line-stroke,
  .spec-card { animation: none; }
  .spec-table tr,
  .range-list li,
  .work-row,
  .mail-big { transition: none; }
}
