@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,520;0,9..144,640;1,9..144,520&family=Outfit:wght@340;440;560;650&display=swap");

:root {
  --ink: #14342c;
  --muted: #5a756c;
  --paper: #f3fbf7;
  --paper-2: #e4f6ec;
  --white: #ffffff;
  --line: rgba(20, 52, 44, 0.12);
  --red: #12a36a;
  --red-ink: #0b7a4e;
  --pine: #14956c;
  --pine-2: #e7f8ef;
  --warn: #9a6410;
  --warn-bg: #fff6df;
  --bad: #c23b4a;
  --bad-bg: #fdecef;
  --shadow: 0 18px 40px rgba(18, 120, 80, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 440;
  font-size: 16.5px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 12px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
p { margin: 0 0 12px; }
code { font-family: "Iowan Old Style", Palatino, Georgia, serif; background: var(--paper-2); padding: 0 6px; border-radius: 6px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.demo-bar { background: #127a56; color: #f4fff8; font-size: 13px; }
.bar-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 36px; }
.bar-links { display: flex; gap: 14px; }
.plain { margin: 0 0 12px; padding-left: 18px; }
.plain li { margin: 6px 0; }
.demo-bar a { color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; }
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  border-radius: 9px;
  font-family: Fraunces, Georgia, serif;
}
.word em { font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 560; }
.search { flex: 1; display: flex; gap: 8px; max-width: 460px; }
.search input, .field input, .field select, .field textarea, .composer textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.field textarea, .composer textarea { min-height: 110px; resize: vertical; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.nav-actions { margin-left: auto; }
.menu-btn { display: none; }
.icon-btn { position: relative; text-decoration: none; font-size: 14px; }
.badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--red);
  color: white;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 12px 16px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 560;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); background: var(--white); }
.btn-small { padding: 8px 12px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.text-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }

.page { padding: 28px 0 72px; }
.footer { border-top: 1px solid var(--line); background: #ffffff; padding: 36px 0 22px; margin-top: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px 32px; }
.foot-label { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; color: var(--red-ink); }
.foot-grid a, .foot-grid button { display: block; margin: 7px 0; text-decoration: none; color: var(--ink); }
.foot-grid a:hover { color: var(--red-ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-base p { margin: 0; }
.foot-base a { color: var(--ink); font-weight: 560; }

.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 18px; }
.flash-ok { background: var(--pine-2); color: var(--pine); }
.flash-err { background: var(--bad-bg); color: var(--bad); }
.note { background: var(--pine-2); color: var(--pine); padding: 12px 14px; border-radius: 12px; }
.warn { background: var(--warn-bg); color: var(--warn); padding: 12px 14px; border-radius: 12px; }
.fine { color: var(--muted); font-size: 14px; }
.kicker, .eyebrow {
  margin: 0 0 8px;
  color: var(--red-ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
}
.lede { font-size: 18px; max-width: 46ch; color: var(--muted); }
.meta, .ticket-note { color: var(--muted); font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; padding: 18px 0 8px; }
.hero h1 em { font-style: italic; color: var(--red-ink); }
.ticket {
  background: linear-gradient(165deg, #ffffff, #e5f8ef);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.ticket .kicker { color: var(--red-ink); }
.ticket .receipt.on-dark div { border-top-color: var(--line); }
.ticket .on-dark dt { color: var(--muted); }
.ticket h2 { font-size: 32px; }
.receipt { margin: 8px 0 0; }
.receipt div, .specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.receipt .total { font-family: Fraunces, Georgia, serif; font-size: 22px; }
.receipt.on-dark div { border-top-color: rgba(255, 255, 255, 0.16); }
.receipt dd, .specs dd { margin: 0; text-align: right; }
.receipt dt, .specs dt { color: var(--muted); }
.on-dark dt { color: rgba(244, 250, 246, 0.72); }

.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin: 28px 0; }
.cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  min-height: 108px;
}
.cat:hover, .card:hover { border-color: var(--ink); }
.cat .art { width: 48px; height: 48px; aspect-ratio: 1; border-radius: 12px; }
.cat .art svg { width: 34px; }
.cat span { font-size: 13px; font-weight: 560; }

.section { margin: 28px 0; }
.section-head, .account-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 14px; }
.section-head a { text-decoration: none; color: var(--red-ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.market .grid { grid-template-columns: 1fr 1fr; }
.card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card h2 { font-family: Outfit, sans-serif; font-size: 16px; letter-spacing: 0; font-weight: 560; line-height: 1.3; }
.art-wrap { position: relative; }
.art { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.art svg { width: min(46%, 150px); height: auto; }
.art.is-photo { padding: 0; overflow: hidden; }
.art.is-photo img, .thumbs img, .photos img { width: 100%; height: 100%; object-fit: cover; }
.pill, .ribbon {
  position: absolute;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: var(--white);
}
.pill { left: 10px; bottom: 10px; }
.ribbon { right: 10px; top: 10px; background: var(--ink); color: var(--paper); }
.card-body { padding: 12px 14px 16px; }
.price { font-family: Fraunces, Georgia, serif; font-size: 28px; margin: 4px 0; }

.tasks { display: grid; gap: 8px; }
.task, .line, .thread-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.task span, .line small, .thread-link span { color: var(--muted); font-size: 14px; }
.lines { display: grid; gap: 8px; }
.line span { display: grid; }

.band { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.rules, .flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rules { grid-template-columns: 1fr 1fr; }
.rules li, .flow li { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.rules span, .flow span { font-family: Fraunces, Georgia, serif; color: var(--red-ink); font-size: 22px; }
.flow { margin: 18px 0 28px; }
.flow li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.flow h2 { font-size: 26px; margin-top: 2px; }
.flow .row-actions { margin-top: 8px; }

.market, .product, .checkout, .order, .auth, .admin { display: grid; gap: 28px; align-items: start; }
.market, .admin { grid-template-columns: 260px 1fr; }
.product { grid-template-columns: 1.1fr .9fr; }
.checkout, .order, .auth { grid-template-columns: 1.05fr .95fr; }
.filters { position: sticky; top: 88px; display: grid; gap: 10px; }
.filters h2, .panel h2, .seller-card h2 { font-size: 28px; }
.buybox { position: sticky; top: 88px; }
.gallery .art { border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: var(--white); cursor: pointer; }
.thumbs .is-on { border-color: var(--ink); }
.secure { color: var(--pine); }
.specs { margin-top: 16px; }
.split-copy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 28px; }
.seller-card, .panel, .empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.prose { white-space: pre-wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.crumbs a { color: var(--ink); }

.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 12px; border: 1px solid var(--line); margin-right: 6px; }
.tag-pine { background: var(--pine-2); color: var(--pine); border-color: transparent; }
.tag-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field, .field-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.span-2 { grid-column: span 2; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.pay-methods { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.pay { display: flex; gap: 8px; align-items: center; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photos figure { width: 96px; margin: 0; }
.photos img { height: 72px; border-radius: 8px; }
.photos button, .id-preview { margin-top: 4px; }
.id-preview { width: min(100%, 280px); border-radius: 12px; border: 1px solid var(--line); }

.stack { display: grid; gap: 12px; }
.timeline { list-style: none; margin: 18px 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); margin-top: 4px; background: transparent; }
.timeline .done .dot { background: var(--pine); border-color: var(--pine); }
.timeline .now .dot { background: var(--red); border-color: var(--red); }
.timeline .bad .dot { background: var(--bad); border-color: var(--bad); }
.timeline p { color: var(--muted); margin: 4px 0 0; }
.demo-controls { border: 1px dashed var(--ink); border-radius: 16px; padding: 14px; background: var(--paper-2); }
.quote { margin: 0 0 12px; padding: 12px 14px; background: var(--white); border-left: 3px solid var(--red); }
.quote cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 14px; }

.inbox { display: grid; grid-template-columns: 280px 1fr; min-height: 520px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.thread-list { border-right: 1px solid var(--line); padding: 10px; display: grid; align-content: start; gap: 8px; }
.thread-link { display: grid; }
.thread-link.is-unread strong { color: var(--red-ink); }
.thread-pane { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubbles { display: grid; gap: 8px; }
.bubble { max-width: 78%; padding: 10px 12px; border-radius: 14px; background: var(--paper); }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble small { color: var(--muted); }
.bubble-me { margin-left: auto; background: var(--pine); color: #f4faf6; }
.bubble-me small { color: rgba(244, 250, 246, 0.75); }
.bubble-system { max-width: 100%; background: var(--warn-bg); }
.composer { display: grid; gap: 8px; }

.accounts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.accounts li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.accounts small { display: block; color: var(--muted); }

.side-nav { display: grid; align-content: start; gap: 6px; position: sticky; top: 88px; }
.side-nav a { text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.side-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { font-family: Fraunces, Georgia, serif; font-size: 28px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.example { margin-top: 16px; padding: 18px; border-radius: 18px; background: #127a56; color: #f4fff8; }
.example-price, .example-payout { font-family: Fraunces, Georgia, serif; }
.example-price { font-size: 42px; margin: 0; }
.example-payout { font-size: 28px; }

.fold { margin-top: 20px; }
.fold summary { cursor: pointer; font-weight: 560; }
.buybar { display: none; }
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 20, 0.46);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 18px;
}
.modal { width: min(460px, 100%); background: var(--white); border-radius: 18px; padding: 18px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: #b7efd4; }

@media (max-width: 980px) {
  .hero, .band, .market, .product, .checkout, .order, .auth, .admin, .split-copy { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .grid, .rules, .stats { grid-template-columns: 1fr 1fr; }
  .filters, .buybox, .side-nav { position: static; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .sell-link { display: none; }
  .search, .nav-links { display: none; }
  .header.is-open .search, .header.is-open .nav-links { display: flex; flex: 1 0 100%; }
  .header.is-open .nav { flex-wrap: wrap; padding-bottom: 12px; }
  .header.is-open .nav-links { flex-direction: column; align-items: flex-start; }
  .grid, .market .grid, .cats, .stats, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .inbox, .foot-grid { grid-template-columns: 1fr; }
  .buybar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    z-index: 15;
  }
  body[data-page="inserat"] { padding-bottom: 74px; }
  .bar-inner { align-items: flex-start; padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}
