:root {
  --bg: #e8e8e8;
  --panel: #f4f4f4;
  --ink: #101010;
  --muted: #3f3f3f;
  --line: #c7c7c7;
  --pine: #01796f;
}

@font-face {
  font-family: "Placeholder";
  src: url("../fonts/Placeholder.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", "Courier Prime", monospace;
  font-size: 17px;
  line-height: 1.22;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(236, 236, 236, 0.96);
}

.brand-link {
  display: inline-block;
}

.logo-lockup {
  width: 168px;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  justify-content: center;
}

.header-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  text-transform: lowercase;
  font-size: 0.95rem;
}

.header-nav a:hover,
.header-nav a.active {
  border-bottom-color: var(--ink);
}

.header-meta {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: lowercase;
}

.cart-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cart-link:hover {
  border-bottom-color: var(--ink);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.2rem 3rem;
}

.with-fixed-newsletter .page-shell {
  padding-bottom: 8.9rem;
}

.home-newsletter-wrap {
  min-height: calc(100vh - 210px);
  display: grid;
  place-items: center;
  gap: 1.35rem;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity 0.24s ease;
}

.intro-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-card {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  background: #ffffff;
  padding: 0.7rem;
}

.intro-logo {
  width: 190px;
  height: auto;
  display: block;
}

.intro-gif {
  width: min(680px, 92vw);
  height: auto;
  border: 1px solid #dfdfdf;
  display: block;
}

.home-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.home-menu a {
  text-decoration: none;
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
}

.home-menu a:hover {
  border-bottom-color: var(--ink);
}

.shop-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.shop-sections {
  display: grid;
  gap: 1.1rem;
}

.shop-group-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: lowercase;
}

.menu-column {
  position: sticky;
  top: 96px;
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.menu-list li + li {
  margin-top: 0.14rem;
}

.menu-list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  text-transform: lowercase;
}

.menu-list a:hover,
.menu-list a.active {
  border-bottom-color: var(--ink);
}

.product-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: block;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #ededed;
}

.product-card-meta {
  padding: 0.42rem 0.25rem 0.55rem;
}

.product-card h2 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 400;
}

.product-card p {
  margin: 0.16rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card-material,
.product-card-origin {
  margin-top: 0.12rem;
  font-size: 0.82rem;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  gap: 2rem;
  align-items: start;
}

.detail-media img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #e3e3e3;
}

.detail-info {
  max-width: 430px;
}

.product-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: lowercase;
}

.detail-info h1 {
  margin: 0.12rem 0 0.22rem;
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.04;
}

.product-color {
  margin: 0;
  text-transform: lowercase;
}

.product-material,
.product-origin {
  margin: 0;
  color: var(--muted);
  text-transform: lowercase;
}

.product-desc {
  margin: 0.78rem 0 1rem;
  max-width: 44ch;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.34;
}

.thumb-grid {
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 0.38rem;
}

.thumb {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.thumb:hover,
.thumb.is-active {
  border-color: var(--ink);
}

.product-price {
  margin: 0 0 0.9rem;
  font-size: 1.8rem;
}

.cart-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.cart-form select {
  width: 100%;
  max-width: 220px;
  margin: 0 0 0.8rem;
  border: 1px solid var(--line);
  background: #f3f3f3;
  padding: 0.54rem 0.58rem;
  font: inherit;
}

.form-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  font: inherit;
  text-transform: lowercase;
  border: 1px solid var(--ink);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.btn-primary {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
}

.btn-secondary {
  background: #111;
  color: #fff;
}

.cart-message {
  min-height: 1.2em;
  margin: 0.58rem 0 0;
  font-size: 0.84rem;
}

.next-product {
  display: inline-block;
  margin-top: 0.9rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.next-product:hover {
  text-decoration: underline;
}

.cart-page {
  max-width: 1040px;
  margin: 0 auto;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-head h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: lowercase;
}

.back-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.back-link:hover {
  border-bottom-color: var(--ink);
}

.checkout-status {
  margin: 0 0 0.8rem;
  color: var(--pine);
  text-transform: lowercase;
}

.cart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0.55rem;
  text-align: left;
  vertical-align: middle;
  text-transform: lowercase;
}

.cart-table th {
  font-weight: 700;
}

.cart-item-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-item-cell img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cart-item-name {
  margin: 0;
  line-height: 1.2;
}

.cart-item-meta {
  margin: 0.04rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.qty-form {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.qty-form input {
  width: 64px;
  border: 1px solid var(--line);
  background: #f6f6f6;
  font: inherit;
  padding: 0.22rem 0.3rem;
}

.remove-btn,
.clear-btn {
  border: 1px solid var(--ink);
  background: #f5f5f5;
  font: inherit;
  text-transform: lowercase;
  padding: 0.24rem 0.5rem;
  cursor: pointer;
}

.qty-input {
  text-align: center;
}

.qty-input.is-reloading {
  background: #dce9e6;
}

.checkout-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.8rem;
}

.checkout-total {
  margin: 0 0 0.7rem;
  font-size: 1.06rem;
  text-transform: lowercase;
}

.paypal-wrap {
  margin-top: 0.75rem;
  max-width: 430px;
}

.paypal-message {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-cart {
  margin: 0;
  font-size: 1rem;
  text-transform: lowercase;
}

.newsletter {
  margin-top: 0;
  border: 1px solid var(--line);
  background: rgba(248, 248, 248, 0.95);
  padding: 0.8rem 0.9rem;
}

.home-newsletter {
  width: min(640px, 95%);
}

.newsletter h2 {
  margin: 0;
  text-transform: lowercase;
  font-size: 1rem;
}

.newsletter p {
  margin: 0.26rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#newsletter-form {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.45rem;
}

#newsletter-form input {
  flex: 1;
  padding: 0.55rem 0.62rem;
  border: 1px solid var(--line);
  font: inherit;
  background: #f4f4f4;
}

#newsletter-form button {
  border: 1px solid var(--pine);
  background: var(--pine);
  color: #fff;
  padding: 0.55rem 0.9rem;
  text-transform: lowercase;
  font: inherit;
  cursor: pointer;
}

#newsletter-message {
  min-height: 1.2em;
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
}

.newsletter-fixed {
  position: fixed;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  margin: 0;
  border-color: #9fb8b4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.newsletter-fixed h2 {
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: lowercase;
  padding: 0.8rem 0.6rem;
}

.with-fixed-newsletter .site-footer {
  padding-bottom: 5.2rem;
}

.admin-page {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-head h1,
.admin-panel h2 {
  margin: 0;
  font-weight: 400;
  text-transform: lowercase;
}

.admin-head h1 {
  font-size: 1.4rem;
}

.admin-panel h2 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-weight: 700;
}

.admin-message {
  margin: 0;
  border: 1px solid #9fb8b4;
  background: #edf4f2;
  color: var(--pine);
  padding: 0.55rem 0.65rem;
  text-transform: lowercase;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.8rem;
}

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

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

.admin-form label {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: lowercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #f6f6f6;
  color: var(--ink);
  font: inherit;
  padding: 0.48rem 0.55rem;
}

.admin-form textarea {
  resize: vertical;
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.admin-checks label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-checks input,
.photo-choice input {
  accent-color: var(--pine);
}

.photo-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.photo-choice {
  position: relative;
  display: grid;
  gap: 0.32rem;
  border: 1px solid var(--line);
  background: #f6f6f6;
  padding: 0.4rem;
  cursor: pointer;
}

.photo-choice:has(input:checked) {
  border-color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--pine);
}

.photo-choice input {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  width: 18px;
  height: 18px;
}

.photo-choice img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #ededed;
}

.photo-choice span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-listings {
  margin-top: 0.2rem;
}

.admin-listing-table-wrap {
  overflow-x: auto;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: lowercase;
}

.admin-login-page {
  max-width: 440px;
}

.admin-login-form {
  gap: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1000px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .menu-column {
    position: static;
  }

  .menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.9rem;
  }

  .product-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
  }

  .header-meta {
    margin-top: -0.2rem;
  }

  .product-wall {
    grid-template-columns: 1fr;
  }

  .cart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .admin-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

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

  #newsletter-form {
    flex-direction: column;
  }

  .thumb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .newsletter-fixed {
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
  }
}
