:root {
  --ink: #0d0d0d;
  --footer: #f1f1f1;
  --teal: #237679;
  --line: rgba(13, 13, 13, 0.72);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--footer);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

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

.hero {
  position: relative;
  min-height: 63rem;
  overflow: hidden;
  background: #d9ecee;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(242, 243, 238, 0.08) 0%,
    rgba(242, 243, 238, 0.03) 45%,
    transparent 66%
  );
}

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
  padding: 2.1rem 3.5rem;
}

.wordmark,
.footer-wordmark {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.wordmark span,
.footer-wordmark span {
  color: var(--teal);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

nav a,
.utilities a,
footer a {
  transition: opacity 150ms ease;
}

nav a:hover,
.utilities a:hover,
footer a:hover {
  opacity: 0.55;
}

.utilities {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.utilities a {
  position: relative;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}

.utilities a img {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-count {
  position: absolute;
  top: -0.6rem;
  right: -0.7rem;
  display: grid;
  place-items: center;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.55rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 54rem;
}

.hero-copy {
  align-self: center;
  justify-self: center;
  width: min(32rem, 80%);
  margin-top: 4rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

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

h1,
footer h2 {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
}

h1 {
  margin-bottom: 1.8rem;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 27rem;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0 1.75rem;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.checkout-status {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.65rem;
  font-weight: 600;
}

footer {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.8fr 0.8fr 1.35fr;
  gap: 4rem;
  padding: 3.8rem 3.5rem 2rem;
  background: var(--footer);
}

footer section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand p {
  max-width: 12rem;
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

footer h2 {
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

footer section > a:not(.footer-wordmark) {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
}

.social-note {
  max-width: 8rem;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.newsletter {
  min-width: 15rem;
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.newsletter input,
.newsletter button {
  min-height: 2.8rem;
  border: 0;
  background: transparent;
}

.newsletter input {
  min-width: 0;
  outline: 0;
  font-size: 0.78rem;
}

.newsletter button {
  cursor: pointer;
  font-size: 1.2rem;
}

.newsletter p {
  min-height: 1rem;
  margin: 0.7rem 0 0;
  font-size: 0.68rem;
}

footer small {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 13, 13, 0.14);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.internal-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 4%, rgba(166, 214, 239, 0.32), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(255, 235, 153, 0.3), transparent 30rem),
    #faf9f5;
}

.internal-page .site-header {
  border-bottom: 1px solid rgba(13, 13, 13, 0.12);
}

.page-main {
  width: min(100% - 3rem, 78rem);
  min-height: 40rem;
  margin: 0 auto;
  padding: 6rem 0 8rem;
}

.page-heading {
  margin-bottom: 4rem;
}

.page-heading h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  text-align: left;
}

.page-heading p {
  max-width: 36rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: start;
}

.product-image-card {
  position: sticky;
  top: 2rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(13, 13, 13, 0.14);
  border-radius: 0.5rem;
  background: #e3f0f0;
}

.product-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.product-info {
  padding-top: 1rem;
}

.product-info .eyebrow {
  margin-bottom: 1rem;
}

.product-info h1 {
  max-width: 9ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.4rem, 5vw, 5.5rem);
  text-align: left;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.product-price strong {
  font-size: 1.6rem;
}

.product-price span {
  font-size: 0.75rem;
}

.product-description {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.subscription-box {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.45rem;
}

.subscription-box header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.subscription-box p {
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.product-form-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.quantity-input {
  width: 100%;
  min-height: 3.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  text-align: center;
  font-weight: 700;
}

.add-button,
.checkout-button {
  min-height: 3.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.product-fineprint {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 0.65rem;
  line-height: 1.5;
}

.product-details {
  border-top: 1px solid rgba(13, 13, 13, 0.18);
}

.product-details details {
  border-bottom: 1px solid rgba(13, 13, 13, 0.18);
}

.product-details summary {
  position: relative;
  padding: 1.2rem 2rem 1.2rem 0;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  list-style: none;
}

.product-details summary::after {
  content: "+";
  position: absolute;
  right: 0;
}

.product-details details[open] summary::after {
  content: "−";
}

.product-details p,
.product-details ul {
  margin-top: 0;
  padding-bottom: 1.2rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

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

.product-card {
  display: block;
}

.product-card-image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.1rem;
  border-radius: 0.4rem;
  background: #e3f0f0;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transition: transform 220ms ease;
}

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

.product-card h2 {
  margin-bottom: 0.4rem;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.6rem;
}

.product-card p {
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
}

.content-page {
  width: min(100% - 3rem, 54rem);
}

.content-page h2 {
  margin: 3rem 0 0.8rem;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.65rem;
}

.content-page p,
.content-page li {
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.contact-form label:last-of-type,
.contact-form button,
.contact-status {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(13, 13, 13, 0.5);
  border-radius: 0.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  min-width: 8rem;
}

.contact-status {
  min-height: 1rem;
  margin-bottom: 0;
  font-size: 0.72rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 5rem;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(13, 13, 13, 0.18);
}

.cart-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.25rem;
}

.cart-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.cart-item h2 {
  margin-bottom: 0.35rem;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.35rem;
}

.cart-item p {
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 2rem 2rem 2rem;
  align-items: center;
  margin-top: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-align: center;
}

.quantity-control button {
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.remove-button {
  margin: 0.7rem 0 0 0.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.66rem;
  text-decoration: underline;
}

.cart-summary {
  position: sticky;
  top: 2rem;
  padding: 1.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.5rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.checkout-button {
  width: 100%;
}

.checkout-message {
  min-height: 2.5rem;
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.66rem;
  line-height: 1.5;
}

.empty-cart {
  padding: 4rem 0;
  border-top: 1px solid rgba(13, 13, 13, 0.18);
  text-align: center;
}

.empty-cart p {
  margin-bottom: 1.5rem;
}

.empty-cart .primary-button {
  min-height: 3.3rem;
}

.account-card {
  max-width: 34rem;
  padding: 2rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.55);
}

.account-card h2 {
  margin: 0 0 0.8rem;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.8rem;
}

.account-card p {
  margin-bottom: 1.5rem;
  font-size: 0.84rem;
  line-height: 1.6;
}

.account-card .checkout-message {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .hero {
    min-height: 58rem;
  }

  .site-header {
    padding: 1.6rem 2rem;
  }

  .hero-content {
    min-height: 49rem;
  }

  .hero-copy {
    width: 88%;
  }

  footer {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .footer-brand,
  .newsletter {
    grid-column: span 2;
  }

  .newsletter {
    grid-column: 3 / 5;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 53rem;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.2rem 1.15rem;
  }

  .wordmark,
  .footer-wordmark {
    font-size: 1.6rem;
  }

  nav {
    display: none;
  }

  .utilities {
    justify-self: end;
  }

  .utilities span,
  .utilities a:nth-of-type(1),
  .utilities a:nth-of-type(2) {
    display: none;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(242, 243, 238, 0.02) 0%,
      rgba(242, 243, 238, 0.35) 46%,
      rgba(242, 243, 238, 0.94) 72%,
      rgba(242, 243, 238, 0.98) 100%
    );
  }

  .hero-content {
    display: block;
    min-height: 45rem;
  }

  .hero-copy {
    position: absolute;
    right: 1.15rem;
    bottom: 2.5rem;
    left: 1.15rem;
    width: auto;
    margin: 0;
  }

  .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.6rem;
  }

  h1 {
    max-width: 20rem;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 1rem;
    font-size: clamp(2.7rem, 12vw, 3.5rem);
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 21rem;
    margin-bottom: 1.35rem;
    font-size: 0.85rem;
  }

  .primary-button {
    min-height: 3.2rem;
    padding: 0 1.3rem;
    font-size: 0.65rem;
  }

  .checkout-status {
    font-size: 0.57rem;
  }

  footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    padding: 3rem 1.15rem 1.5rem;
  }

  .footer-brand,
  .newsletter {
    grid-column: 1 / -1;
  }

  .newsletter {
    grid-row: auto;
  }

  .page-main,
  .content-page {
    width: min(100% - 2rem, 78rem);
    padding: 4rem 0 5rem;
  }

  .page-heading {
    margin-bottom: 2.5rem;
  }

  .page-heading h1 {
    font-size: 3.8rem;
  }

  .product-grid,
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-image-card,
  .cart-summary {
    position: static;
  }

  .product-info h1 {
    font-size: 3.8rem;
  }

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

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label,
  .contact-form label:last-of-type,
  .contact-form button,
  .contact-status {
    grid-column: 1;
  }

  .cart-item {
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
  }

  .cart-item > strong {
    grid-column: 2;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 51rem;
  }

  .hero-copy {
    right: 0.9rem;
    left: 0.9rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  footer {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
