:root {
  --paper: #f3efe6;
  --card: #fbf8f2;
  --ink: #1c1914;
  --muted: #5e584e;
  --line: #d4cbb8;
  --paprika: #8d2f2c;
  --pine: #1e3a34;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--paprika); outline-offset: 3px; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(243, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner, .wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav, .tools, .langs { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.nav a, .tools a { text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.langs button {
  border: 0;
  background: transparent;
  padding: 0.2rem 0;
  cursor: pointer;
}
.langs button[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--paprika); }
.courtesy { color: var(--muted); font-size: 0.75rem; }
.count {
  display: inline-block;
  min-width: 1.3rem;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.05rem 0.35rem;
}

.wrap { padding: 1.5rem 0 3rem; }
.statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.section-title, .card h2, h1 {
  font-family: var(--serif);
  font-weight: 500;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  min-height: 100%;
}
.media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #efe6d4, #d9cbb3);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.monogram { font-family: var(--serif); font-size: 4rem; color: rgba(28, 25, 20, 0.28); }
.pill {
  position: absolute;
  inset-block-start: 0.7rem;
  inset-inline-start: 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
}
.pill.static { position: static; display: inline-block; }
.card-body, .panel { padding: 1rem; }
.card p, .muted { color: var(--muted); margin: 0; }
.price { margin-block-start: 0.8rem; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 1rem; }
.chip, .btn, .btn-quiet {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.chip[aria-pressed="true"], .btn { background: var(--ink); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); }
.product-layout, .split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.panel { background: var(--card); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-block-end: 0.8rem; }
.field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
}
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.notice, .error {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: #f7f1e4;
  margin: 0 0 1rem;
}
.error { border-color: var(--paprika); color: var(--paprika); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 0.65rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { text-decoration: none; }
.social-list { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0; list-style: none; }
.door { color: var(--ink); }
.status-paid { color: var(--pine); }

@media (max-width: 760px) {
  .product-layout, .split { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; padding: 0.8rem 0; }
  .statement { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
