:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --ember: #ea580c;
  --success: #16a34a;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand-mark {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--ember);
}

.cart-trigger {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-pill {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}

main {
  flex: 1;
}

.page-section {
  padding: 88px 24px;
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 96px 24px;
  background: var(--stone-900);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.58)),
    url("https://images.unsplash.com/photo-1695294504320-6da4e3fb9ae7?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixlib=rb-4.1.0&q=80&w=1600") center/cover;
  opacity: 0.9;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 138px);
  line-height: 0.86;
  font-weight: 950;
  text-transform: uppercase;
}

.hero p {
  margin: 24px 0 0;
  color: var(--stone-200);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.button,
.checkout-button,
.add-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0 24px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.checkout-button:hover,
.add-cart-button:hover {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--paper);
}

.button--light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button--light:hover {
  border-color: var(--ember);
}

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

.button--outline-light {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}

.button--outline-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  font-weight: 900;
}

.section-heading p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--stone-500);
  line-height: 1.7;
}

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

.product-card {
  display: block;
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-100);
  margin-bottom: 18px;
}

.product-card__media img,
.product-detail__media img,
.story-band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.product-card:hover img {
  transform: scale(1.045);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--ember);
  color: var(--paper);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card__info {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

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

.product-card p,
.muted {
  color: var(--stone-500);
}

.product-card p {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card__price {
  white-space: nowrap;
  font-weight: 800;
}

.sale-price {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 2px;
}

.sale-price s {
  color: var(--stone-500);
  font-size: 13px;
}

.story-band {
  background: var(--stone-900);
  color: var(--paper);
}

.story-band .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-band h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 900;
}

.story-band p {
  color: var(--stone-200);
  font-size: 18px;
  line-height: 1.8;
}

.story-band__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--stone-700);
}

.story-band__image img {
  filter: grayscale(1);
}

.story-band__image:hover img {
  filter: grayscale(0);
}

.about-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 96px 24px;
  background: var(--stone-900);
  color: var(--paper);
  text-align: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.62)),
    url("https://images.unsplash.com/photo-1695294504320-6da4e3fb9ae7?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixlib=rb-4.1.0&q=80&w=1600") center/cover;
  opacity: 0.9;
}

.about-hero__content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
}

.about-hero p:last-child {
  max-width: 700px;
  margin: 24px auto 0;
  color: var(--stone-200);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.about-copy {
  background: var(--stone-50);
}

.about-copy__inner {
  width: min(860px, 100%);
  margin: 0 auto;
}

.about-copy h2,
.about-split h2,
.about-dark h2,
.about-cta h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 900;
}

.about-rich-text {
  display: grid;
  gap: 22px;
  color: var(--stone-700);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

.about-rich-text p {
  margin: 0;
}

.about-split {
  background: var(--stone-100);
}

.about-split .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-split__copy p {
  color: var(--stone-700);
  font-size: 18px;
  line-height: 1.8;
}

.about-split__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--stone-800);
}

.about-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 700ms ease, transform 700ms ease;
}

.about-split__image:hover img {
  filter: grayscale(0);
  transform: scale(1.035);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.about-pillars article {
  display: grid;
  gap: 14px;
}

.about-pillars span {
  width: 64px;
  height: 4px;
  background: var(--ember);
}

.about-pillars h3,
.about-values h3 {
  margin: 0;
  font-size: 22px;
}

.about-pillars p,
.about-values p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.7;
}

.about-dark,
.about-cta {
  background: var(--stone-900);
  color: var(--paper);
}

.about-dark .about-rich-text,
.about-dark .eyebrow,
.about-cta p {
  color: var(--stone-200);
}

.about-dark blockquote {
  margin: 56px 0 0;
  padding: 8px 0 8px 28px;
  border-left: 5px solid var(--ember);
  color: var(--stone-200);
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  line-height: 1.55;
}

.about-values-band {
  background: var(--stone-100);
}

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

.about-values article {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 260px;
  padding: 28px;
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-values article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.about-values span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--ember);
  color: var(--paper);
  font-size: 20px;
  font-weight: 900;
}

.about-cta {
  text-align: center;
}

.about-cta p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.7;
}

.about-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 72px;
  align-items: start;
  padding-top: 56px;
}

.back-link,
.text-link,
.text-button {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
}

.product-detail__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-100);
}

.product-detail h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.product-detail__price {
  margin: 0 0 30px;
  color: var(--stone-700);
  font-size: 22px;
  font-weight: 800;
}

.product-detail__description {
  margin: 0 0 34px;
  color: var(--stone-700);
  font-size: 18px;
  line-height: 1.8;
}

.option-group {
  margin-bottom: 30px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.option-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.size-button {
  min-height: 48px;
  border: 1px solid var(--stone-200);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.size-button:hover,
.size-button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.quantity-control {
  display: inline-flex;
  width: 146px;
  min-height: 48px;
  border: 1px solid var(--stone-200);
}

.quantity-control button,
.quantity-control input {
  width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
}

.quantity-control input {
  flex: 1;
  appearance: textfield;
}

.add-cart-button {
  width: 100%;
}

.add-cart-button.is-added {
  border-color: var(--success);
  background: var(--success);
}

.detail-list {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--stone-200);
}

.detail-list h2 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  gap: 12px;
  color: var(--stone-700);
  line-height: 1.7;
}

.detail-list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 12px;
  background: var(--ember);
  border-radius: 999px;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 100;
  width: min(420px, 100vw);
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.cart-drawer.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.cart-drawer__inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  border-left: 1px solid var(--stone-200);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.18);
}

.cart-drawer__header,
.cart-drawer__footer {
  padding: 24px;
}

.cart-drawer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid var(--stone-200);
}

.cart-drawer__header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--stone-200);
  background: var(--paper);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.cart-line-items {
  overflow: auto;
  padding: 20px 24px;
}

.cart-line-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stone-200);
}

.cart-line-item img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--stone-100);
}

.cart-line-item__body {
  display: grid;
  gap: 12px;
}

.cart-line-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.cart-line-item p {
  margin: 4px 0 0;
  color: var(--stone-500);
  font-size: 13px;
}

.cart-line-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stone-200);
}

.quantity button,
.quantity span {
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  padding: 0;
}

.cart-drawer__footer {
  border-top: 1px solid var(--stone-200);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
}

.checkout-button {
  width: 100%;
}

.empty-cart {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--stone-500);
  text-align: center;
}

.empty-cart a {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

.cart-summary-list {
  border-top: 1px solid var(--stone-200);
}

.cart-summary-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--stone-200);
}

.cart-summary-item img {
  width: 120px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--stone-100);
}

.cart-summary-item h2 {
  margin: 0;
  font-size: 20px;
}

.cart-summary-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: var(--stone-100);
}

.cart-summary-card h2 {
  margin: 0 0 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--stone-200);
}

.summary-row strong {
  font-size: 24px;
}

.auth-page,
.content-page {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

.auth-page form,
.content-page form {
  display: grid;
  gap: 16px;
}

.auth-page input,
.content-page input,
.content-page textarea {
  width: 100%;
  border: 1px solid var(--stone-200);
  padding: 14px 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 32px;
  background: var(--stone-900);
  color: var(--paper);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--stone-200);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--stone-200);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.messages {
  width: min(var(--max), calc(100% - 48px));
  margin: 24px auto 0;
}

.message,
.alert-success {
  padding: 14px 16px;
  background: #dcfce7;
  color: #166534;
}

#toast-container {
  margin-top: 78px;
}

#toast-container > div {
  width: min(360px, calc(100vw - 32px));
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  opacity: 1;
  padding: 16px 18px 16px 52px;
  font-family: inherit;
}

#toast-container > .toast-success,
#toast-container > .toast-info,
#toast-container > .toast-warning,
#toast-container > .toast-error {
  background-image: none !important;
}

#toast-container > .toast-success {
  background-color: #0f172a;
  border-left: 5px solid var(--success);
}

#toast-container > .toast-info {
  background-color: var(--ink);
  border-left: 5px solid var(--ember);
}

#toast-container > .toast-warning {
  background-color: #7c2d12;
  border-left: 5px solid #fed7aa;
}

#toast-container > .toast-error {
  background-color: #7f1d1d;
  border-left: 5px solid #fecaca;
}

#toast-container > div::before {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 900;
}

#toast-container > .toast-success::before {
  content: "+";
}

#toast-container > .toast-info::before {
  content: "i";
}

#toast-container > .toast-warning::before {
  content: "!";
}

#toast-container > .toast-error::before {
  content: "x";
}

.toast-title {
  font-weight: 900;
}

.toast-message {
  font-size: 14px;
  line-height: 1.45;
}

.toast-close-button {
  right: -0.1em;
  top: -0.25em;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 16px 20px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 18px;
    overflow-x: auto;
  }

  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .product-grid,
  .story-band .section-inner,
  .product-detail,
  .cart-layout,
  .about-split .section-inner {
    grid-template-columns: 1fr;
  }

  .product-detail {
    gap: 34px;
  }

  .cart-summary-card {
    position: static;
  }

  .about-pillars,
  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-section {
    padding: 64px 18px;
  }

  .site-header {
    min-height: auto;
  }

  .cart-trigger {
    padding: 9px 12px;
  }

  .hero {
    min-height: 76vh;
  }

  .product-grid {
    gap: 42px;
  }

  .size-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cart-summary-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-summary-item img {
    width: 88px;
  }

  .cart-summary-item__actions {
    grid-column: 1 / -1;
  }

  .about-hero {
    min-height: 58vh;
  }

  .about-pillars,
  .about-values {
    grid-template-columns: 1fr;
  }

  .about-values article {
    min-height: auto;
  }

  .about-cta__actions {
    flex-direction: column;
  }
}
