@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff6e9;
  --card: #fffcf7;
  --ink: #24182a;
  --plum: #2e1b30;
  --copper: #a74129;
  --peach: #e9a58d;
  --line: #e9d9cb;
  --muted: #6a565b;
  --white: #fffaf3;
  font-family: Manrope, Aptos, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

::selection { background: var(--peach); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 2rem), 77rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 1rem auto auto 1rem;
  transform: translateY(calc(-100% - 2rem));
  padding: .75rem 1rem;
  background: var(--card);
}
.skip-link:focus { transform: none; }

.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.masthead-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .65rem;
}
.wordmark { display: inline-flex; align-items: center; gap: .66rem; text-decoration: none; }
.wordmark img { flex: 0 0 auto; }
.wordmark strong { display: block; font-size: 1.5rem; font-weight: 780; line-height: 1.1; letter-spacing: -.04em; }
.wordmark small { display: block; margin-top: .13rem; color: var(--muted); font-size: .81rem; font-weight: 650; }
.locality { color: var(--muted); font-size: .875rem; text-align: right; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 27rem;
  margin-top: clamp(1rem, 3vw, 2.35rem);
  border-radius: clamp(1rem, 2vw, 1.55rem);
  background: var(--plum);
  color: var(--white);
}
.hero-copy {
  display: grid;
  align-content: center;
  gap: clamp(.95rem, 2vw, 1.45rem);
  min-width: 0;
  padding: clamp(1.5rem, 4.3vw, 3.75rem);
}
.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 4.8vw, 4.3rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero h1 span { color: var(--peach); }
.hero-copy > p { max-width: 32ch; color: #f4dfd7; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hero-actions { display: flex; align-items: flex-start; flex-direction: column; gap: .75rem; }
.button, .install-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .66rem 1.04rem;
  border: 1px solid transparent;
  border-radius: .67rem;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.button { background: var(--white); color: var(--ink); }
.button:hover { background: var(--peach); }
.button:focus-visible { outline-color: var(--peach); }
.launch-status { color: var(--peach); font-size: .9rem; font-weight: 720; }
.hero-media { position: relative; min-width: 0; background: #9f5130; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.collections { margin-top: clamp(2.05rem, 5vw, 4rem); scroll-margin-top: 1rem; }
.section-heading { margin-bottom: 1rem; }
.section-heading h2 {
  font-size: clamp(1.68rem, 3.8vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.section-heading p { margin-top: .32rem; color: var(--muted); font-size: .89rem; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.72rem, 1.6vw, 1.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.collection { overflow: hidden; border: 1px solid var(--line); border-radius: .95rem; background: var(--card); }
.collection-image {
  aspect-ratio: 1.16;
  background: #f0d7c6 url("./assets/catalog.jpg") 0 0 / 200% 200% no-repeat;
}
.collection-image.laptop { background-position: 100% 0; }
.collection-image.starlink { background-position: 0 100%; }
.collection-image.perfume { background-position: 100% 100%; }
.collection-copy { padding: clamp(.74rem, 1.5vw, 1.02rem); }
.collection h3 { font-size: clamp(1rem, 1.65vw, 1.26rem); line-height: 1.2; letter-spacing: -.02em; }
.collection p { margin-top: .3rem; color: var(--muted); font-size: .86rem; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1.1rem;
  margin-top: clamp(2.05rem, 5vw, 4rem);
  min-height: 5.5rem;
  padding-block: .85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .87rem;
}
.footer strong { color: var(--ink); }
.install-button { background: var(--card); color: var(--copper); border-color: var(--line); cursor: pointer; }
.install-button:hover { border-color: var(--copper); }

@media (max-width: 820px) {
  .hero { min-height: 24rem; }
  .hero-copy { padding: 1.45rem; }
  .hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .masthead-inner { min-height: 4.35rem; }
  .wordmark img { width: 2.25rem; height: 2.25rem; }
  .wordmark strong { font-size: 1.31rem; }
  .wordmark small, .locality { font-size: .75rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.15rem, 7.1vw, 3.4rem); }
  .hero-media { aspect-ratio: 1.58; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
