/* The Turnia test shop (sites/feed/README.md). Mobile first, one breakpoint at 768px. */
:root {
  --ink: #1d2320;
  --muted: #5d6762;
  --line: #dfe3df;
  --paper: #f6f5f1;
  --card: #ffffff;
  --brand: #1f4d3a;
  --brand-ink: #ffffff;
  --sale: #b3261e;
  --ok: #2f6b4f;
  --radius: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--brand);
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 24px 0 8px;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

main.wrap {
  padding-bottom: 64px;
}

.notice {
  margin: 0;
  padding: 6px 16px;
  font-size: 13px;
  text-align: center;
  color: var(--brand-ink);
  background: #333;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: none;
  gap: 20px;
}

.nav a,
.menu nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand);
}

.menu {
  margin-left: auto;
}

.menu summary {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  padding: 8px 16px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.menu nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.crumbs {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.lead {
  margin-top: 0;
  color: var(--muted);
}

.hint {
  font-size: 14px;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand);
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero {
  margin: 16px 0;
  padding: 32px 20px;
  border-radius: var(--radius);
  color: var(--brand-ink);
  background: linear-gradient(160deg, #1f4d3a 0%, #2c6a50 60%, #6f8f7c 100%);
}

.hero h1 {
  margin-top: 0;
  font-size: 30px;
}

.hero p {
  max-width: 560px;
}

.hero .button {
  color: var(--brand);
  background: #fff;
}

.promo {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--sale);
  text-decoration: none;
}

.section-title {
  margin: 32px 0 12px;
}

.cats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.cat {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--card);
  text-decoration: none;
}

.cat span {
  font-size: 14px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--card);
  text-decoration: none;
}

.card:hover {
  border-color: var(--brand);
}

.card-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  color: #fff;
  background: var(--tile);
}

.tile svg {
  width: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.price s {
  color: var(--muted);
  font-size: 14px;
}

.sale {
  color: var(--sale);
}

.stock {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.stock-ok {
  color: var(--ok);
}

.stock-no {
  color: var(--sale);
}

.product {
  display: grid;
  gap: 20px;
}

.tile-big {
  max-width: 520px;
}

.buy h1 {
  margin-top: 0;
}

.buy-price {
  margin: 0 0 4px;
  font-size: 24px;
}

.buy-price s {
  font-size: 18px;
}

.sale-note {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--sale);
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 0;
  border: 0;
}

.sizes legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.size input {
  position: absolute;
  opacity: 0;
}

.size span {
  display: inline-block;
  min-width: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: var(--card);
  cursor: pointer;
}

.size input:checked + span {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.size input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.size input:disabled + span {
  color: var(--muted);
  text-decoration: line-through;
  background: var(--paper);
  cursor: not-allowed;
}

.cart-note {
  min-height: 1.5em;
  font-weight: 500;
}

.perks,
.facts {
  padding-left: 20px;
}

.perks li,
.facts li {
  margin: 6px 0;
}

.block {
  margin-top: 24px;
  padding: 4px 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.story {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius);
  background: #e7ece6;
}

.story h2 {
  margin-top: 0;
}

.tables {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

caption {
  padding: 8px 0;
  text-align: left;
  font-weight: 600;
}

th,
td {
  padding: 8px 12px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 16px 0;
}

.form label {
  display: grid;
  gap: 4px;
  font-weight: 500;
}

.form input,
.form select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--card);
}

.form .button {
  justify-self: start;
}

.form-result {
  min-height: 1.5em;
  font-weight: 500;
}

.posts {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.posts li {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.meta {
  font-size: 14px;
  color: var(--muted);
}

.post {
  max-width: 720px;
}

.asks {
  padding-left: 20px;
}

.asks li {
  margin: 12px 0;
}

.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-weight: 600;
}

.expect {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.copy {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  background: var(--paper);
  cursor: pointer;
}

.foot {
  padding: 32px 0;
  font-size: 14px;
  color: #d7ddd9;
  background: #1d2320;
}

.foot a {
  color: #d7ddd9;
}

.foot-grid {
  display: grid;
  gap: 24px;
}

.foot-grid nav {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foot-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  h1 {
    font-size: 34px;
  }

  .nav {
    display: flex;
  }

  .menu {
    display: none;
  }

  .hero {
    padding: 56px 48px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin-top: 16px;
  }

  .tables {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .foot-grid {
    grid-template-columns: 1fr 2fr;
  }

  .foot-grid nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
