/* Archer Machinery
   Dark charcoal surfaces with gold #E4A735. Gold is for buttons,
   rules, and the logo. Body text stays light so it stays readable. */

:root {
  --ink: #f6f4f0;
  --body: #d4d0c8;
  --muted: #b7b2a8;
  --paper: #141312;
  --surface: #1f1e1b;
  --line: #3a3632;
  --gold: #e4a735;
  --gold-press: #c9922a;
  --charcoal: #1f1e1b;
  --photo: #2a2825;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 1.25rem;
  --header-offset: 12rem;
  color-scheme: dark;
}

@media (min-width: 800px) {
  :root { --gutter: 2.25rem; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--body);
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
}

main { flex: 1; }

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

h1, h2, h3, p, dl, figure { margin: 0; }

h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a { color: var(--ink); text-underline-offset: 0.18em; }

a:hover { color: var(--charcoal); }

abbr[title] {
  text-decoration: none;
  cursor: help;
}

::selection { background: #6b5424; color: var(--ink); }

:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  transform: translateY(-150%);
  z-index: 30;
  background: var(--charcoal);
  color: var(--gold);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  font-weight: 600;
}

.skip-link:focus { transform: none; }

.wrap {
  width: min(1160px, calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.lede {
  margin-top: 1.15rem;
  max-width: 34rem;
  color: var(--body);
  font-size: 1.2rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 19, 18, 0.94);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 0;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 128px;
  height: 128px;
  display: block;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-primary:hover {
  background: var(--gold-press);
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: #8a847b;
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem 4.5rem;
  align-items: end;
  padding: 4.25rem 0 5rem;
}

.hero h1 {
  max-width: 11em;
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero-figure a { display: block; color: inherit; }

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--photo);
  border-radius: var(--radius);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.photo-credit {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.featured { padding: 0 0 1rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  max-width: none;
  margin-bottom: 1.75rem;
  padding-top: 0;
  border-top: 0;
}

.section-head h2 {
  padding-top: 0;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.section-head p {
  margin-top: 0.55rem;
  max-width: 28rem;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.card:hover { border-color: var(--gold); }

.card:hover .card-more { text-decoration: underline; }

.card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--photo);
  flex: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}

.card h3 {
  font-size: 1.85rem;
  line-height: 0.95;
}

.card-meta,
.card-location {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-foot {
  margin-top: auto;
  padding-top: 0.85rem;
}

.card-price {
  display: block;
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.card-price abbr,
.asking-value abbr {
  margin-left: 0.2em;
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.card-more {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--ink);
  font-weight: 600;
}

.page-head {
  max-width: 40rem;
  padding: 3.5rem 0 0.5rem;
}

.page-head h1 {
  font-size: clamp(3.6rem, 8vw, 5.5rem);
}

.inventory-list { padding: 1.75rem 0 0.5rem; }

.machine {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.15fr);
  gap: 1.75rem 2.5rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: var(--header-offset);
}

.machine:last-child { margin-bottom: 0; }

.machine:target { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }

.machine-photos {
  display: grid;
  gap: 0.55rem;
}

.machine-photos img {
  display: block;
  width: 100%;
  background: var(--photo);
  border-radius: 12px;
}

.machine-photos img + img {
  height: 11rem;
  object-fit: cover;
  object-position: center 32%;
}

.machine-photos:has(img:nth-child(3)) {
  grid-template-columns: 1fr 1fr;
}

.machine-photos:has(img:nth-child(3)) img:first-child {
  grid-column: 1 / -1;
  height: auto;
}

.machine-photos:has(img:nth-child(3)) img + img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.machine h2 { font-size: clamp(2.15rem, 3.5vw, 2.85rem); }

.machine-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 1.5rem;
}

.facts,
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin-top: 1rem;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.facts dt,
.specs dt,
.location-label,
.asking-label,
.contact-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts dd,
.specs dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 500;
}

.asking { text-align: right; }

.asking-amount {
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 0.9;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.location { margin-top: 1.1rem; }

.location-label { display: block; margin-bottom: 0.15rem; }

.machine-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  margin-top: 1.4rem;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
}

.cta {
  margin-top: 4.5rem;
  background: transparent;
  color: var(--body);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 2.25rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cta h2 {
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.cta p {
  max-width: 34rem;
  margin-top: 0.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cta :focus-visible { outline-color: var(--gold); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem 4rem;
  align-items: start;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.contact-grid .page-head { padding-top: 0; }

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 0.4rem;
}

.contact-action { margin-bottom: 0.35rem; }

.contact-row {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.contact-row:last-child { border-bottom: 0; }

.contact-value {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-value:hover { text-decoration: underline; }

address.contact-value { font-style: normal; }

address.contact-value span { display: block; }

.empty { padding: 1rem 0 2rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding: 1.35rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-inner p { margin: 0; }

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover { text-decoration: underline; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-mark {
  width: 68px;
  height: 68px;
  display: block;
}

@media (max-width: 980px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero,
  .contact-grid,
  .machine {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    gap: 1.75rem;
  }

  .machine { gap: 1.15rem; padding: 1rem; }
}

@media (max-width: 720px) {
  :root { --header-offset: 15rem; }

  .header-inner {
    display: block;
    padding-top: 0.45rem;
    padding-bottom: 0;
  }

  .brand { padding: 0.2rem 0 0.7rem; }

  .brand-mark { width: 112px; height: 112px; }

  .footer-mark { width: 60px; height: 60px; }

  .nav {
    margin-inline: calc(var(--gutter) * -1);
    border-top: 1px solid var(--line);
  }

  .nav a {
    flex: 1;
    justify-content: center;
    padding: 0.15rem 0.35rem;
  }

  .cta-inner,
  .machine-top,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asking { text-align: left; }

  .featured-grid { grid-template-columns: 1fr; }

  .hero-caption { flex-direction: column; gap: 0.2rem; }

  .contact-panel { padding: 1.15rem 1.1rem 0.25rem; }
}

@media (max-width: 380px) {
  .specs { grid-template-columns: 1fr; }
  .brand-mark { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header { position: static; border-top: 0; }
  .skip-link, .cta, .hero-actions, .machine-actions { display: none; }
  body { background: #fff; }
  a { color: #000; }
  .machine { break-inside: avoid; }
  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }
}
