/* Weird Things for Sale (formerly I Know What I Have) — editorial marketplace blog */
:root {
  --bg: #f3eee5;
  --bg-2: #fffdf8;
  --ink: #161410;
  --ink-soft: #5c564c;
  --line: #ddd4c6;
  --line-strong: #c9bfae;
  --accent: #8f2d21;
  --accent-hover: #6f2018;
  --gold: #b0893a;
  --gold-soft: #efe3c8;
  --shadow: 0 18px 50px rgba(22, 20, 16, 0.08);
  --radius: 18px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 229, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.wordmark:hover { color: inherit; }
.wordmark img, .wordmark .mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wordmark-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.wordmark-text span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--accent);
}
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* Hero */
.hero {
  padding: 2.4rem 0 1.25rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
}
.hero-media {
  margin: 0;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media.wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.hero-media figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.hero-media figcaption a { color: inherit; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.kicker::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--accent);
}
.hero h1, .page-hero h1, .post-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.9rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
.dek, .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  max-width: 38rem;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.pill-price {
  background: var(--ink);
  color: #fffdf8;
  border-color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.pill-muted { color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 0;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Sections */
.section { padding: 2.25rem 0 3rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.card-img {
  aspect-ratio: 4 / 3;
  background: #ece6da;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img.screenshot img { object-fit: cover; object-position: top; }
.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card .price { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.card p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.post-card-wide {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: stretch;
}
.post-card-wide .card-img { aspect-ratio: auto; min-height: 200px; }
.post-card-wide .card-body { padding: 1.4rem 1.5rem; justify-content: center; }

/* Find / article */
.post-header { padding: 2.2rem 0 0.4rem; max-width: 46rem; }
.post-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.post-date { color: var(--ink-soft); font-weight: 600; margin: 0 0 0.6rem; }

.find {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.find:first-of-type { border-top: 0; }
.find-media {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.find-media img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #ece6da;
}
.find-media figcaption {
  padding: 0.75rem 1rem 0.95rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.find-media figcaption a { color: inherit; }
.find-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}
.find-copy .writeup p { margin: 0 0 1rem; }
.find-copy .writeup p:last-child { margin-bottom: 0; }
.find-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}
.note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* Pages */
.page-hero { padding: 2.4rem 0 0.5rem; max-width: 44rem; }
.prose {
  max-width: 42rem;
  padding: 0.5rem 0 3rem;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
}
.prose p, .prose li { color: #2b271f; }
.prose ul { padding-left: 1.2rem; }
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
}
.contact-card a.email {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.contact-card a.email:hover { color: var(--accent); }

.about-band {
  background: var(--ink);
  color: #f4efe6;
  padding: 3rem 0;
  margin-top: 1rem;
}
.about-band h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 0.6rem; }
.about-band p { max-width: 38rem; color: #d7d0c3; margin: 0 0 1rem; }
.about-band a { color: #fff; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
  background: #eee8dd;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.8rem;
}
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 22rem; }
.footer-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.4rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.empty {
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero-grid, .find, .post-card-wide, .footer-grid, .cards {
    grid-template-columns: 1fr;
  }
  .hero-media img { aspect-ratio: 4 / 3; }
  .find-media { position: static; }
  .header-inner { min-height: 64px; }
  .nav { gap: 0.8rem; font-size: 0.85rem; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .wordmark-text span { display: none; }
  .hero { padding-top: 1.4rem; }
}
