:root {
  color-scheme: light;
  --desk: #e3dbd0;
  --paper: #fbf8f3;
  --ink: #1b1b1b;
  --muted: #5c564c;
  --line: #d3c9ba;
  --link: #1428a0;
  --bar: #2a3848;
  --bar-ink: #f4efe6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: Verdana, Geneva, "Trebuchet MS", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

::selection {
  background: #ffe36a;
  color: #1b1b1b;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }

a:visited { color: #5c2d91; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 6px 10px;
  z-index: 5;
}

.skip:focus { top: 8px; }

.mast {
  background: var(--bar);
  color: var(--bar-ink);
  font-size: 13px;
}

.mast-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 16px;
}

.mast a {
  color: var(--bar-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.ticker {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.edition {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet {
  max-width: 760px;
  margin: 18px auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 32px 32px;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.lede {
  margin: 0 0 18px;
  font-size: 16px;
}

.photo-block { margin: 0 0 8px; }

.cap-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0 0 8px;
  cursor: pointer;
  user-select: none;
}

.shot {
  position: relative;
  margin: 0;
  background: #0c1420;
  line-height: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.doge-layer { position: absolute; inset: 0; pointer-events: none; }

.doge {
  position: absolute;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  font-weight: 700;
  line-height: 0.9;
  white-space: nowrap;
  text-shadow:
    0 2px 0 #071018,
    0 -2px 0 #071018,
    2px 0 0 #071018,
    -2px 0 0 #071018,
    2px 2px 0 #071018,
    -2px -2px 0 #071018,
    2px -2px 0 #071018,
    -2px 2px 0 #071018;
}

.w-wow {
  top: 5%;
  left: 4%;
  font-size: clamp(32px, 5.6vw, 54px);
  color: #3ec8ff;
  transform: rotate(-8deg);
  animation: drift 3.4s ease-in-out infinite alternate;
}

.w-civic {
  top: 16%;
  right: 5%;
  font-size: clamp(18px, 3vw, 28px);
  color: #ffe14a;
  transform: rotate(6deg);
}

.w-fly {
  top: 34%;
  left: 2.5%;
  font-size: clamp(16px, 2.6vw, 24px);
  color: #ff5caf;
  transform: rotate(-6deg);
}

.w-gentle {
  right: 6%;
  bottom: 30%;
  font-size: clamp(16px, 2.8vw, 26px);
  color: #c6f25c;
  transform: rotate(-12deg);
}

.w-orbit {
  left: 7%;
  bottom: 10%;
  font-size: clamp(16px, 2.8vw, 26px);
  color: #ff9a2e;
  transform: rotate(3deg);
}

@keyframes drift {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(-5deg) translateY(-8px); }
}

.photo-block:has(#caps:not(:checked)) .doge-layer,
.photo-block:has(#caps:not(:checked)) .fell {
  display: none;
}

figcaption,
.cap-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: #3f3a33;
  margin: 8px 0 0;
}

.fell { display: none; }

.nowrap { white-space: nowrap; }

.second {
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.second img,
.second figcaption {
  width: min(100%, 480px);
}

.second img {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  background: #000;
}

.cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 6px;
  padding: 12px;
  background: #ece7dc;
  border: 1px solid #c9c0b0;
}

.cluster div { min-width: 0; }

.cluster .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.cluster b {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  background: #d9d3c5;
  border: 1px solid #9e978a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
  padding: 2px 6px;
}

.cluster small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.facts {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 4px 12px;
  margin: 18px 0;
  padding: 0;
  font-size: 14px;
}

.facts dt { color: var(--muted); }

.facts dd { margin: 0; }

.body-copy p { margin: 0 0 14px; }

.years {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.years li {
  margin: 0 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.years b { font-weight: 700; }

h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 28px 0 10px;
}

.sheet h2:first-child { margin-top: 0; }

.sticker-wrap {
  max-width: 760px;
  margin: 18px auto 22px;
  padding: 0 0 4px;
}

.sticker {
  background: #fff;
  color: #111;
  border: 2px solid #161616;
  outline: 1px solid #161616;
  outline-offset: -7px;
  padding: 26px 26px 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-shadow: 0 10px 24px rgba(60, 40, 20, 0.08);
  transform: rotate(-0.25deg);
}

.sticker-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sticker h2 {
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: none;
  margin: 2px 0 6px;
}

.trim {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.stock {
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.stock span {
  display: block;
  margin-top: 4px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: none;
}

.vin {
  margin: 14px 0;
  padding: 8px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vin code {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.cols h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cols ul {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 13.5px;
  line-height: 1.4;
}

.cols li { margin: 0 0 6px; }

.bow {
  display: inline-block;
  width: 54px;
  height: 28px;
  vertical-align: -8px;
  margin-right: 6px;
  background: conic-gradient(
    from 270deg at 50% 100%,
    #d62828 0 30deg,
    #f0771a 0 60deg,
    #f2d230 0 90deg,
    #2f9e3a 0 120deg,
    #2f74d0 0 150deg,
    #7a45c4 0 180deg
  );
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 58%, #000 59%);
  mask: radial-gradient(circle at 50% 100%, transparent 58%, #000 59%);
}

.money {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.money th,
.money td {
  padding: 5px 0;
  vertical-align: baseline;
}

.money th {
  text-align: left;
  font-weight: 500;
  padding-right: 16px;
}

.money td {
  text-align: right;
  font-weight: 650;
  white-space: nowrap;
}

.money tr.sum th,
.money tr.sum td {
  border-top: 2px solid #111;
  padding-top: 8px;
  font-weight: 800;
  font-size: 16px;
}

.epa {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 8px 18px;
  align-items: end;
  margin-top: 14px;
  border: 2px solid #111;
  padding: 10px 12px;
}

.epa b {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.epa span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.epa p {
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.35;
}

.classline {
  margin: 12px 0 0;
  font-size: 13.5px;
}

.fine {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #333;
}

.asked .q {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.asked .q:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.asked h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  font-family: Verdana, Geneva, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.asked p { margin: 0; }

label[for="msg"] {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

textarea {
  width: 100%;
  font: 15px/1.45 Verdana, Geneva, sans-serif;
  padding: 8px;
  border: 1px solid #8d867a;
  background: #fff;
  color: #111;
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 12.5px;
  margin: 6px 0 10px;
}

button {
  font: 14px Verdana, Geneva, sans-serif;
  background: #eeeae3;
  color: #111;
  border: 1px solid #6e6a62;
  border-radius: 2px;
  padding: 5px 14px;
  box-shadow: inset 0 1px 0 #fff;
  cursor: pointer;
}

button:hover { background: #e4dfd6; }

button:active { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); }

.linkish {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: var(--link);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}

.answer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.answer[hidden] { display: none; }

.you {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.dog-line {
  margin: 0 0 6px;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  font-size: 28px;
  font-weight: 700;
  color: #d23d8a;
  line-height: 1;
}

.seller-line { margin: 0; }

.colophon {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 18px 40px;
  color: #3f3a33;
  font-size: 12.5px;
  line-height: 1.5;
}

.colophon p { margin: 0 0 8px; }

@media (max-width: 700px) {
  .mast { font-size: 12px; }
  .mast-inner { padding: 8px 12px; flex-wrap: wrap; }
  .sheet { margin: 12px; padding: 18px 16px 22px; }
  .sticker-wrap { margin: 12px; }
  .sticker { padding: 20px 16px 14px; transform: none; }
  .edition, .colophon { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 22px; }
  .sticker h2 { font-size: 28px; }
  .cols, .cluster, .facts { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 8.2em 1fr; }
  .epa { grid-template-columns: auto auto auto; }
  .epa p { grid-column: 1 / -1; min-width: 0; }
  .sticker-top { align-items: flex-end; }
  .sticker h2 { font-size: 30px; }
  .second img { width: 100%; }
  .doge-layer {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 14px;
    padding: 10px 2px 2px;
    background: var(--paper);
    line-height: 1.3;
  }
  .doge {
    position: static;
    transform: none;
    animation: none;
    text-shadow: none;
    font-size: 20px;
    line-height: 1.2;
  }
  .fell { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w-wow { animation: none; }
}

@media print {
  body { background: #fff; }
  .mast, .edition, #reply, .cap-toggle, .fell, .colophon .noprint { display: none; }
  .sheet, .sticker-wrap { margin: 0 0 16px; max-width: none; }
  .sticker { transform: none; box-shadow: none; }
  .doge-layer { position: static; }
  .doge {
    position: static;
    display: inline-block;
    margin: 0 10px 4px 0;
    animation: none;
    text-shadow: none;
    font-size: 16px;
  }
}
