:root {
  --ink: #000;
  --white: #fff;
  --night: #000;
  --night-2: #0a0a0a;
  --cream: #fbfbf5;
  --line: #e4e4e7;
  --line-dark: #1e2c31;
  --muted: #71717a;
  --muted-dark: #a1a1aa;
  --aloe: #c1fbd4;
  --pistachio: #d4f9e0;
  --radius: 12px;
  --pill: 9999px;
  --display: "NeueHaasGrotesk Display", "Inter", Helvetica, Arial, sans-serif;
  --body: "Inter", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-feature-settings: "ss03";
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
}

main {
  flex: 1 0 auto;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid transparent;
}

.nav-dark {
  background: var(--night);
  color: var(--white);
  border-color: var(--line-dark);
}

.nav-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.brand {
  max-width: 520px;
  font-weight: 550;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--pill);
  background: transparent;
  color: inherit;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

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

.ghost,
.outline-dark {
  background: var(--night);
  color: var(--white);
  border-color: var(--white);
}

.ghost-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}

.danger {
  background: #fff;
  color: #9f1239;
  border-color: #9f1239;
}

.hero {
  min-height: calc(100vh - 77px);
  background: var(--night);
  color: var(--white);
  display: grid;
  grid-template-rows: auto 1fr;
  padding-bottom: 64px;
}

.hero-photo {
  width: 100%;
  height: 44vh;
  object-fit: cover;
}

.hero-copy {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 64px 24px 0;
}

.eyebrow,
.tag {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--pill);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted-dark);
}

.tag {
  padding: 4px 12px;
  background: var(--aloe);
  color: var(--ink);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 330;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 1180px;
  margin: 18px 0 24px;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 2.4px;
}

.hero-lead {
  max-width: 740px;
  color: var(--white);
  font-size: 18px;
  font-weight: 550;
}

.hero-actions,
.button-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dark-band,
.light-band {
  padding: 96px 24px;
}

.dark-band {
  background: var(--night);
  color: var(--white);
}

.light-band {
  background: var(--cream);
  color: var(--ink);
}

.intro-grid,
.section-head,
.catalog-layout,
.detail-layout,
.contact-layout,
.admin-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.intro-grid h2,
.section-head h2,
.page-hero h1,
.contact-layout h1,
.detail-copy h1,
.admin-top h1 {
  font-size: 55px;
  line-height: 1.16;
}

.intro-grid p {
  color: var(--muted-dark);
  font-size: 18px;
}

.stats-row {
  width: min(1180px, calc(100% - 48px));
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.stats-row div {
  padding: 24px 18px 0 0;
}

.stats-row strong {
  display: block;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 330;
  line-height: 1.14;
}

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

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head .tag,
.section-head .eyebrow {
  grid-column: 1 / -1;
}

.section-head.on-dark h2 {
  color: var(--white);
}

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

.product-grid.compact {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.product-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.product-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}

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

.gallery-band {
  padding-top: 112px;
}

.facility-strip,
.facility-grid {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.facility-strip figure,
.facility-card {
  margin: 0;
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.facility-strip img,
.facility-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facility-strip figcaption {
  padding: 14px;
  color: var(--white);
}

.page-hero {
  padding: 96px 24px 64px;
}

.page-hero.light {
  background: var(--cream);
}

.page-hero.dark {
  background: var(--night);
  color: var(--white);
}

.page-hero > * {
  width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-hero > .tag,
.page-hero > .eyebrow {
  width: fit-content;
}

.page-hero h1 {
  margin: 16px auto 16px;
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
}

.page-hero.dark p {
  color: var(--muted-dark);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding-bottom: 96px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.category-list.horizontal {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.category-list a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--white);
  font-size: 14px;
}

.category-list a.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 64px;
  padding: 80px 0 96px;
}

.detail-image {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px;
}

.detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.detail-copy p {
  color: var(--muted);
  font-size: 18px;
}

.detail-copy dl {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.detail-copy dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-copy dt {
  color: var(--muted);
}

.detail-copy dd {
  margin: 0;
}

.facility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 96px;
}

.facility-card figcaption {
  padding: 20px;
}

.facility-card h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 24px;
  font-weight: 400;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  padding: 96px 0;
}

.contact-layout p {
  color: var(--muted);
  font-size: 18px;
}

.contact-panel,
.admin-form,
.admin-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.contact-panel {
  padding: 32px;
}

.contact-panel h2 {
  font-size: 28px;
  font-weight: 500;
}

.contact-panel p {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 16px;
}

.contact-panel strong {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  padding: 64px 24px;
  background: var(--night);
  color: var(--white);
}

.site-footer > * {
  width: min(640px, 100%);
}

.footer-brand {
  font-weight: 550;
}

.footer-contact {
  display: grid;
  gap: 8px;
  color: var(--muted-dark);
  justify-self: end;
}

.flash-wrap {
  position: fixed;
  right: 16px;
  top: 88px;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.flash {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--aloe);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.admin-login {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.admin-shell {
  padding: 64px 0 96px;
}

.admin-shell.wide {
  width: min(1360px, calc(100% - 48px));
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

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

.admin-tile {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.admin-tile strong {
  font-size: 24px;
}

.admin-tile span,
.muted {
  color: var(--muted);
}

.form-section-title {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 500;
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.admin-form.narrow {
  width: min(460px, 100%);
}

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

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-line input {
  width: auto;
  min-height: auto;
}

.admin-preview {
  width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: 72px 120px 1fr 220px;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--white);
}

.admin-row strong,
.admin-row em {
  overflow-wrap: anywhere;
}

.admin-row em {
  color: var(--muted);
  font-style: normal;
}

.slim {
  padding-top: 48px;
}

@media (max-width: 1023px) {
  .hero h1 {
    font-size: 70px;
  }

  .intro-grid,
  .detail-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .category-list {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .category-list a {
    white-space: nowrap;
  }

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

@media (max-width: 767px) {
  .site-nav {
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid currentColor;
    border-radius: 12px;
    background: inherit;
  }

  .nav-links.open {
    display: flex;
  }

  .brand {
    max-width: calc(100% - 70px);
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    height: 38vh;
  }

  .hero-copy {
    padding-top: 48px;
  }

  .hero h1,
  .intro-grid h2,
  .section-head h2,
  .page-hero h1,
  .contact-layout h1,
  .detail-copy h1,
  .admin-top h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .dark-band,
  .light-band,
  .page-hero {
    padding: 64px 24px;
  }

  .intro-grid,
  .section-head,
  .catalog-layout,
  .detail-layout,
  .contact-layout,
  .admin-shell,
  .admin-shell.wide,
  .product-grid.compact,
  .facility-strip,
  .facility-grid,
  .stats-row {
    width: min(100% - 32px, 680px);
  }

  .stats-row,
  .product-grid,
  .facility-strip,
  .facility-grid,
  .admin-grid,
  .form-grid,
  .form-grid.four {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .contact-layout {
    padding-top: 48px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-self: start;
  }

  .admin-top {
    display: grid;
    align-items: start;
  }

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

  .admin-row em {
    grid-column: 2;
  }
}
