:root {
  --bg: #f3f0e8;
  --card: #fffcf7;
  --ink: #17241e;
  --muted: #5c675f;
  --line: #e4dccf;
  --green: #145c45;
  --green-deep: #12382c;
  --gold: #ffd814;
  --gold-edge: #e6c200;
  --danger: #9d2c2c;
  --warn: #8a5a00;
  --shadow: 0 1px 2px rgba(18, 36, 28, .05), 0 10px 28px rgba(18, 36, 28, .06);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(20, 92, 69, .09), transparent 55%),
    radial-gradient(700px 380px at -20% 0%, rgba(255, 216, 20, .18), transparent 50%),
    var(--bg);
  line-height: 1.5;
}
img, svg { max-width: 100%; }
a { color: var(--green); }
h1, h2, .logo { font-family: var(--serif); letter-spacing: -.03em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.35rem); line-height: 1.12; margin: 0 0 .55rem; }
h2 { font-size: 1.28rem; line-height: 1.25; margin: 0 0 .7rem; }
p { margin: .45rem 0; }
.skip {
  position: absolute;
  left: -999px;
  top: .5rem;
  background: #fff;
  color: var(--ink);
  padding: .5rem .8rem;
  z-index: 30;
}
.skip:focus { left: .75rem; }
.wrap { width: min(880px, calc(100% - 1.5rem)); margin: 0 auto; }
.wrap.header-inner { width: min(1120px, calc(100% - 1.5rem)); }
main.wrap { flex: 1; padding: 1.1rem 0 2.75rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 252, 247, .92);
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--green-deep);
  backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top);
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
}
.mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .45rem;
  background: var(--green-deep);
  color: #f6f1e7;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem .85rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: .92rem;
  padding: .35rem 0;
}
nav a:hover { color: var(--green); }
.site-footer {
  border-top: 1px solid var(--line);
  background: #fffcf7;
  color: var(--muted);
  font-size: .92rem;
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-inner {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.disclosure-footer { margin: 0; width: 100%; text-align: center; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  margin-bottom: .9rem;
}
.card.narrow, .intro-card { max-width: 40rem; margin-inline: auto; }
.login-card { border-radius: 4px; }
body.login-page main.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6rem;
  padding-bottom: 2.75rem;
}
body.login-page .login-card {
  width: min(28rem, 100%);
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.login-card h1 {
  margin: 0;
  padding: .95rem 1.15rem;
  text-align: center;
  font-size: 1.45rem;
  border-bottom: 1px solid var(--line);
  background: #f7f4ee;
}
.login-card form { padding: 1.15rem 1.25rem 1.35rem; }
body.login-page .login-card input,
body.login-page .login-card .btn { border-radius: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.home-page,
body.catalog-page {
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(20, 92, 69, .07), transparent 55%),
    #f7f6f3;
}
body.home-page main.wrap,
body.catalog-page main.wrap,
body.dash-page main.wrap { width: min(1120px, calc(100% - 1.5rem)); }
body.home-page main.wrap,
body.catalog-page main.wrap,
body.dash-page main.wrap { padding-top: 1.25rem; }
body.dash-page .card {
  border-radius: 4px;
}
body.dash-page .card.narrow {
  max-width: none;
}
.moderator-catalog-heading.card-section-header {
  margin: 0 0 .7rem;
  border: 1px solid #e7e1d6;
  border-radius: 4px;
  background: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}
.more-from-section { margin-top: 1.35rem; }
.more-from-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .75rem;
}
.more-from-back {
  display: none;
  font-weight: 650;
  text-decoration: none;
  font-size: .92rem;
  color: var(--green);
}
.more-from-title { min-width: 0; }
.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.photo-grid a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7e1d6;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(18, 36, 28, .04), 0 8px 24px rgba(18, 36, 28, .05);
  color: inherit;
  text-decoration: none;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  display: block;
  background: linear-gradient(180deg, #fbfaf7 0%, #f3f0ea 100%);
  border-bottom: 1px solid var(--line);
}
.photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: .75rem .95rem .95rem;
  padding: 0;
  min-width: 0;
}
.photo-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}
.photo-author {
  flex: 0 0 auto;
  margin: 0;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #f3efe6;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .02em;
}
.photo-grid a:hover { border-color: #d5cbb8; box-shadow: 0 10px 28px rgba(18, 36, 28, .1); }
.photo-grid a:hover .photo-title { color: #0f4b38; }
.card.product-page {
  border: 1px solid #e7e1d6;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(18, 36, 28, .04), 0 8px 24px rgba(18, 36, 28, .05);
  padding: 0;
  overflow: hidden;
}
.product-page-layout {
  display: grid;
  grid-template-columns: 1fr;
}
.product-page-media {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: linear-gradient(180deg, #fbfaf7 0%, #f3f0ea 100%);
  border-bottom: 1px solid var(--line);
}
.product-page-photo {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  display: block;
}
.card-section-header {
  margin: 0;
  padding: .85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: #f7f4ee;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -.01em;
}
.product-page-body {
  padding: 1.15rem 1.15rem 1.35rem;
  min-width: 0;
  background: #fff;
}
.product-details {
  margin: .65rem 0 1.1rem;
  padding: .95rem 1rem 1rem;
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.product-details-sub {
  margin: .85rem 0 .45rem;
  font-size: .92rem;
  font-weight: 750;
  color: var(--ink);
}
.product-details-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}
.product-details-list { margin: 0; padding-left: 1.15rem; }
.hero h1, .product-page h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.2;
}
.hero h1 { margin-top: .15rem; }
.product-page h1 { margin: 0 0 .35rem; }
.kicker {
  margin: 0 0 .3rem;
  color: var(--green);
  font-weight: 750;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lede { font-size: 1.05rem; margin-top: 0; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .9rem; font-weight: 500; }
.center { text-align: center; }
.note { font-size: 1.08rem; line-height: 1.6; margin: .8rem 0 1rem; }
.crumb { margin: 0 0 .8rem; font-weight: 650; }
.crumb a { text-decoration: none; }
.product-page-body > .crumb {
  margin: 0 -1.15rem .85rem;
  padding: 0 1.15rem .85rem;
  border-bottom: 1px solid var(--line);
}
.bullets { margin: .2rem 0 1rem; padding-left: 1.15rem; }
.bullets li { margin: .4rem 0; }
.disclosure-box {
  background: #f6f1e4;
  border: 1px solid #e3d5b4;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  color: #243128;
  font-size: .95rem;
  line-height: 1.45;
  padding: .85rem .95rem;
  margin: 1rem 0 .85rem;
}
.owner-todo {
  background: #fff8e8;
  border: 1px solid #e6d3a1;
  border-radius: 12px;
  padding: .9rem 1rem;
}
.empty-note {
  background: #f6f3ec;
  border-radius: 12px;
  padding: .85rem 1rem;
  color: var(--muted);
}
.stack { display: grid; gap: .95rem; }
.stack label, fieldset label.check { font-weight: 650; }
.stack label { display: grid; gap: .4rem; }
.label-line, .tag-list li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
input[type=text], input[type=password], input[type=url], textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid #d9d1c4;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input[type=text]:focus,
input[type=password]:focus,
input[type=url]:focus,
textarea:focus,
input[type=text]:focus-visible,
input[type=password]:focus-visible,
input[type=url]:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: none;
}
input[type=text]::placeholder,
input[type=password]::placeholder,
input[type=url]::placeholder,
textarea::placeholder {
  color: #9aa39b;
  font-weight: 300;
  opacity: 1;
}
textarea { resize: vertical; min-height: 6.5rem; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem 1rem;
  margin: 0;
}
legend { padding: 0 .35rem; font-weight: 750; }
label.check {
  display: flex !important;
  align-items: center;
  gap: .55rem;
  font-weight: 550;
  min-height: 2.75rem;
  margin: .15rem 0;
}
label.check input { width: 1.15rem; height: 1.15rem; margin: 0; }
.warn { color: var(--warn); font-size: .85rem; font-weight: 550; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid #d9d1c4;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: #0f4b38; }
.btn.small { min-height: 2.6rem; padding: .45rem .8rem; font-size: .92rem; }
.btn.danger { color: var(--danger); border-color: #efc8c4; background: #fff; }
.btn.buy {
  width: 100%;
  justify-content: flex-start;
  min-height: 4.6rem;
  padding: .75rem .85rem;
  border-radius: 4px;
  background: var(--gold);
  border-color: var(--gold-edge);
  color: #16140a;
  box-shadow: 0 1px 0 rgba(90, 70, 0, .25);
  text-align: left;
}
.btn.buy:hover { background: #f4cc00; }
.btn.buy:active { transform: translateY(1px); }
.buy-text { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.buy-label { font-size: 1.05rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.buy-sub { font-size: .78rem; font-weight: 650; color: #3f3510; }
.buy-go { margin-left: auto; font-size: 1.3rem; line-height: 1; }
.buy-buttons { display: grid; gap: .65rem; margin-top: .35rem; }
.flag-svg {
  width: 64px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}
.flag-svg.sm { width: 32px; height: 16px; border-radius: 3px; }
.flag-svg svg { display: block; width: 100%; height: 100%; }
.row.between { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; flex-wrap: wrap; }
.flash {
  padding: .8rem 1rem;
  border-radius: 12px;
  margin: 0 0 .9rem;
  font-weight: 650;
}
.flash-success { background: #e7f6ee; color: #0d5a40; }
.flash-error { background: #fdeeee; color: var(--danger); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.steps li {
  display: grid;
  gap: .15rem;
  padding: .75rem .85rem;
  background: #f7f4ee;
  border-radius: 12px;
}
.steps span { color: var(--muted); }
.product-grid { display: grid; gap: .9rem; }
a.product-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-height: 8.5rem; }
a.product-card h2 { font-size: 1.2rem; }
a.product-card p { color: var(--muted); flex: 1; }
.card-go { font-weight: 750; color: var(--green); }
a.product-card:hover { border-color: #cfc4ad; }
.dash-head .btn.primary { min-width: 9rem; }
.public-link { font-weight: 650; }
.tag-list, .stat-summary { margin: .7rem 0 0; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-list li {
  background: #f6f3ec;
  border-radius: 999px;
  padding: .3rem .6rem .3rem .35rem;
  font-size: .88rem;
}
.stat-summary { color: var(--muted); font-weight: 650; }
.dash-card h2 { font-size: 1.22rem; margin: 0; }
.dash-card-top { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.pill {
  flex: 0 0 auto;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .02em;
  color: var(--muted);
  background: #f3efe6;
  border-radius: 999px;
  padding: .25rem .55rem;
}
.meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; color: var(--muted); font-size: .9rem; align-items: center; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .75rem 0;
  text-decoration: none;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f6f3ec;
  color: var(--ink);
  border-radius: 999px;
  padding: .35rem .65rem .35rem .35rem;
  font-weight: 650;
  min-height: 2.1rem;
}
.stats-static { margin-top: .4rem; }
.link-line { margin: .15rem 0 .8rem; }
.link-line code, code {
  background: #f3efe6;
  padding: .12rem .4rem;
  border-radius: 6px;
  font-size: .88em;
  overflow-wrap: anywhere;
}
.action-bar { display: flex; flex-wrap: wrap; gap: .45rem; }
.action-bar form { margin: 0; display: flex; }
.action-bar .btn { flex: 1 1 auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.form-actions .btn { flex: 1 1 10rem; }
.grid-2 { display: grid; gap: .8rem; }
.prose h2 { margin-top: 1.4rem; font-size: 1.15rem; }
.prose li { margin: .35rem 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn.buy:focus-visible { outline-color: #16140a; }
@media (min-width: 720px) {
  .wrap { width: min(880px, calc(100% - 2.5rem)); }
  .wrap.header-inner { width: min(1120px, calc(100% - 2.5rem)); }
  body.home-page main.wrap,
  body.catalog-page main.wrap,
  body.dash-page main.wrap { width: min(1120px, calc(100% - 2.5rem)); }
  .product-page-layout {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: stretch;
  }
  .product-page-media {
    border-bottom: none;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 4.75rem;
    align-self: start;
  }
  .product-page-body { padding: 1.35rem 1.5rem 1.5rem; }
  .product-page-body > .crumb {
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
  }
  .card.login-card { padding: 0; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .card { padding: 1.4rem 1.45rem 1.5rem; }
}
@media (min-width: 1100px) {
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .product-page--has-more .product-page-body > .crumb { display: none; }
  .more-from-back { display: inline; }
}
@media (max-width: 640px) {
  .action-bar .btn, .action-bar form { flex: 1 1 calc(50% - .45rem); }
  .action-bar form .btn { width: 100%; }
  .dash-head .btn.primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
