/* karsonoakley.com — styled after a shop drawing: drafting film, graphite ink,
   item balloons, a parts list, and redline markup as the single accent. */
:root {
  --film: #e7ebe8;      /* drafting film */
  --sheet: #f3f5f3;     /* lighter panel */
  --ink: #1c2329;       /* graphite ink */
  --lead: #5a646b;      /* secondary text */
  --rule: #a3acb1;      /* construction lines */
  --redline: #b3261e;   /* revision markup */
  --w: 68rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--film);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--redline); }
:focus-visible { outline: 2px solid var(--redline); outline-offset: 3px; }

/* top bar */
.bar, main, .foot { max-width: var(--w); margin: 0 auto; padding: 0 1.5rem; }
.bar { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.home { font-weight: 700; text-decoration: none; font-variation-settings: "wdth" 115; }
.bar nav { display: flex; gap: 1.5rem; }
.bar nav a { text-decoration: none; color: var(--lead); }
.bar nav a:hover { color: var(--ink); }

/* hero: the name is the drawing, the dimension line is its callout */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  line-height: 0.88;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
}
.dim { position: relative; height: 1.5rem; margin: 1.4rem 0 1rem; max-width: 46rem; }
.dim::before, .dim::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--redline); }
.dim::before { left: 0; } .dim::after { right: 0; }
.dim span { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--redline); }
.dim span::before, .dim span::after {
  content: ""; position: absolute; top: -4px; border: 4.5px solid transparent;
}
.dim span::before { left: 0; border-right: 9px solid var(--redline); border-left: 0; }
.dim span::after { right: 0; border-left: 9px solid var(--redline); border-right: 0; }
.degrees { margin: 0 0 1.75rem; color: var(--redline); font-weight: 600; max-width: 46rem; }
.intro { max-width: 38rem; font-size: 1.2rem; margin: 0 0 2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin: 0; }
.btn {
  display: inline-block; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--film);
  text-decoration: none; font-weight: 600; border-radius: 2px;
}
.btn:hover { background: var(--redline); }
.link { font-weight: 600; }

/* parts list */
h2 { font-size: 1.6rem; font-weight: 700; font-variation-settings: "wdth" 115; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.parts { padding: 2.5rem 0 3rem; border-top: 1px solid var(--rule); }
.note { color: var(--lead); margin: 0 0 1.5rem; }
.bom { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ink); background: var(--sheet); }
.bom li + li { border-top: 1px solid var(--rule); }
.bom a, .bom .head {
  display: grid; grid-template-columns: 4rem 1.4fr 1.2fr 10rem; gap: 1rem; align-items: center;
  padding: 0.9rem 1rem; text-decoration: none;
}
.bom .head { font-size: 0.85rem; color: var(--lead); border-bottom: 1px solid var(--ink); padding-top: 0.5rem; padding-bottom: 0.5rem; }
.bom .head .item { border: 0; }
.bom a:hover { background: #fff; }
.bom a:hover .name { color: var(--redline); }
.bom .item {
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%; font-weight: 600; font-size: 0.95rem;
}
.bom .name { font-weight: 700; font-size: 1.1rem; }
.bom .tools { color: var(--lead); }
.bom .when { color: var(--lead); text-align: right; font-variant-numeric: tabular-nums; }

.also { padding: 2.5rem 0 4rem; border-top: 1px solid var(--rule); }
.also p { max-width: 38rem; margin: 0.5rem 0 0; }

/* project pages */
.project { padding-top: 2.5rem; padding-bottom: 4rem; }
.crumb { color: var(--lead); margin: 0 0 1rem; }
.project h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 0.95; margin: 0 0 1.75rem;
  font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -0.015em;
}
/* title block */
.block { display: grid; grid-template-columns: repeat(3, minmax(0, 14rem)); margin: 0 0 2rem; border: 1px solid var(--ink); width: fit-content; max-width: 100%; background: var(--sheet); }
.block div { padding: 0.5rem 0.9rem; }
.block div + div { border-left: 1px solid var(--ink); }
.block dt { font-size: 0.8rem; color: var(--lead); }
.block dd { margin: 0; font-weight: 600; }
.lede { font-size: 1.25rem; max-width: 40rem; margin: 0 0 2.5rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin: 0 0 3rem; }
.photo { margin: 0; }
.slot {
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--lead);
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(45deg, transparent 0 9px, rgba(90,100,107,.16) 9px 10px), var(--sheet);
}
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--rule); }
.photo figcaption { font-size: 0.9rem; color: var(--lead); margin-top: 0.45rem; }
.did { max-width: 42rem; padding-left: 1.2rem; margin: 0.75rem 0 3rem; }
.did li { margin-bottom: 0.6rem; }
.did li::marker { color: var(--redline); }
.pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; font-weight: 600; }

.foot { display: flex; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 1.25rem; padding-bottom: 2rem; color: var(--lead); }
.foot p { margin: 0; }

@media (max-width: 720px) {
  .bom a, .bom .head { grid-template-columns: 2.8rem 1fr; row-gap: 0.15rem; }
  .bom .head .tools, .bom .head .when { display: none; }
  .bom .tools, .bom .when { grid-column: 2; text-align: left; font-size: 0.95rem; }
  .block { grid-template-columns: 1fr; width: 100%; }
  .block div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .bar nav { gap: 1rem; }
  .foot { flex-direction: column; gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.bom .head .name { font-weight: inherit; font-size: inherit; }
.photo img[src*="baja-car"] { object-position: 50% 40%; }
.photos.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .photos.even { grid-template-columns: 1fr; } }
.photo img[src*="drawing"] { object-fit: contain; background: #fff; }
.lesson { max-width: 42rem; margin: 0.75rem 0 3rem; padding-left: 1rem; border-left: 2px solid var(--redline); }
.photo img[src*="spray-proto"] { object-position: 50% 45%; }
.photo img[src*="captions-"] { object-fit: contain; background: #000; }
.photo img[src*="aura-home"] { object-fit: contain; background: #dfe6e3; }
.photo img[src*="aura-team"], .photo img[src*="aura-demo-chat"] { object-fit: contain; background: #d6ddda; }
.project .cta { margin: -1.25rem 0 2.5rem; }
.photo img[src*="knn-"] { object-fit: contain; background: #fff; }
.photo.wide { grid-column: 1 / -1; }
.photo video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border: 1px solid var(--rule); }
.photo img[src*="coaster-"] { object-fit: contain; background: #d6ddda; }
.photos:has(.wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .photos:has(.wide) { grid-template-columns: 1fr; } }
