@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
  --ink: #132d33;
  --deep: #17333a;
  --paper: #f3f2ed;
  --white: #fbfbf8;
  --line: #bcc7c5;
  --muted: #647577;
  --sea: #89a9ad;
  --accent: #c86f4a;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--white);
}
.skip-link:focus { top: 1rem; }

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .26em;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -.02em;
}
.wordmark b { color: var(--accent); font-family: var(--sans); font-size: .7em; font-weight: 600; }
nav { display: flex; gap: clamp(1.25rem, 3vw, 3rem); }
nav a { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: .35rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(20rem, .8fr); min-height: calc(100svh - 82px); }
.carousel { position: relative; min-height: 610px; overflow: hidden; background: var(--deep); }
.carousel-stage, .slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .5s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide button { width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: transparent; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.empty-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1.5rem;
  color: #dbe4e2;
  text-align: center;
  background-color: var(--deep);
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.empty-photo svg { width: min(74vw, 760px); max-height: 56vh; fill: none; stroke: var(--sea); stroke-width: 2; }
.empty-photo p { margin: 0; color: #a9bdbc; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.carousel-button {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(19,45,51,.42);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.carousel-button:hover, .carousel-button:focus-visible { background: var(--white); color: var(--ink); }
.carousel-button:disabled { display: none; }
.previous { right: 6.2rem; }
.next { right: 2rem; }
.carousel-count {
  position: absolute;
  z-index: 3;
  left: 2rem;
  bottom: 2.45rem;
  min-width: 4rem;
  color: white;
  font-size: .75rem;
  letter-spacing: .12em;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(2rem, 5vw, 5.5rem);
}
.eyebrow, .section-number { margin: 0; color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: .65rem 0 2rem; font: 500 clamp(4rem, 8vw, 7.5rem)/.83 var(--serif); letter-spacing: -.055em; }
.headline-facts { display: grid; border-top: 1px solid var(--line); }
.headline-facts span { padding: .72rem 0; border-bottom: 1px solid var(--line); font-size: .83rem; }
.text-link { align-self: flex-start; margin-top: 2.5rem; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.text-link span { display: inline-block; margin-left: .5rem; transition: transform .2s; }
.text-link:hover span { transform: translateY(.25rem); }

.details-section, .spec-section, .inventory-section {
  display: grid;
  grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 8vw, 9rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
}
.section-heading h2, .contact-section h2 { margin: .55rem 0 0; font: 500 clamp(2.6rem, 5vw, 5.4rem)/.95 var(--serif); letter-spacing: -.035em; }
.prose { max-width: 43rem; }
.prose > p { margin: 0 0 1.4rem; font: 400 clamp(1.35rem, 2.3vw, 2rem)/1.34 var(--serif); }
.prose .note { margin-top: 3rem; color: var(--muted); font: 400 .82rem/1.6 var(--sans); }
.spec-section { background: var(--white); }
.spec-list { margin: 0; border-top: 1px solid var(--ink); }
.spec-list div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
dd { margin: 0; font-size: .9rem; }
.inline-link { font-weight: 600; text-underline-offset: .25rem; }
.spec-action { align-items: center; }
.inventory-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.inventory-grid div { min-height: 10rem; padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.inventory-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.inventory-grid div:nth-child(even) { padding-left: 1.5rem; }
.inventory-grid h3 { margin: 0 0 1rem; font: 500 1.45rem var(--serif); }
.inventory-grid p { color: var(--muted); font-size: .85rem; }
.contact-section { padding: clamp(5rem, 11vw, 11rem) clamp(1.25rem, 8vw, 9rem); color: var(--white); background: var(--deep); }
.contact-section h2 { margin-bottom: 1.5rem; }
.contact-section > p:not(.section-number) { max-width: 35rem; color: #b8c7c5; font-family: var(--serif); font-size: 1.35rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 3.25rem;
  margin-top: 2.5rem;
  padding: .8rem 1rem;
  border: 1px solid #8aa0a0;
  color: var(--white);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.contact-link:hover, .contact-link:focus-visible { background: var(--white); color: var(--ink); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.3rem clamp(1.25rem, 4vw, 4.5rem); background: #10292f; color: #91a7a7; border-top: 1px solid #3d585d; }
footer p { margin: 0; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-mark { color: var(--white); }

.spec-page { padding-top: 1px; }
.spec-hero { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 8vw, 9rem) clamp(4rem, 7vw, 7rem); }
.spec-hero h1 { margin-bottom: 1.5rem; font-size: clamp(3rem, 11vw, 7.5rem); }
.spec-hero > p:last-child { margin: 0; color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.spec-group {
  display: grid;
  grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 8vw, 9rem);
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
}
.spec-group:nth-of-type(even) { background: var(--white); }
.spec-group h2 { margin: 0; font: 500 clamp(2rem, 3.5vw, 3.7rem)/1 var(--serif); letter-spacing: -.03em; }
.condition-row dd { color: #a7422f; font-weight: 600; }
.spec-contact { margin-top: 0; }
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: #09191ddd; }
.lightbox::backdrop { background: #09191d; }
.lightbox img { width: 100%; height: 100%; padding: 3rem; object-fit: contain; }
.lightbox button { position: fixed; z-index: 2; top: 1rem; right: 1rem; padding: .65rem 1rem; border: 1px solid white; background: #09191d; color: white; cursor: pointer; }

@media (max-width: 800px) {
  .site-header { height: 68px; }
  nav a:not(:last-child) { display: none; }
  .hero { display: flex; flex-direction: column; min-height: auto; }
  .carousel { min-height: min(68svh, 580px); order: 1; }
  .hero-copy { min-height: 22rem; order: 2; padding: 3rem 1.25rem; }
  h1 { font-size: clamp(4.5rem, 22vw, 7rem); }
  .details-section, .spec-section, .inventory-section, .spec-group { grid-template-columns: 1fr; gap: 3rem; }
  .carousel-button { bottom: 1.25rem; }
  .previous { right: 5rem; }
  .next { right: 1.25rem; }
  .carousel-count { left: 1.25rem; bottom: 1.75rem; }
  .contact-link { width: 100%; max-width: 24rem; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .inventory-grid { grid-template-columns: 1fr; }
  .inventory-grid div:nth-child(odd) { border-right: 0; }
  .inventory-grid div:nth-child(even) { padding-left: 0; }
  .spec-list div { grid-template-columns: .8fr 1.2fr; }
  .lightbox img { padding: 3.5rem .5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
