/* Deo Gratias Labs
   Layout: one night sky runs the whole length of the page. Content is light set on it,
   with the four products drawn as a constellation in the hero. */

@font-face { font-family: "Cinzel"; src: url("cinzel.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("spectral-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("spectral-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("spectral-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;

  /* Night: the navy of RuleGenz and Newenz */
  --night-0: #060d1f;
  --night-1: #0a1630;
  --night-2: #0f1f3d;
  --night-3: #1e3a6e;
  --blue: #3b82f6;
  --sky: #60a5fa;

  /* Light: gold */
  --gold: #e3a21a;
  --gold-hi: #f7d98b;
  --gold-lo: #b88728;

  /* Text on night */
  --text: #eef2f8;
  --text-2: #b9c7d8;
  --text-3: #8fa3bd;
  --line: rgba(180, 195, 212, 0.16);
  --line-2: rgba(180, 195, 212, 0.3);
  --panel: rgba(13, 27, 56, 0.72);

  --display: "Cinzel", "Trajan Pro", "Cormorant SC", Georgia, serif;
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ui: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0) 62%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 38%, var(--night-1) 72%, var(--night-0) 100%);
  background-color: var(--night-1);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }

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

a { color: var(--gold-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--gold); color: var(--night-0); padding: 8px 14px; border-radius: 6px; font-family: var(--ui); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); color: var(--night-0); }

.eyebrow {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(8, 17, 38, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.brand-name span { color: var(--gold-hi); }

.nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; font-family: var(--ui); font-weight: 500; font-size: 0.9375rem; }
.nav a { color: var(--text-2); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1b1503; box-shadow: 0 10px 34px rgba(227, 162, 26, 0.3); }
.btn-gold:hover { color: #1b1503; transform: translateY(-2px); box-shadow: 0 16px 44px rgba(227, 162, 26, 0.42); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: #fff; border-color: var(--gold-hi); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.1rem, 9.2vw, 8.4rem);
  line-height: 0.96;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 18%, var(--gold-hi) 36%, #fff6d8 46%, var(--gold-hi) 56%, var(--gold) 76%, var(--gold-lo) 100%);
  background-size: 240% 100%;
  background-position: 46% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 28px rgba(227, 162, 26, 0.22));
  animation: sheen 3.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s 1 both;
}
.title span { display: block; }
.title .title-sub { margin-top: 0.5em; font-size: 0.24em; font-weight: 600; letter-spacing: 0.62em; line-height: 1; -webkit-text-fill-color: var(--text); color: var(--text); }
@keyframes sheen { from { background-position: 135% 0; } to { background-position: 46% 0; } }

.tagline { font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--text); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* The constellation: one star per product, arranged and joined by the script.
   Without the script it is a plain row of links. */
.constellation { position: relative; width: 100%; max-width: 380px; justify-self: center; display: flex; flex-wrap: wrap; gap: 10px; }
.star {
  color: var(--text); text-decoration: none;
  font-family: var(--ui); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.06em;
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px;
}
.star span { white-space: nowrap; transition: color 0.18s ease; }
.star:hover span { color: var(--gold-hi); }
.constellation.is-sky { display: block; aspect-ratio: 4 / 5; }
.is-sky .star { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; }
.is-sky .star span { position: absolute; top: 50%; transform: translateY(-50%); padding: 2px 6px; border-radius: 4px; }
.is-sky .star.label-right span { left: 100%; }
.is-sky .star.label-left span { right: 100%; }
.is-sky .star.label-below span { left: 50%; right: auto; top: 100%; transform: translateX(-50%); }

/* Facts under the hero */
.hero-facts { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(20px, 4vw, 48px); }
.hero-facts li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-facts strong { font-family: var(--ui); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.hero-facts span { font-size: 1.0625rem; line-height: 1.5; color: var(--text-2); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 44em; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; }
.section-head p { color: var(--text-2); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-head { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.about-head h2 { font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; }
.about-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 36em; padding-top: 6px; }
.about-body p { color: var(--text-2); font-size: clamp(1.125rem, 1.5vw, 1.25rem); }
.about-body p:first-child { color: var(--text); }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.product:last-child:nth-child(odd) { grid-column: 1 / -1; }
.product {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(24px, 3.2vw, 38px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { border-color: rgba(247, 217, 139, 0.5); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 60px rgba(227, 162, 26, 0.08); }
.product p.product-for { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.product-for svg { width: 16px; height: 16px; flex: none; }
.product h3 { font-family: var(--ui); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: 0.01em; }
.product p.product-line { font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--gold-hi); }
.product p { color: var(--text-2); }
.product ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product li { font-family: var(--ui); font-weight: 500; font-size: 0.875rem; color: var(--text); padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.product-link { margin-top: auto; padding-top: 14px; font-family: var(--ui); font-weight: 600; font-size: 1rem; text-decoration: none; align-self: flex-start; }
.product-link::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform 0.18s ease; }
.product-link:hover::after { transform: translateX(4px); }

/* Commitments */
.commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 52px); }
.commit > div { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--gold-lo); min-width: 0; }
.commit h3 { font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.commit p { color: var(--text-2); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-main h2 { font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; }
.contact-main p { color: var(--text-2); max-width: 30em; }
.email { font-family: var(--ui); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.6rem); overflow-wrap: anywhere; user-select: all; }

.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { font-family: var(--ui); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding-top: 18px; }
.facts dd { font-size: 1.0625rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Text pages (Trust, Privacy) ---------- */

.page-hero { padding-block: clamp(48px, 7vw, 92px) clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-weight: 600; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 16em; }
.page-hero p { color: var(--text-2); font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: 36em; }
.prose { padding-block: clamp(24px, 4vw, 48px) var(--section); display: flex; flex-direction: column; gap: clamp(44px, 6vw, 72px); }
.block { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.block h2 { font-weight: 600; font-size: 1.55rem; line-height: 1.2; }
.block-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 40em; }
.block-body p, .block-body li { color: var(--text-2); }
.block-body strong { color: var(--text); font-weight: 600; }
.block-body ul { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 8px; }
.block-body li::marker { color: var(--gold); }
.block-body h3 { font-family: var(--ui); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.02em; color: var(--text); margin-top: 8px; }
.updated { font-family: var(--ui); font-size: 0.875rem; color: var(--text-3); }

/* Labels keep their own colour and size inside sections that style paragraphs */
.section-head p.eyebrow, .about-head p.eyebrow, .contact-main p.eyebrow, .page-hero p.eyebrow { color: var(--gold); font-size: 0.8125rem; }
.page-hero p.updated { font-size: 0.875rem; color: var(--text-3); }

/* ---------- Footer: dawn ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 150px at 50% 100%, rgba(247, 217, 139, 0.5), rgba(247, 217, 139, 0) 100%),
    radial-gradient(130% 78% at 50% 108%, rgba(227, 162, 26, 0.5), rgba(227, 162, 26, 0.14) 44%, rgba(227, 162, 26, 0) 72%);
  padding-block: clamp(48px, 7vw, 84px) clamp(56px, 8vw, 96px);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 56px); }
.footer-grid > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-label { font-family: var(--ui); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--ui); font-weight: 500; font-size: 1rem; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--gold-hi); }
.legal { font-family: var(--ui); font-size: 0.9375rem; line-height: 1.6; color: var(--text-2); max-width: 34em; }
/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .title { font-size: clamp(3.3rem, 16vw, 7.6rem); }
  .constellation { max-width: 300px; margin-top: 8px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .commit { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .block { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 0.875rem; letter-spacing: 0.18em; }
  .nav { gap: 2px 20px; font-size: 0.9375rem; }
  .nav .nav-wide { display: none; }
  .header-row { padding-block: 12px; }
  .star { font-size: 0.875rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { border-top: 0; padding-top: 0; }
  .facts dt:first-of-type + dd { padding-top: 0; }
}

@media (max-width: 380px) {
  .constellation { max-width: 250px; }
  .star { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title { animation: none; }
  .btn, .product, .product-link::after { transition: none; }
  .btn-gold:hover, .product:hover { transform: none; }
}
