/* =========================================================
   Font: Archivo (variable width 62–125%, weight 100–900), self-hosted.
   SIL Open Font License, see assets/fonts/OFL.txt
   ========================================================= */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   LeWatch: tokens
   ========================================================= */
:root {
  /* Brand (sampled from the LeWatch logo) */
  --cream: #FDEEC3;
  --brown: #684220;

  /* Supporting */
  --paper: #FFF8E6;     /* form fields, raised surfaces */
  --sand: #E7D29E;      /* rules, empty photo panels */
  --ink: #2B1A0B;       /* body text */
  --ink-soft: #5A4128;  /* secondary text, 7.6:1 on cream */
  --error: #9B2C12;     /* 7:1 on cream */
  --success: #2F5A2A;

  --bg: var(--cream);
  --fg: var(--ink);
  --accent: var(--brown);
  --on-accent: var(--cream);
  --rule: var(--sand);
  --focus: var(--brown);

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --semi: 112%;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.1rem, 1.4rem + 3vw, 4rem);

  /* Space (8pt rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: clamp(4.5rem, 3rem + 6vw, 8rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1360px;
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 40;
  --z-menu: 50;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, video { display: block; max-width: 100%; }

h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--brown);
  color: var(--cream);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-1); }

.display {
  font-stretch: var(--wide);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.text-link {
  font-stretch: var(--semi);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: text-decoration-thickness 150ms ease, color 150ms ease;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: var(--brown);
  background: linear-gradient(to bottom, rgb(253 238 195 / 0.92), rgb(253 238 195 / 0));
  transition: background-color 250ms ease, box-shadow 250ms ease;
}

.site-header.is-solid {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--rule);
}

.brand {
  display: block;
  flex: none;
  padding: var(--s-1) 0;
}
.brand img {
  width: auto;
  height: 1.4rem;
}

.site-nav ul {
  display: flex;
  gap: var(--s-3);
}
.site-nav a {
  display: inline-block;
  padding: var(--s-1) 0;
  font-size: var(--step--1);
  font-stretch: var(--semi);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.35rem) / 0 1px no-repeat;
  transition: background-size 200ms var(--ease-out);
}
.site-nav a:hover { background-size: 100% 1px; }

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}

.lang-switch {
  display: flex;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.lang-switch button {
  min-width: 2.75rem;
  min-height: 2.25rem;
  padding: 0 var(--s-1);
  border: 0;
  background: transparent;
  font-size: var(--step--1);
  font-stretch: var(--semi);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--brown);
  color: var(--cream);
}
.lang-switch button:not([aria-pressed="true"]):hover { background: rgb(104 66 32 / 0.1); }

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0 var(--s-2);
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  font-size: var(--step--1);
  font-stretch: var(--semi);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 899px) {
  :root { --header-h: 4rem; }

  .brand img { height: 1.1rem; }
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-menu);
    padding: var(--s-4) var(--gutter);
    background: var(--cream);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 250ms var(--ease-out), visibility 0s linear 250ms;
  }
  .site-header.menu-open { background: var(--cream); }
  .site-header.menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease, transform 250ms var(--ease-out);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav a {
    display: block;
    padding: var(--s-2) 0;
    font-size: var(--step-3);
    font-stretch: var(--wide);
    font-weight: 600;
    background: none;
  }
}

/* =========================================================
   Hero: two full-height panels, after the inspiration
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100svh;
  min-height: 560px;
  max-height: 1100px;
  background: var(--ink);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Desktop: photo on the left, video on the right. Delete these two lines to swap back. */
@media (min-width: 900px) {
  .hero-panel--photo { order: 1; }
  .hero-panel--video { order: 2; }
}

.hero-panel img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-panel--photo img { object-position: 46% 50%; }
.hero-video { object-position: 40% 50%; }

/* Keeps the bottom link legible over any frame */
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  z-index: -1;
  background: linear-gradient(to top, rgb(43 26 11 / 0.6), rgb(43 26 11 / 0));
  pointer-events: none;
}

.hero-link {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s-4);
  color: var(--cream);
  font-size: var(--step-1);
  font-stretch: var(--semi);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  padding: var(--s-1) 0;
}
.hero-link:hover { text-decoration-thickness: 2px; }
.hero-link:focus-visible { outline-color: var(--cream); }

.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-4);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(253 238 195 / 0.8);
  border-radius: 50%;
  background: rgb(43 26 11 / 0.35);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 150ms ease;
}
.video-toggle:hover { background: rgb(43 26 11 / 0.6); }
.video-toggle:focus-visible { outline-color: var(--cream); }
.video-toggle-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Pause icon: two bars. Play icon: triangle. */
.video-toggle-icon {
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.video-toggle.is-paused .video-toggle-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}

/* The one orchestrated moment: panels settle in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel img,
  .hero-video {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 900ms ease, transform 1400ms var(--ease-out);
  }
  .hero-panel--photo img { transition-delay: 150ms; }
  .hero-link,
  .video-toggle {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 500ms ease 700ms, transform 600ms var(--ease-out) 700ms;
  }
  .is-loaded .hero-panel img,
  .is-loaded .hero-video,
  .is-loaded .hero-link,
  .is-loaded .video-toggle {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 78svh 62svh;
    height: auto;
    max-height: none;
    min-height: 0;
  }
}

/* =========================================================
   Sections
   ========================================================= */
.intro,
.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5);
  align-items: end;
}
.intro h2 {
  font-size: var(--step-4);
  color: var(--brown);
}
.intro p {
  max-width: 34rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-2) var(--s-5);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--brown);
}
.section-head h2 {
  font-size: var(--step-3);
  color: var(--brown);
}
.section-lede {
  max-width: 32rem;
  color: var(--ink-soft);
}

@media (max-width: 899px) {
  .intro { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ---------- For sale ---------- */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: var(--s-5) var(--s-3);
}

.watch {
  display: flex;
  flex-direction: column;
}

.watch-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--sand);
  text-align: left;
  cursor: pointer;
}
.watch-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .watch-media:hover img { transform: scale(1.03); }
}

.watch-title-btn {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  line-height: inherit;
  cursor: pointer;
}
.watch-title-btn:hover .watch-model {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.watch-media--empty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-3);
}
.watch-media-brand {
  font-size: var(--step-3);
  font-stretch: var(--wide);
  font-weight: 600;
  line-height: 1;
  color: var(--brown);
  overflow-wrap: anywhere;
}
.watch-media-note {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.watch-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-2);
}

.watch-title {
  display: flex;
  flex-direction: column;
  font-size: var(--step-2);
  line-height: 1.2;
}
.watch-brand {
  font-stretch: var(--wide);
  font-weight: 600;
  color: var(--brown);
}
.watch-model { font-weight: 400; }

.watch-note {
  color: var(--ink-soft);
  max-width: 40ch;
}

.watch-specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.watch-specs dt {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.watch-specs dd {
  font-size: var(--step--1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.watch-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: auto;
}
.watch-price {
  font-size: var(--step-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.watch-foot .text-link {
  display: inline-block;
  padding: var(--s-1) 0;
  color: var(--brown);
}

/* ---------- Watch detail window ---------- */
.watch-dialog {
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  height: min(820px, calc(100svh - 3rem));
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--fg);
  overflow: hidden;
}
.watch-dialog::backdrop { background: rgb(43 26 11 / 0.72); }

@media (prefers-reduced-motion: no-preference) {
  .watch-dialog[open] { animation: wd-in 260ms var(--ease-out); }
  .watch-dialog[open]::backdrop { animation: wd-fade 260ms ease; }
}
@keyframes wd-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes wd-fade { from { opacity: 0; } }

.wd-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  height: 100%;
}

.wd-close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 2.75rem;
  padding: 0 var(--s-2);
  border: 1px solid var(--brown);
  border-radius: 2px;
  background: var(--cream);
  color: var(--brown);
  font-size: var(--step--1);
  font-stretch: var(--semi);
  font-weight: 600;
  cursor: pointer;
}
.wd-close:hover { background: var(--brown); color: var(--cream); }

.wd-gallery {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--sand);
}
.wd-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.wd-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.wd-track::-webkit-scrollbar { display: none; }
.wd-track:focus-visible { outline-offset: -3px; }
.wd-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}
.wd-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wd-slide--empty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-4);
}

.wd-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  border: 1px solid var(--brown);
  border-radius: 50%;
  background: rgb(253 238 195 / 0.92);
  color: var(--brown);
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}
.wd-nav:hover:not(:disabled) { background: var(--cream); }
.wd-nav:disabled { opacity: 0.4; cursor: default; }
.wd-nav--prev { left: var(--s-2); }
.wd-nav--next { right: var(--s-2); }

.wd-counter {
  position: absolute;
  left: var(--s-2);
  bottom: var(--s-2);
  padding: 0.2rem 0.55rem;
  background: rgb(253 238 195 / 0.92);
  font-size: var(--step--1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 2px;
}
.wd-counter:empty { display: none; }

.wd-thumbs {
  display: flex;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-2) var(--s-2);
  overflow-x: auto;
}
.wd-thumbs:empty { display: none; }
.wd-thumb {
  flex: none;
  width: 4.5rem;
  height: 3.25rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  background: var(--cream);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 150ms ease, border-color 150ms ease;
}
.wd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-thumb:hover { opacity: 1; }
.wd-thumb[aria-current="true"] { border-color: var(--brown); opacity: 1; }

.is-single .wd-nav { display: none; }

.wd-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 0;
  /* Text scrolls below the Close button, never under it */
  margin-top: calc(var(--s-2) + 2.75rem + var(--s-1));
  padding: var(--s-2) var(--s-4) var(--s-4);
  overflow-y: auto;
}
.wd-title {
  display: flex;
  flex-direction: column;
  font-size: var(--step-3);
  line-height: 1.1;
}
.wd-brand {
  font-stretch: var(--wide);
  font-weight: 600;
  color: var(--brown);
}
.wd-model { font-weight: 400; font-size: 0.7em; margin-top: 0.25rem; }
.wd-price {
  font-size: var(--step-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wd-description { max-width: 60ch; }
.wd-description > * + * { margin-top: var(--s-2); }
.wd-description .wd-subhead {
  margin-top: var(--s-4);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  font-size: var(--step-1);
  font-stretch: var(--semi);
  font-weight: 600;
  color: var(--brown);
}
.wd-description .wd-subhead + * { margin-top: var(--s-1); }
.wd-list { display: grid; gap: 0.375rem; }
.wd-list li {
  position: relative;
  padding-left: 1rem;
}
.wd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.375rem;
  height: 1px;
  background: var(--brown);
}
.wd-list strong { font-weight: 600; }
.wd-ask { align-self: flex-start; margin-top: auto; }

@media (max-width: 899px) {
  .watch-dialog {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
  }
  .wd-layout {
    display: block;
    overflow-y: auto;
  }
  .wd-close {
    position: sticky;
    top: 0;
    float: right;
    margin: var(--s-1) var(--s-1) calc(-2.75rem - var(--s-1)) 0;
  }
  .wd-stage { aspect-ratio: 4 / 3; flex: none; }
  .wd-info {
    margin-top: 0;
    padding: var(--s-3) var(--gutter) var(--s-5);
    overflow: visible;
  }
  .wd-ask { width: 100%; }
  .wd-nav { width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; }
}

/* ---------- Archive view ----------
   The archive is not part of the scrolling home page. It only shows when someone opens
   #arhiva (the Archive menu link or "From the archive"), and then replaces the home page. */
.section--archive { display: none; }
.view-archive main > :not(.section--archive) { display: none; }
.view-archive .section--archive {
  display: block;
  padding-top: calc(var(--header-h) + var(--s-5));
  padding-bottom: var(--s-7);
}
.archive-back {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: var(--s-1) 0;
  color: var(--brown);
}
.view-archive .site-nav a[href="#arhiva"] { background-size: 100% 1px; }

/* ---------- Archive: sold photos ---------- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}

.sold {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand);
  -webkit-touch-callout: none;
  user-select: none;
}
.sold:focus { outline: none; }
.sold img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* no dragging or opening the image */
}

/* Shared by the archive's Sold mark and the for-sale Available mark */
.sold-mark,
.status-mark {
  position: absolute;
  right: var(--s-1);
  bottom: var(--s-1);
  padding: 0.3rem 0.65rem;
  background: var(--brown);
  color: var(--cream);
  font-size: var(--step--1);
  font-stretch: var(--wide);
  font-weight: 700;
  line-height: 1.2;
  border-radius: 2px;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

@media (max-width: 899px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); }
}
@media (max-width: 559px) {
  .sold-mark,
  .status-mark { right: 0.375rem; bottom: 0.375rem; padding: 0.2rem 0.5rem; font-size: 0.8125rem; }
  .archive-actions .button { width: 100%; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 var(--s-3);
  border: 1px solid var(--brown);
  border-radius: 2px;
  background: var(--brown);
  color: var(--on-accent);
  font-stretch: var(--semi);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.button--ghost {
  background: transparent;
  color: var(--brown);
}
.button--ghost:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }

/* ---------- Sell or trade ---------- */
.section--sell {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-6);
  align-items: start;
}

.sell-intro h2 {
  font-size: var(--step-3);
  color: var(--brown);
  margin-bottom: var(--s-2);
}
.sell-intro > p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: var(--s-5);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-4);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: var(--s-2);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: var(--step-3);
  font-stretch: var(--wide);
  font-weight: 600;
  line-height: 1;
  color: var(--brown);
}
.steps h3 {
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.steps p { color: var(--ink-soft); max-width: 36ch; }
.sell-form {
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.sell-form fieldset {
  margin: 0 0 var(--s-4);
  padding: 0;
  border: 0;
  min-width: 0;
}
.sell-form legend {
  padding: 0;
  margin-bottom: var(--s-2);
  font-size: var(--step-2);
  font-stretch: var(--wide);
  font-weight: 600;
  color: var(--brown);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--s-2);
}
.field { margin-bottom: var(--s-2); }

.field label,
.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: var(--step--1);
  font-weight: 600;
}
.req { color: var(--error); }

.field input[type="text"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  background: #fff;
  font-size: var(--step-0);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgb(104 66 32 / 0.35);
}
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field-help,
.field-error {
  margin-top: 0.375rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.field-error { color: var(--error); font-weight: 600; }

.choice-group { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.choice {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 2.75rem;
  cursor: pointer;
}
.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--brown);
  cursor: pointer;
}

.form-note,
.required-note {
  font-size: var(--step--1);
  color: var(--ink-soft);
  max-width: 52ch;
}
.required-note { margin-top: var(--s-1); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.form-status { margin-top: var(--s-2); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }

@media (max-width: 999px) {
  .section--sell { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 559px) {
  .field-row { grid-template-columns: 1fr; }
  .sell-form { padding: var(--s-3) var(--s-2); }
  .form-actions .button { width: 100%; }
}

/* ---------- About ---------- */
.section--about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-6);
  align-items: center;
  padding-bottom: var(--s-7);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.about-text h2 {
  font-size: var(--step-3);
  color: var(--brown);
  margin-bottom: var(--s-3);
}
.about-text p {
  max-width: 36rem;
  font-size: var(--step-1);
  line-height: 1.65;
}
.about-text p + p { margin-top: var(--s-2); }
.about-text .about-hello {
  font-size: var(--step-2);
  font-stretch: var(--semi);
  font-weight: 600;
  color: var(--brown);
}

@media (max-width: 899px) {
  .section--about { grid-template-columns: 1fr; gap: var(--s-4); }
  .about-photo { max-width: 28rem; }
}

/* =========================================================
   Footer / contact
   ========================================================= */
.site-footer {
  background: var(--brown);
  color: var(--cream);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter) var(--s-4);
}
.site-footer h2 {
  font-size: var(--step-3);
  margin-bottom: var(--s-4);
}
.site-footer :focus-visible { outline-color: var(--cream); }

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--s-4) var(--s-3);
  padding-bottom: var(--s-5);
}
.contact-list dt {
  margin-bottom: 0.25rem;
  font-size: var(--step--1);
  opacity: 0.85;
}
.contact-list dd { font-size: var(--step-1); }
.contact-list a {
  display: inline-block;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}
.contact-list a:hover { text-decoration-thickness: 2px; }

.footer-logo {
  width: 100%;
  height: auto;
  margin-bottom: var(--s-3);
}
.legal {
  font-size: var(--step--1);
  max-width: 70ch;
  opacity: 0.85;
}
