@font-face {
  font-family: Inter;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #222e27;
  --muted: #525b51;
  --pine: #193e33;
  --paper: #fffdf5;
  --line: #c8cec0;
}
body {
  margin: 0;
  background: #eef0df;
  color: var(--ink);
  font: 1rem/1.5 Inter, system-ui, sans-serif;
}
main { width: min(66rem, calc(100% - 2.5rem)); margin: 1.75rem auto 3rem; }
.back { color: var(--pine); font-size: .875rem; text-underline-offset: .2em; }
.back span { margin-right: .3rem; }
article {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
}
.photo { position: relative; min-height: 20rem; background: #bd6936; }
.photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.bench { padding: clamp(1.25rem, 4vw, 3rem); }
.label { margin: 0; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
h1 { margin: .25rem 0 .6rem; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.08; }
header > p:last-child { margin: 0; color: var(--muted); }
form { margin: 1.75rem 0 1.25rem; }
form > label, legend { font-size: .9rem; font-weight: 600; }
form > label { display: block; }
form > label span { font-weight: 400; color: var(--muted); }
input[type=number] {
  display: block; width: 8rem; margin-top: .45rem; border: 1px solid #808a7e;
  border-radius: .5rem; padding: .4rem .75rem; font: 600 1.25rem/1.4 Inter, sans-serif;
  background: white; color: var(--ink);
}
small, .note { color: var(--muted); font-size: .8125rem; }
fieldset { margin: .95rem 0 0; padding: 0; border: 0; }
legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem; min-height: 2.75rem;
  border: 1px solid #929b8d; border-radius: .5rem; cursor: pointer; background: white;
}
.choices input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--pine); }
.choices label:has(:checked) { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); background: #edf3e9; }
.swatch { width: .95rem; height: .95rem; border-radius: 50%; }
.moss { background: #606a32; }
.cider { background: #aa4c19; }
.result { padding: 1.05rem 1.25rem 1.15rem; color: #fffdf2; background: var(--pine); border-radius: .65rem; }
.result .label { color: #dcf19d; }
.result[data-state=sold] { background: #713516; }
.result[data-state=sold] .label { color: #ffe1b4; }
.result[data-state=question] { background: #3c4051; }
.result[data-state=question] .label { color: #e2defd; }
.result h2 { font-size: 1.65rem; line-height: 1.15; margin: .3rem 0; font-weight: 600; letter-spacing: -.03em; }
.result p:last-child { margin: 0; }
details { margin-top: 1.35rem; border-block: 1px solid var(--line); padding-block: .8rem; }
summary { cursor: pointer; font-weight: 600; }
table { border-collapse: collapse; width: 100%; margin: .6rem 0 .25rem; }
caption { text-align: left; font-size: .875rem; color: var(--muted); }
th, td { padding: .3rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.note { margin: .8rem 0 0; }
:focus-visible { outline: 3px solid #165fb0; outline-offset: 3px; }
@media (max-width: 42rem) {
  main { width: min(34rem, calc(100% - 1.5rem)); margin: 1rem auto; }
  article { grid-template-columns: minmax(0, 1fr); margin-top: .9rem; }
  .photo { min-height: 0; height: clamp(9rem, 42vw, 14rem); }
  .photo img { object-position: center 48%; }
}
