@font-face { font-family: 'Marcellus'; src: url('/fonts/Marcellus-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/HankenGrotesk-Variable.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/SpaceMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/SpaceMono-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sand: #ded3c4; --bone: #eaddc8; --clay: #c9b6a2;
  --ink: #3a2438; --deep: #1b1326;
  --sun: #f0883d; --apsis: #5e2f74; --umber: #7a4a3a; --bronze: #8c7547;
  --page-top: #0a0610; --prose: #5a4658; --eclipse: #160f1e;
  --rule: rgba(94, 47, 116, 0.18); --rule-soft: rgba(94, 47, 116, 0.13);
  --display: 'Marcellus', serif;
  --body: 'Hanken Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--sand); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--umber); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.content a:focus-visible { outline-color: var(--ink); }

/* Header. Stars sit behind the name and links. Eight diagonal bars sit still; three more drift across them and change colour. */
@keyframes shiftBar9 {
  0%   { transform: rotate(338deg) translateY(62px);  background: var(--sun); }
  25%  { transform: rotate(338deg) translateY(18px);  background: var(--sand); animation-timing-function: linear; }
  50%  { transform: rotate(338deg) translateY(-50px); background: var(--apsis); animation-timing-function: ease-in; }
  75%  { transform: rotate(338deg) translateY(18px);  background: var(--sand); animation-timing-function: linear; }
  100% { transform: rotate(338deg) translateY(62px);  background: var(--sun);  animation-timing-function: ease-out; }
}
@keyframes shiftBar10 {
  0%   { transform: rotate(338deg) translateY(-56px); background: var(--apsis); }
  25%  { transform: rotate(338deg) translateY(-12px); background: var(--bone);  animation-timing-function: linear; }
  50%  { transform: rotate(338deg) translateY(54px);  background: var(--sun);   animation-timing-function: ease-in; }
  75%  { transform: rotate(338deg) translateY(-12px); background: var(--bone);  animation-timing-function: linear; }
  100% { transform: rotate(338deg) translateY(-56px); background: var(--apsis); animation-timing-function: ease-out; }
}
@keyframes shiftBar11 {
  0%   { transform: rotate(338deg) translateY(46px);  background: var(--apsis); }
  25%  { transform: rotate(338deg) translateY(-8px);  background: var(--sun);   animation-timing-function: linear; }
  50%  { transform: rotate(338deg) translateY(-58px); background: var(--bronze); animation-timing-function: ease-in; }
  75%  { transform: rotate(338deg) translateY(-8px);  background: var(--sun);   animation-timing-function: linear; }
  100% { transform: rotate(338deg) translateY(46px);  background: var(--apsis); animation-timing-function: ease-out; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: var(--mx, 0.9); }
  50% { opacity: var(--mn, 0.3); }
}

.nav-stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.star { position: absolute; border-radius: 50%; background: var(--bone); transform: translate(-50%, -50%); }
.star.tw { animation: starTwinkle var(--dur, 5s) ease-in-out infinite; animation-delay: var(--del, 0s); }

.header-container { position: relative; flex: none; overflow: hidden; background: var(--page-top); z-index: 5; min-height: 96px; }
header.nav { position: relative; z-index: 3; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 0; height: 96px; padding: 0 50px; color: var(--bone); }
.links { display: flex; align-items: center; }
.item-primary { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; padding-left: 0.16em; font-size: 21px; color: var(--bone); text-decoration: none; margin-right: 28px; white-space: nowrap; }
.item-primary:hover { color: var(--bone); }
.item { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--clay); text-decoration: none; margin-right: 24px; transition: color 0.25s; }
.item:hover { color: var(--sun); }
.separator { height: 26px; width: 2px; margin-right: 24px; background: var(--sun); border-radius: 2px; opacity: 0.7; }

.bar-field { position: absolute; top: 0; bottom: 0; left: 720px; right: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.color-bar { position: absolute; left: -30%; width: 200%; transform-origin: center; transform: rotate(338deg); }
.color-bar-1  { top: -8px;  height: 22px; background: var(--ink); }
.color-bar-2  { top: 12px;  height: 13px; background: var(--apsis); }
.color-bar-3  { top: 27px;  height: 9px;  background: var(--sun); }
.color-bar-4  { top: 38px;  height: 7px;  background: var(--sand); }
.color-bar-5  { top: 50px;  height: 12px; background: var(--apsis); }
.color-bar-6  { top: 66px;  height: 8px;  background: var(--bronze); }
.color-bar-7  { top: 78px;  height: 6px;  background: var(--sun); }
.color-bar-8  { top: 88px;  height: 10px; background: var(--bone); }
.color-bar-9  { top: 18px;  height: 8px;  background: var(--sun);   animation: shiftBar9  24s ease-in-out infinite; }
.color-bar-10 { top: 42px;  height: 8px;  background: var(--apsis); animation: shiftBar10 28s ease-in-out infinite; animation-delay: -7s; }
.color-bar-11 { top: 60px;  height: 8px;  background: var(--apsis); animation: shiftBar11 20s ease-in-out infinite; animation-delay: -13s; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--page-top) 0%, #140c20 40%, var(--deep) 100%); padding: 72px 50px 84px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; font-size: 46px; line-height: 1.15; color: var(--bone); }
.lede { margin: 0; font-weight: 300; font-size: 19px; line-height: 1.7; color: var(--bone); max-width: 44ch; }

/* The mark: two orbit rings, two moons, and at the centre an eclipse (soft glow, lit ring, dark disc). */
.mark { position: relative; flex: none; width: 168px; height: 168px; margin: 44px 60px 44px 0; }
.mark > span { position: absolute; border-radius: 50%; }
.ring { border: 1.5px solid rgba(234, 221, 200, 0.35); }
.r1 { inset: -22px; }
.r2 { inset: -44px; border-color: rgba(240, 136, 61, 0.5); }
.m-sun { left: 50%; top: -44px; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--sun); box-shadow: 0 0 12px rgba(240, 136, 61, 0.7); }
.m-bone { left: -22px; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--bone); box-shadow: 0 0 8px rgba(234, 221, 200, 0.5); }
.ec-glow { inset: -26%; filter: blur(30px); background: radial-gradient(circle, rgba(255, 138, 61, 0.5) 30%, rgba(162, 59, 110, 0.25) 55%, transparent 72%); }
.ec-ring { inset: 0; border: 3px solid var(--sun); box-shadow: 0 0 45px rgba(255, 150, 70, 0.7), inset 0 0 35px rgba(255, 150, 70, 0.6); }
.ec-disc { inset: 8px; background: var(--eclipse); }

/* Body */
main { flex: none; }
.content { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 50px 72px; }
.content section { padding-top: 56px; }
h2 { margin: 0 0 20px; display: inline-block; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; font-size: 26px; color: var(--ink); border-bottom: 2px solid var(--sun); padding-bottom: 5px; }
#products h2 { margin-bottom: 8px; }
.content p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--prose); max-width: 64ch; }

.facts { margin: 0; font-size: 15px; line-height: 1.5; color: var(--prose); border-bottom: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 132px 1fr; padding: 9px 0; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.13em; font-size: 11px; font-weight: 700; color: var(--umber); }
.facts dd { margin: 0; }
.facts .strong { color: var(--ink); font-weight: 600; }
.facts a, .mail { font-weight: 600; }
.facts.small { font-size: 14px; border-bottom: 0; }
.facts.small > div { grid-template-columns: 96px 1fr; padding: 8px 0; border-top-color: var(--rule-soft); }

.product { display: flex; align-items: flex-start; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.product-head { flex: none; width: 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; font-size: 22px; line-height: 1.25; color: var(--ink); }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid rgba(94, 47, 116, 0.4); border-radius: 3px; color: var(--apsis); background: rgba(94, 47, 116, 0.06); }
.product-body { flex: 1 1 0; min-width: 0; }
.product-body p { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }

#contact p { margin-bottom: 14px; }
#contact .mail-line { margin: 0; }
.mail { font-size: 20px; line-height: 44px; }

footer { flex: 1 0 auto; background: var(--page-top); padding: 36px 50px 40px; }
.foot-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 48px; }
.foot-wordmark { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 18px; color: var(--bone); }
.foot-legal { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.6; color: var(--clay); text-align: right; }
.foot-legal p { margin: 0; }

/* Compact header (1000px and narrower): no diagonal bars; the name takes its own row above the links. */
@media screen and (max-width: 1000px) {
  .bar-field { display: none; }
  header.nav { height: auto; padding: 16px 40px; gap: 12px 0; align-items: flex-start; }
  .item-primary { flex: 0 0 100%; margin-right: 0; font-size: 20px; letter-spacing: 0.12em; padding-left: 0.12em; line-height: 1.25; }
  .links .separator:first-of-type { display: none; }
  /* Same look, with a taller area to tap: the padding is cancelled by the margin. */
  .item { margin: -14px 20px -14px 0; padding: 14px 0; letter-spacing: 0.16em; }
  .separator { height: 18px; margin-right: 20px; }
}

@media screen and (max-width: 760px) {
  .product { flex-direction: column; gap: 12px; }
  .product-head { width: auto; }
}

/* Phone (640px and narrower) */
@media screen and (max-width: 640px) {
  header.nav { padding: 14px 18px; gap: 10px 0; }
  .item-primary { font-size: 16px; letter-spacing: 0.08em; padding-left: 0.1em; }
  .item { font-size: 11px; margin-right: 14px; letter-spacing: 0.14em; }
  .separator { height: 14px; margin-right: 14px; }

  .hero { padding: 68px 18px 48px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 56px; }
  .hero-text { gap: 14px; }
  h1 { font-size: 30px; letter-spacing: 0.08em; line-height: 1.2; }
  .lede { font-size: 16px; }
  .mark { width: 104px; height: 104px; margin: 0 0 0 32px; }
  .r1 { inset: -16px; }
  .r2 { inset: -32px; }
  .m-sun { top: -32px; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 10px rgba(240, 136, 61, 0.7); }
  .m-bone { left: -16px; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
  .ec-glow { filter: blur(20px); }
  .ec-ring { border-width: 2px; box-shadow: 0 0 28px rgba(255, 150, 70, 0.7), inset 0 0 21px rgba(255, 150, 70, 0.6); }
  .ec-disc { inset: 6px; }

  .content { padding: 0 16px 48px; }
  .content section { padding-top: 36px; }
  h2 { font-size: 22px; margin-bottom: 16px; }
  #products h2 { margin-bottom: 4px; }
  .content p { font-size: 15px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .facts.small > div { grid-template-columns: 76px 1fr; gap: 0; padding: 8px 0; }
  .facts.small > .site-row { padding: 0; }
  .site-row dt { padding: 12px 0; }
  .site-row a { display: inline-block; line-height: 44px; }
  .product { padding: 18px 0; }
  h3 { font-size: 20px; }
  .product-body p { margin-bottom: 12px; }
  #contact p { margin-bottom: 6px; }
  .mail { display: block; font-size: 18px; }
  footer { padding: 28px 18px 32px; }
  .foot-inner { flex-direction: column; gap: 14px; }
  .foot-wordmark { font-size: 16px; letter-spacing: 0.12em; }
  .foot-legal { gap: 8px; font-size: 11px; letter-spacing: 0.04em; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .color-bar-9, .color-bar-10, .color-bar-11 { animation: none; }
  .star.tw { animation: none; }
}
