/* Hallmark custom · Spoke Social · Bicycle repairs and workshop services */
/* Critique: each section follows the business-specific action and its materials. */
@font-face {
  font-family: "barlow-condensed";
  src: url("./fonts/barlow-condensed.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "dm-sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f8f6ec;
  --ink: #142429;
  --accent: #cb462f;
  --yellow: #e4ed42;
  --red: #c9412f;
  --display: "barlow-condensed", Georgia, serif;
  --body: "dm-sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  width: min(calc(100% - clamp(2.25rem, 9vw, 9rem)), 82rem);
  margin-inline: auto;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
.signature {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  min-width: 0;
  font-weight: 400;
}
h1 {
  font-size: clamp(3.45rem, 7.4vw, 7.5rem);
}
h2 {
  font-size: clamp(2.3rem, 4.3vw, 4.6rem);
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.5rem);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
select {
  font: inherit;
  color: inherit;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:disabled,
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 5.25rem;
}
.brand,
.signature {
  color: inherit;
  text-decoration: none;
}
.brand {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
}
nav a {
  font-size: 0.93rem;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  text-decoration: underline;
}
.skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 9;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
}
.skip:focus {
  transform: none;
}
.step {
  padding-block: clamp(3.25rem, 7vw, 7.2rem);
}
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0;
}
.choice-list button {
  border: 1px solid currentColor;
  min-height: 2.75rem;
  background: transparent;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.choice-list button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.result {
  padding: 1.2rem 0;
  border-block: 1px solid currentColor;
}
.result strong {
  font-size: 1.18rem;
  display: block;
  margin-bottom: 0.35rem;
}
.result p {
  max-width: 48rem;
}
details {
  border-top: 1px solid currentColor;
  padding: 0.85rem 0;
}
details:last-child {
  border-bottom: 1px solid currentColor;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin-top: 0.55rem;
  max-width: 42rem;
}
footer {
  border-top: 1px solid var(--ink);
}
.foot {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 2.2rem;
}
.signature {
  font-size: 1.5rem;
}
.foot span,
.foot > a:last-child {
  font-size: 0.9rem;
}
@media (max-width: 690px) {
  header .wrap {
    min-height: 4.6rem;
  }
  nav {
    gap: 0.7rem;
  }
  nav a {
    font-size: 0.875rem;
  }
  .foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
  .choice-list button {
    flex: 0 1 auto;
  }
}
@media (max-width: 445px) {
  .optional {
    display: none;
  }
  .wrap {
    width: calc(100% - 2rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  header,
  footer .foot > a:last-child,
  .skip,
  .choice-list {
    display: none;
  }
}
header {
  background: var(--ink);
  color: var(--paper);
}
.brand {
  font-weight: 900;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.wheel {
  width: 1.65rem;
  height: 1.65rem;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: repeating-conic-gradient(
    transparent 0 26deg,
    currentColor 27deg 30deg
  );
}
h2,
h3 {
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.serviceboard {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 7%;
  align-items: start;
}
.serviceboard h2 + p,
.spoke-selector h2 + p,
.roll-in p {
  margin-top: 1rem;
  max-width: 30rem;
}
table {
  border-collapse: collapse;
  width: 100%;
}
caption {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
th,
td {
  border-top: 1px solid var(--ink);
  padding: 0.85rem 0.5rem 0.85rem 0;
  text-align: left;
}
thead {
  font-size: 0.88rem;
}
tbody th {
  font-size: 1.12rem;
  line-height: 1.12;
}
td:last-child {
  font-weight: 750;
  white-space: nowrap;
}
.spoke-selector {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 6rem);
}
.spoke-selector > .wrap,
.roll-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 7%;
}
#tool {
  border: 2px solid var(--yellow);
  padding: clamp(1.2rem, 3vw, 2.6rem);
}
#tool .choice-list button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}
.roll-in img {
  height: clamp(16rem, 25vw, 26rem);
  width: 100%;
  object-fit: cover;
}
.roll-in dl {
  max-width: 30rem;
  margin-top: 1.5rem;
}
.roll-in dl > div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid;
  padding: 0.55rem 0;
}
@media (max-width: 720px) {
  .serviceboard,
  .spoke-selector > .wrap,
  .roll-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
  .serviceboard th,
  .serviceboard td {
    padding-right: 0.5rem;
  }
  .spoke-selector h2 br {
    display: none;
  }
}
:where(img) {
  height: auto;
}
.bench {
  background: var(--yellow);
  padding-block: clamp(3rem, 6vw, 6rem);
}
.ticket-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.67fr) minmax(0, 1.33fr);
  gap: 7%;
  align-items: start;
}
.ticket-shell h2 {
  max-width: 8ch;
}
.ticket-shell h2 + p {
  margin-top: 1rem;
  max-width: 32ch;
}
.ticket-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.bench-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.bench-fields label,
.ride-observation {
  display: block;
  font-weight: 650;
}
.bench-fields select,
.ride-observation textarea {
  display: block;
  font: 400 1rem var(--body);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.65rem;
  width: 100%;
  min-height: 44px;
  border-radius: 0;
}
.ride-observation {
  margin-top: 0.8rem;
}
.ride-observation span {
  font-weight: 400;
}
.ride-observation textarea {
  margin-top: 0.3rem;
  resize: vertical;
}
.ride-observation textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.tear-ticket {
  margin-top: 1rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1rem 1.2rem;
  box-shadow: 4px 4px 0 var(--ink);
}
.tear-ticket > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.tear-ticket p {
  max-width: 55ch;
  margin-top: 0.4rem;
}
.tear-ticket a {
  display: inline-flex;
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  margin-top: 1rem;
  font-weight: 600;
}
@media (max-width: 800px) {
  .ticket-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
  .ticket-shell h2 {
    max-width: none;
  }
  .bench-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .bench-fields label:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 380px) {
  .bench-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.to-ticket {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 650;
}
.photo-lead {
  display: grid;
  align-items: stretch;
  grid-template-columns: var(--lead-columns);
  background: var(--lead-bg);
  color: var(--lead-ink);
  width: 100%;
  margin: 0;
  isolation: isolate;
}
.photo-lead-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 6.5rem) clamp(1.15rem, 5.8vw, 7rem);
}
.photo-lead h1 {
  font-family: var(--display, inherit);
  font-weight: var(--lead-weight, 400);
  font-size: clamp(3.25rem, 6.8vw, 8.3rem);
  letter-spacing: -0.052em;
  line-height: 0.96;
  text-wrap: balance;
  color: inherit;
  max-width: 12ch;
  margin: 0;
}
.photo-lead p {
  font: inherit;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1.5;
  max-width: 39ch;
  margin: 1.15rem 0 0;
}
.photo-lead-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin: 1.15rem 0 0.2rem;
}
.photo-lead-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font: inherit;
  line-height: 1.28;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}
.photo-lead-links a:first-child {
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.photo-lead-links a:hover {
  text-decoration-thickness: 3px;
}
.photo-lead-image {
  margin: 0;
  min-width: 0;
  position: relative;
}
.photo-lead-image img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: var(--lead-pos, 50% 50%);
}
.photo-lead.side {
  min-height: clamp(27rem, 43vw, 43rem);
}
@media (max-width: 740px) {
  .photo-lead.side {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .photo-lead .photo-lead-text {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    position: static;
    background: none;
    padding: clamp(1.45rem, 5.5vw, 2.7rem) clamp(1.05rem, 5vw, 2.3rem);
  }
  .photo-lead h1 {
    font-size: clamp(2.7rem, 9.7vw, 5.2rem);
    max-width: 15ch;
  }
  .photo-lead p {
    margin-top: 0.8rem;
    font-size: 1rem;
    max-width: 46ch;
  }
  .photo-lead-links {
    margin-top: 0.65rem;
  }
  .photo-lead .photo-lead-image {
    position: relative;
    inset: auto;
    grid-row: 2;
    grid-column: 1;
    height: clamp(13rem, 47vw, 23rem);
    min-height: 0;
  }
  .photo-lead .photo-lead-image img {
    object-position: var(--lead-mobile-pos, var(--lead-pos));
  }
}
.photo-lead {
  --lead-columns: 44% 56%;
  --lead-pos: 63% 87%;
  --lead-bg: #edc650;
  --lead-ink: #1c2c29;
}
.photo-lead {
  --lead-mobile-pos: 58% 91%;
}
.photo-lead h1 {
  text-transform: uppercase;
  font-size: clamp(3.4rem, 6.4vw, 7.6rem);
  max-width: 12ch;
}
.photo-lead-image img {
  object-position: 63% 87%;
}
.bench-leader {
  max-width: 55ch;
  border-left: 3px solid #bc4426;
  padding: 0.65rem 0.9rem;
}
