/* (C) chaprints.com front door. Fonts and colors match STAR Prints (navy) and STAR MARK (teal). */

@font-face {
  font-family: "League Spartan";
  src: url("/assets/fonts/league-spartan-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("/assets/fonts/overpass-wght-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;

  /* Page colors. Dark is the default; light follows the device (below). */
  --bg: #000101;
  --text: #ffffff;
  --muted: #b9c2cc;
  --line: #262b31;
  --solid: #ffffff;
  --solid-ink: #000101;
  --logo-filter: none;
  --shadow: rgba(0, 0, 0, 0.45);
  --row-bg: transparent;

  /* STAR Prints */
  --navy: #162639;
  --dusk: #2c4b71;
  --sky: #82d5f4;

  /* STAR MARK */
  --deep: #041f1d;
  --teal: #0b5d56;
  --mint: #5eead4;

  --font-display: "League Spartan", sans-serif;
  --font-body: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --content-max: 1120px;
  --radius: 20px;
}

/* Light theme for devices set to light. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f7fb;
    --text: #0b1520;
    --muted: #4a5868;
    --line: #d9dfe5;
    --solid: #0b1520;
    --solid-ink: #ffffff;
    --logo-filter: invert(1);
    --shadow: rgba(22, 38, 57, 0.18);
    --row-bg: #ffffff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--blue-focus, #60a5fa);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top { border-bottom: 1px solid var(--line); }

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
  filter: var(--logo-filter);
}

.nav {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover { color: var(--dusk); }
@media (prefers-color-scheme: dark) { .nav a:hover { color: var(--sky); } }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(38px, 26px + 3.2vw, 64px);
  line-height: 1.02;
  max-width: 19ch;
  margin: 0 auto;
}

h2 { font-size: clamp(30px, 24px + 1.6vw, 40px); line-height: 1.05; }

.lead {
  color: var(--muted);
  font-size: clamp(18px, 17px + 0.3vw, 21px);
  line-height: 1.45;
  max-width: 44ch;
  margin: 20px auto 0;
}

/* The two doors */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.door {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  min-height: 340px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.door:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px var(--shadow);
}

.door.prints { background: linear-gradient(160deg, var(--navy) 0%, var(--dusk) 100%); }
.door.mark   { background: linear-gradient(160deg, var(--deep) 0%, var(--teal) 100%); }

.door-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.door .star { width: 36px; height: 41px; flex: none; }
.door.prints .star { color: var(--white); }
.door.mark .star   { color: var(--white); }

.door-name {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.door.prints .door-name b { color: var(--sky); }
.door.mark .door-name b   { color: var(--mint); }

.door-what {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.door.prints .door-what { color: var(--sky); }
.door.mark .door-what   { color: var(--mint); }

.door-copy {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40ch;
}

.door-button {
  margin-top: auto;
  align-self: flex-start;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

.door.prints .door-button { background: var(--sky); color: var(--navy); }
.door.mark .door-button   { background: var(--mint); color: var(--deep); }

/* Smaller links */
.more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  background: var(--row-bg);
}

.more-row b {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.more-row:hover { border-color: var(--muted); }

/* Contact */
.contact { padding: 112px 0 104px; text-align: center; }

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  background: var(--solid);
  color: var(--solid-ink);
}

.button.quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--muted);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 32px;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* Phones */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top-row { min-height: 64px; }
  .logo img { height: 34px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .hero { padding: 56px 0 36px; }
  .doors, .more { grid-template-columns: 1fr; gap: 16px; }
  .more { margin-top: 16px; }
  .door { min-height: 0; padding: 28px 22px 24px; }
  .door-name { font-size: 26px; }
  .door-button { margin-top: 10px; }
  .contact { padding: 80px 0 72px; }
}

@media (max-width: 400px) {
  .nav li:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .door { transition: none; }
  .door:hover { transform: none; }
}
