:root {
  color-scheme: light;
  --canvas: #f4f3ef;
  --surface: #fbfaf7;
  --ink: #191a18;
  --muted: #62645d;
  --rule: #c9c9c1;
  --focus: #164e63;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  min-width: 20rem;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.page-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 5rem);
}

.emergency-card {
  display: grid;
  width: min(100%, 68rem);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.emergency-card__content {
  padding: clamp(1.75rem, 5vw, 4.25rem);
}

.identity p,
.message p,
.contact p,
.details p,
.hours p { margin: 0; }

.identity h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.identity p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.message {
  margin-top: clamp(3.75rem, 10vw, 7.5rem);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.contact {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.contact h2,
.hours h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.contact > p:not(.contact__links) { margin-top: 0.15rem; }

.contact__links {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem !important;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
}

.details,
.hours { margin-top: 2rem; }

.details {
  font-style: normal;
  font-weight: 600;
}

.details__note,
.hours__note {
  max-width: 34rem;
  margin-top: 0.2rem !important;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.hours > p:not(.hours__note) {
  margin-top: 0.15rem;
  font-weight: 600;
}

.workshop-photo {
  min-height: 18rem;
  margin: 0;
  background: #d9d9d2;
}

.workshop-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

@media (min-width: 45rem) {
  .emergency-card { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr); }

  .workshop-photo { min-height: 100%; }
}

@media (max-width: 44.9375rem) {
  .workshop-photo {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .workshop-photo img { object-position: 60% 59%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
