:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #64645f;
  --line: #d9d9d1;
  --accent: #c83f31;
  --accent-dark: #9f2d23;
  --blue: #123c69;
  --green: #1f4d3a;
  --shadow: 0 20px 45px rgba(17, 17, 17, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.96);
  backdrop-filter: blur(12px);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
}

.brand-mark svg {
  display: block;
  width: 42px;
  height: 42px;
  overflow: visible;
}

.brand-mark rect,
.brand-mark circle,
.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark rect {
  stroke-width: 2.1;
}

.brand-mark circle {
  stroke-width: 2.7;
}

.brand-mark path {
  stroke-width: 3;
}

.main-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.app-shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  width: min(1500px, calc(100% - 40px));
  min-height: 150px;
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-note {
  align-self: start;
  max-width: 380px;
}

.site-footer p {
  margin-bottom: 4px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 800;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: end;
  justify-self: end;
  align-items: flex-end;
  min-width: 220px;
  font-style: normal;
  text-align: right;
  white-space: normal;
}

.footer-contact-line {
  display: block;
  width: fit-content;
}

.site-footer a:hover {
  color: var(--ink);
}

.loading-panel {
  display: grid;
  min-height: 50vh;
  place-items: center;
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
}

.filter-column {
  min-width: 0;
}

.filters {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-block,
.lead-form label,
.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  font-weight: 500;
  text-transform: none;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

.segmented-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented-field legend {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.segmented-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
}

.segmented-field input {
  width: 16px;
  min-height: 16px;
}

.shop-main {
  min-width: 0;
}

.shop-topline,
.admin-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  margin-bottom: 18px;
}

.result-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pagination-bottom {
  justify-content: center;
  margin-top: 28px;
}

.pagination[hidden] {
  display: none;
}

.pagination button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.pagination button[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.pagination button:disabled {
  cursor: default;
  opacity: 0.38;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-filter-button {
  display: none;
}

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

.listing-card {
  display: grid;
  grid-template-rows: 180px minmax(190px, auto);
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.card-logo-link {
  display: block;
  min-width: 0;
}

.logo-tile {
  position: relative;
  display: grid;
  align-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 18px;
  overflow: hidden;
  background: var(--logo-bg);
  color: var(--logo-fg);
}

.logo-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% 22% -20%;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
  transform: rotate(-10deg);
}

.logo-tile.large {
  min-height: 480px;
  padding: 34px;
}

.logo-initials {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid currentColor;
  font-size: 18px;
  font-weight: 800;
}

.logo-tile.large .logo-initials {
  width: 78px;
  height: 78px;
  font-size: 26px;
}

.logo-wordmark {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
  overflow-wrap: anywhere;
}

.logo-tile.large .logo-wordmark {
  font-size: clamp(38px, 6vw, 78px);
}

.logo-image-frame {
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  background: var(--ink);
}

.logo-image-frame.large {
  aspect-ratio: 900 / 520;
  background: transparent;
  height: auto;
  min-height: 0;
}

.generated-logo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.logo-image-frame.large .generated-logo {
  aspect-ratio: 900 / 520;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.card-body {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.card-body h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.card-meta,
.tag-row,
.card-actions,
.detail-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.collection-page .listing-card {
  grid-template-rows: 180px minmax(220px, auto);
}

.collection-page .card-body {
  gap: 16px;
  padding: 22px clamp(28px, 7.75%, 44px) 24px;
}

.collection-page .card-body h2 {
  margin-bottom: 14px;
  font-size: 23px;
}

.collection-page .card-meta,
.collection-page .tag-row,
.collection-page .card-actions {
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.primary-button {
  background: var(--ink);
  color: var(--bg);
}

.primary-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.full-width {
  width: 100%;
}

.detail-layout,
.content-page {
  max-width: 1180px;
  margin: 0 auto;
}

.collection-page {
  max-width: 1320px;
  margin: 0 auto;
}

.collection-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.collection-intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}

.detail-copy {
  display: grid;
  align-content: center;
}

.detail-price {
  margin: 22px 0;
  font-size: 28px;
  font-weight: 850;
}

.detail-description {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.fulfillment-note {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.fulfillment-note h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.fulfillment-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 28px 0;
}

.meta-grid div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.meta-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-page h1 {
  margin-bottom: 34px;
}

.prose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 44px;
  max-width: 1040px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
}

.faq-list article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 180px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}

.faq-list h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.faq-list p,
.lead-context {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.lead-context {
  max-width: 860px;
  margin: -14px 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  padding-top: 10px;
}

.wide-field {
  grid-column: 1 / -1;
}

.form-status {
  margin: 0;
  color: var(--green);
  align-self: center;
}

.form-status.is-error {
  color: #a12626;
}

.honeypot-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin-shell {
  max-width: 1180px;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-controls {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.admin-summary {
  margin: 0;
  color: var(--muted);
}

.admin-summary.is-error {
  color: #a12626;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 28px;
}

.admin-import-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
}

.import-preview {
  display: grid;
  gap: 10px;
}

.import-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.import-stat,
.import-list {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.import-stat strong {
  display: block;
  font-size: 26px;
}

.import-stat span,
.import-list p {
  color: var(--muted);
  font-size: 13px;
}

.import-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.admin-card-title {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.admin-logo-preview {
  width: 132px;
  aspect-ratio: 900 / 520;
  border: 1px solid var(--line);
  object-fit: cover;
}

.admin-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
}

.review-status {
  max-width: 170px;
}

@media (max-width: 1180px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-topline,
  .collection-topline {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .app-shell {
    width: min(100% - 24px, 1500px);
    padding-top: 22px;
  }

  .site-footer {
    align-items: end;
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1500px);
    min-height: 0;
    gap: 18px;
  }

  .shop-layout,
  .detail-grid,
  .prose-grid,
  .faq-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .faq-list article {
    min-height: 0;
  }

  .collection-intro {
    font-size: 17px;
  }

  .filters {
    display: none;
    position: static;
  }

  .filters.is-open {
    display: grid;
    margin-bottom: 24px;
  }

  .mobile-filter-button {
    display: inline-flex;
    width: 100%;
    margin: -8px 0 18px;
  }

  .result-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination {
    justify-content: flex-start;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  .detail-logo .logo-tile.large {
    aspect-ratio: 900 / 520;
    min-height: 0;
  }

  .logo-image-frame.large {
    min-height: 0;
  }

  .admin-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-head,
  .admin-import-grid,
  .import-preview-grid {
    grid-template-columns: 1fr;
  }
}
