/* Starlight Retail Ltd. — company site. No JavaScript, no third-party requests. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-cyrillic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #fbf6ee;
  --surface: #fffdf9;
  --ink: #27304f;
  --muted: #626a84;
  --line: #ebe1d0;
  --accent: #34427c;
  --gold: #e3ae45;
  --gold-deep: #9a6a12;
  --peach: #fbe7da;
  --lavender: #ece7f5;
  --sage: #e3ecdf;
  --sky: #e2ecf5;
  --radius: 28px;
  --wrap: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
}

/* The logo is the name itself: lowercase, with a gold dot. The same "s." is the
   favicon (site/favicon.svg). */
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-dot {
  color: var(--gold);
}

.brand-rest {
  font-weight: 400;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
}

/* Soft washes of colour behind the hero, like paint on paper. */
.hero::before {
  content: "";
  position: absolute;
  inset: -6rem 0 -4rem;
  z-index: -1;
  background:
    radial-gradient(38rem 26rem at 88% 30%, var(--peach), transparent 70%),
    radial-gradient(30rem 22rem at 62% 85%, var(--lavender), transparent 70%),
    radial-gradient(26rem 20rem at 4% 70%, var(--sky), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
}

.hero .lead {
  margin-top: 1.5rem;
  max-width: 31rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
}

/* The one test, set apart from the description above it. */
.hero .test {
  margin-top: 1.1rem;
  max-width: 31rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
}

.hero-art {
  width: 100%;
  max-width: 33rem;
  justify-self: center;
}

.actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--ink);
}

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

.button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

@media (max-width: 46rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 24rem;
    grid-row: 1;
  }
}

/* Sections */

.section {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem 2rem;
}

.card.peach {
  background: var(--peach);
}

.card.lavender {
  background: var(--lavender);
}

.card.sage {
  background: var(--sage);
}

.card img {
  width: 11.5rem;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.55rem;
}

.card p {
  font-size: 1rem;
  color: #4b536e;
}

/* Portfolio: one panel per line of work */

.feature {
  display: grid;
  grid-template-columns: minmax(9rem, 17rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  background: var(--sky);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.feature + .feature {
  margin-top: 1.25rem;
}

.feature.store {
  background: var(--peach);
}

/* A photograph, unlike the cut-out illustrations, needs its own edge. */
.feature .photo {
  border-radius: 18px;
}

.feature div > .button {
  margin-top: 1.4rem;
}

.feature h3 {
  font-size: clamp(1.7rem, 3.8vw, 2.3rem);
}

.feature p {
  max-width: 32rem;
  color: #4b536e;
}

.feature .eyebrow {
  margin-bottom: 0.7rem;
  color: var(--gold-deep);
}

.feature .feature-lead {
  margin-block: 0.9rem 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width: 40rem) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature .photo {
    width: 100%;
    max-width: 17rem;
  }

  .feature .button {
    justify-self: start;
  }

  .feature img {
    width: 11rem;
    margin-inline: auto;
  }
}

/* Company details */

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

@media (max-width: 52rem) {
  .company {
    grid-template-columns: 1fr;
  }

  .company > img {
    display: none;
  }
}

.details {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
  max-width: 44rem;
}

.details dt,
.details dd {
  margin: 0;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.details dt {
  color: var(--muted);
  font-size: 0.95rem;
  padding-right: 1rem;
}

@media (max-width: 34rem) {
  .details {
    grid-template-columns: 1fr;
  }

  .details dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .details dd {
    padding-top: 0.2rem;
  }
}

/* Text pages */

.page-head {
  position: relative;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -6rem 0 -4rem;
  z-index: -1;
  background:
    radial-gradient(30rem 16rem at 85% 40%, var(--peach), transparent 70%),
    radial-gradient(26rem 14rem at 10% 80%, var(--sky), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 65%, transparent);
  pointer-events: none;
}

.page-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 13rem;
  padding-block: clamp(1.5rem, 5vw, 3rem);
}

.page-head h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}

.page-head p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 34rem;
}

.page-head img {
  width: clamp(7rem, 22vw, 12rem);
  flex: none;
}

@media (max-width: 30rem) {
  .page-head .wrap {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .page-head img {
    width: 8.5rem;
  }
}

.prose {
  max-width: 44rem;
  padding-block: clamp(2.25rem, 6vw, 4rem);
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
  scroll-margin-top: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 0.9rem;
}

.prose ul {
  margin: 0;
  padding-left: 1.2rem;
}

.prose li::marker {
  color: var(--gold);
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose address {
  font-style: normal;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  margin-top: clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  padding-block: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  flex-wrap: wrap;
}

.site-footer p + p {
  margin-top: 0.25rem;
}

.site-footer nav {
  display: flex;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--ink);
}
