/* Storefront — products first. Clean sans-serif, light ground, strong tiles. */
:root {
  --bg: #fbfbf8;
  --ink: #17191e;
  --muted: #6a6f78;
  --line: #e5e5df;
  --tile: #eeede6;
  --accent: #1d6b5c;
  --sans: "Manrope", system-ui, sans-serif;
  --wrap: 72rem;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4rem;
}
.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover {
  color: var(--ink);
}

.hero {
  max-width: 44rem;
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
}
.hero-text {
  margin: 1.25rem 0 2rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
}
.button:hover {
  background: var(--accent);
}
.text-link {
  font-weight: 700;
  color: var(--accent);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.more {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.more:hover {
  color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2rem 1.5rem;
}
.tile {
  display: grid;
  gap: 0.75rem;
}
.tile-img,
.ph {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tile);
}
.tile:hover .tile-img {
  opacity: 0.9;
}
.tile-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.tile-name {
  font-weight: 700;
}
.tile-price {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.empty,
.muted {
  color: var(--muted);
}

.about-strip {
  display: grid;
  gap: 1rem 3rem;
  margin: 4rem 0 0;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 12px;
  background: var(--tile);
}
.about-strip h2 {
  margin: 0;
  font-size: 1.5rem;
}
.about-strip p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
@media (min-width: 48rem) {
  .about-strip {
    grid-template-columns: 1fr 2fr;
  }
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 2.5rem 2rem;
}
.journal-img {
  aspect-ratio: 3 / 2;
  margin-bottom: 1rem;
}
.date,
.crumb {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumb a:hover {
  color: var(--accent);
}
.journal-title {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.journal-title a:hover {
  color: var(--accent);
}
.journal-card p {
  margin: 0;
}

.page-head {
  max-width: 44rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}
.intro {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.product {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}
@media (min-width: 50rem) {
  .product {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}
.product-media {
  display: grid;
  gap: 1rem;
}
.product-media img {
  border-radius: var(--radius);
}
.product-ph {
  aspect-ratio: 4 / 5;
}
.product-info h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}
.price {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article {
  max-width: 42rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
}
.article h1 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}
.lede {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.cover {
  aspect-ratio: 3 / 2;
  margin: 0 0 2rem;
}
.prose {
  font-size: 1.05rem;
}
.prose p {
  margin: 0 0 1.25em;
}
.prose h2 {
  margin: 2em 0 0.6em;
  font-size: 1.5rem;
}
.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.2rem;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer p {
  margin: 0 0 0.4rem;
}
.footer-tagline {
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 40rem) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    /* top/bottom only: the shorthand would wipe .wrap's side padding */
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .nav {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* An image slot with nothing in it yet shows the item's initial, not a bare box. */
.ph-label {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  color: rgb(0 0 0 / 0.18);
  user-select: none;
}
@media (max-width: 40rem) {
  .ph-label {
    max-height: 14rem;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.pagination-status {
  color: var(--muted);
}
.pagination-link {
  color: var(--ink);
  text-decoration: none;
}
.pagination-link:hover {
  text-decoration: underline;
}

/* The language switcher; only there on a site with several languages. */
.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
}
.lang-switch a:hover,
.lang-switch a[aria-current] {
  opacity: 1;
}
