/* Solaswell site v1. Day at the top, night at the bottom. */

@font-face {
  font-family: "Young Serif";
  src: url("../assets/fonts/young-serif-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../assets/fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../assets/fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../assets/fonts/atkinson-hyperlegible-400-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mist: #EEF4F3;
  --ink: #17323A;
  --ink-soft: #3D5A62;
  --water: #2A7F86;
  --water-text: #22686E;
  --solas: #F2B83A;
  --heather: #6E5BA8;

  --night: #0A1636;
  --nebula: #7B4FD0;
  --glow: #6FE3F0;
  --star: #FFD45A;
  --night-text: #EAF0FF;
  --night-soft: #B9C3E6;

  --focus: var(--water);

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --round: "Fredoka", "Atkinson Hyperlegible", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--water-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--mist);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

main:focus { outline: none; }

/* Buttons and links */

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--solas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(23, 50, 58, 0.12), 0 8px 24px -10px rgba(242, 184, 58, 0.9);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: #F6C75E; transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.text-link {
  font-weight: 700;
  color: var(--water-text);
}

/* Header */

.site-header { position: relative; z-index: 10; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 46px; height: 46px; margin: -5px 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.005em;
}

.nav-list {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--water); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1.5px solid rgba(23, 50, 58, 0.35);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 700 1rem/1 var(--sans);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .site-nav { position: relative; }

  /* Without JS the links simply wrap under the brand */
  .header-inner { flex-wrap: wrap; }
  .nav-list { flex-wrap: wrap; gap: 6px 20px; }

  .js .nav-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid rgba(42, 127, 134, 0.25);
    border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(23, 50, 58, 0.45);
  }
  .js .nav-list.is-open { display: flex; }
  .js .nav-list a {
    display: block;
    padding: 12px 14px;
    border-bottom: 0;
    border-radius: 8px;
  }
  .js .nav-list a:hover { background: var(--mist); }
}

/* Hero */

.hero { padding: clamp(24px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 12ch;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: 36px;
}

.hero-art {
  justify-self: end;
  width: 100%;
  max-width: 540px;
}
.well { width: 100%; height: auto; overflow: visible; }

/* The one load moment: about 2.5 s, then still. The base styles are the final state. */

.orb, .ripple, .mote, .halo {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .orb { animation: orb-rise 2.2s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
  .halo { animation: halo-breathe 7s ease-in-out 2.5s infinite; }
  .reflect { animation: reflect-in 2.2s ease-out both; }

  .ripple { animation: ripple 2s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
  .r1 { animation-delay: 0.3s; }
  .r2 { animation-delay: 0.7s; }
  .r3 { animation-delay: 1.1s; }

  .mote { animation: mote-drift 2s ease-out both; }
  .m1 { animation-delay: 0.6s; }
  .m2 { animation-delay: 0.75s; }
  .m3 { animation-delay: 0.9s; }
  .m4 { animation-delay: 0.7s; }
  .m5 { animation-delay: 0.85s; }
  .m6 { animation-delay: 1s; }
  .m7 { animation-delay: 0.95s; }
  .m8 { animation-delay: 1.1s; }
  .m9 { animation-delay: 1.05s; }
  .m10 { animation-delay: 1.15s; }
}

@keyframes orb-rise {
  from { transform: translateY(34px) scale(0.92); opacity: 0.35; filter: saturate(0.6); }
  to { transform: none; opacity: 1; filter: none; }
}
@keyframes halo-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.03); }
}
@keyframes reflect-in {
  from { opacity: 0.2; }
  to { opacity: 1; }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: scale(5.2); opacity: 0; }
}
@keyframes mote-drift {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.ripple { opacity: 0; }
.mote { opacity: 0.9; }

/* How we build */

.principles { padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 2.75rem);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(40px, 6vw, 88px);
  margin-top: clamp(40px, 5vw, 64px);
}

.principle {
  padding-top: 26px;
  border-top: 1px solid rgba(42, 127, 134, 0.55);
  max-width: 34em;
}
.principle h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}
.principle .ring { flex: none; width: 18px; height: 18px; transform: translateY(1px); }
.principle p { margin-top: 12px; color: var(--ink-soft); }

/* Dusk: mist to night, stars come out */

.dusk {
  position: relative;
  min-height: clamp(360px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--pad) clamp(56px, 9vh, 96px);
  background: linear-gradient(
    to bottom,
    var(--mist) 0%,
    #DCE4EE 14%,
    #BDB9DA 30%,
    #8E7FC0 46%,
    #5E4E9C 60%,
    #2F2A6A 76%,
    #15204A 90%,
    var(--night) 100%
  );
  overflow: hidden;
}
.dusk::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 90.7% 70.9%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78.1% 34.5%, rgba(255, 255, 255, 0.56) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 53.7% 94.9%, rgba(255, 255, 255, 0.77) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 8.1% 22.3%, rgba(255, 255, 255, 0.77) 0 1px, transparent 1.8px),
    radial-gradient(circle at 58.7% 48.0%, rgba(255, 255, 255, 0.79) 0 1px, transparent 1.8px),
    radial-gradient(circle at 97.8% 99.8%, rgba(255, 255, 255, 0.82) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 32.3% 51.6%, rgba(255, 255, 255, 0.51) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 56.1% 36.7%, rgba(255, 255, 255, 0.88) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 39.1% 98.1%, rgba(255, 255, 255, 0.60) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 91.0% 26.5%, rgba(255, 255, 255, 0.94) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 40.2% 30.8%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 27.9% 33.4%, rgba(255, 255, 255, 0.51) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 41.4% 96.5%, rgba(255, 255, 255, 0.61) 0 1px, transparent 1.8px),
    radial-gradient(circle at 11.7% 28.2%, rgba(255, 255, 255, 0.58) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 13.2% 67.7%, rgba(255, 255, 255, 0.50) 0 1px, transparent 1.8px),
    radial-gradient(circle at 85.0% 98.9%, rgba(255, 255, 255, 0.95) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 3.9% 47.1%, rgba(255, 255, 255, 0.52) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 2.9% 80.1%, rgba(255, 255, 255, 0.67) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 9.1% 49.4%, rgba(255, 255, 255, 0.51) 0 1px, transparent 1.8px),
    radial-gradient(circle at 81.9% 40.7%, rgba(255, 255, 255, 0.58) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 16.8% 95.8%, rgba(255, 255, 255, 0.83) 0 1px, transparent 1.8px),
    radial-gradient(circle at 9.5% 25.4%, rgba(255, 255, 255, 0.52) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 94.4% 52.5%, rgba(255, 255, 255, 0.62) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 30.2% 45.7%, rgba(255, 255, 255, 0.56) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 61.1% 31.0%, rgba(255, 255, 255, 0.91) 0 1px, transparent 1.8px),
    radial-gradient(circle at 21.6% 15.8%, rgba(255, 255, 255, 0.69) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 25.9% 25.2%, rgba(255, 255, 255, 0.67) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 56.9% 40.1%, rgba(255, 255, 255, 0.56) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 92.9% 78.9%, rgba(255, 255, 255, 0.71) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 5.2% 79.4%, rgba(255, 255, 255, 0.72) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 97.9% 31.2%, rgba(255, 255, 255, 0.83) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 88.4% 87.2%, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.8px),
    radial-gradient(circle at 89.8% 62.5%, rgba(255, 255, 255, 0.91) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 60.5% 32.1%, rgba(255, 255, 255, 0.95) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 86.5% 86.7%, rgba(255, 255, 255, 0.92) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 31.8% 33.5%, rgba(255, 255, 255, 0.60) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 61.0% 96.3%, rgba(255, 255, 255, 0.90) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 37.3% 41.7%, rgba(255, 255, 255, 0.73) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91.3% 73.1%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.8px),
    radial-gradient(circle at 65.9% 48.3%, rgba(255, 255, 255, 0.86) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 74.4% 48.5%, rgba(255, 255, 255, 0.67) 0 1px, transparent 1.8px),
    radial-gradient(circle at 70.3% 97.7%, rgba(255, 255, 255, 0.87) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 12.8% 71.3%, rgba(255, 255, 255, 0.87) 0 1px, transparent 1.8px),
    radial-gradient(circle at 40.9% 47.4%, rgba(255, 255, 255, 0.61) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 15.5% 25.2%, rgba(255, 255, 255, 0.70) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 79.5% 98.1%, rgba(255, 255, 255, 0.59) 0 1px, transparent 1.8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 32%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 32%, #000 70%);
}
.dusk-line {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
  line-height: 1.3;
  text-align: center;
  color: var(--night-text);
  max-width: 24ch;
  text-wrap: balance;
}

/* Night */

.night {
  position: relative;
  background: var(--night);
  color: var(--night-text);
  --focus: var(--glow);
}
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 2.1% 75.0%, rgba(255, 255, 255, 0.31) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 1.6% 39.6%, rgba(255, 255, 255, 0.28) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 3.4% 45.1%, rgba(255, 255, 255, 0.47) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 97.5% 46.4%, rgba(255, 255, 255, 0.28) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 3.2% 21.9%, rgba(255, 255, 255, 0.59) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 97.9% 26.7%, rgba(255, 255, 255, 0.37) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 97.6% 76.3%, rgba(255, 255, 255, 0.57) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 98.8% 79.4%, rgba(255, 255, 255, 0.44) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 99.0% 15.6%, rgba(255, 255, 255, 0.58) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 2.2% 75.3%, rgba(255, 255, 255, 0.43) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 1.6% 52.2%, rgba(255, 255, 255, 0.36) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 1.9% 30.8%, rgba(255, 255, 255, 0.59) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 2.3% 41.3%, rgba(255, 255, 255, 0.43) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 2.5% 51.6%, rgba(255, 255, 255, 0.44) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 3.6% 68.7%, rgba(255, 255, 255, 0.58) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 99.0% 27.4%, rgba(255, 255, 255, 0.42) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 98.9% 52.4%, rgba(255, 255, 255, 0.32) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 2.5% 69.8%, rgba(255, 255, 255, 0.26) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 96.4% 32.6%, rgba(255, 255, 255, 0.34) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 2.2% 84.5%, rgba(255, 255, 255, 0.50) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 2.8% 37.8%, rgba(255, 255, 255, 0.54) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 2.5% 52.9%, rgba(255, 255, 255, 0.33) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 2.9% 32.0%, rgba(255, 255, 255, 0.56) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 1.3% 88.0%, rgba(255, 255, 255, 0.56) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 96.6% 10.5%, rgba(255, 255, 255, 0.44) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 2.8% 10.4%, rgba(255, 255, 255, 0.57) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 95.0% 0.5%, rgba(255, 255, 255, 0.65) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 97.9% 1.9%, rgba(255, 255, 255, 0.59) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 4.3% 1.7%, rgba(255, 255, 255, 0.61) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 16.1% 0.7%, rgba(255, 255, 255, 0.47) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 17.2% 0.8%, rgba(255, 255, 255, 0.44) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 7.9% 2.1%, rgba(255, 255, 255, 0.43) 0 1px, transparent 1.8px),
    radial-gradient(circle at 11.3% 1.0%, rgba(255, 255, 255, 0.61) 0 1px, transparent 1.8px),
    radial-gradient(circle at 3.3% 1.6%, rgba(255, 255, 255, 0.47) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 73.0% 1.1%, rgba(255, 255, 255, 0.64) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 11.1% 1.8%, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.8px),
    radial-gradient(circle at 79.0% 1.6%, rgba(255, 255, 255, 0.78) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 20.3% 1.4%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 26.8% 2.0%, rgba(255, 255, 255, 0.70) 0 1.2px, transparent 2.0px),
    radial-gradient(circle at 17.4% 2.1%, rgba(255, 255, 255, 0.76) 0 0.8px, transparent 1.6px);
}
.night > * { position: relative; }
.night a { color: var(--glow); }

.carazuri { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 6vw, 80px); }

.wordmark-block { text-align: center; }

.wordmark {
  display: inline-block;
  font-family: var(--round);
  font-weight: 600;
  font-size: clamp(3.5rem, 2rem + 5.4vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--star);
  background: linear-gradient(180deg, #FFF4D6 0%, var(--star) 70%, #FFC93A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 212, 90, 0.38)) drop-shadow(0 0 2px rgba(255, 244, 214, 0.5));
  padding: 0 0.1em;
}

.say-it {
  margin-top: 10px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--night-soft);
}

.carazuri-lead {
  max-width: 52ch;
  margin: 28px auto 0;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--night-text);
}

/* Buddies */

.buddies { margin: clamp(48px, 6vw, 72px) 0 0; }

.buddy-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.buddy-row li {
  width: min(176px, calc(100% / 7));
  mix-blend-mode: lighten;
}
.buddy-row li:nth-child(odd) { transform: translateY(-14px); }
.buddy-row li:nth-child(even) { transform: translateY(14px); }

.buddy-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}

.buddies figcaption {
  margin-top: 28px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--night-soft);
}

/* What's inside */

.inside { margin-top: clamp(72px, 9vw, 112px); }

.inside-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  color: var(--night-text);
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px clamp(40px, 6vw, 88px);
  margin-top: 40px;
}
.area-list li {
  position: relative;
  padding-left: 30px;
  max-width: 32em;
}
.area-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 3px rgba(111, 227, 240, 0.16), 0 0 14px 2px rgba(111, 227, 240, 0.55);
}
.area-list li:nth-child(3n + 2)::before {
  background: var(--star);
  box-shadow: 0 0 0 3px rgba(255, 212, 90, 0.16), 0 0 14px 2px rgba(255, 212, 90, 0.5);
}
.area-list li:nth-child(3n)::before {
  background: #B79BFF;
  box-shadow: 0 0 0 3px rgba(123, 79, 208, 0.3), 0 0 14px 2px rgba(123, 79, 208, 0.75);
}
.area {
  font-family: var(--round);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--glow);
}
.area-list p {
  margin-top: 6px;
  color: var(--night-soft);
}

/* Status and call to action */

.status {
  margin-top: clamp(72px, 9vw, 112px);
  padding: clamp(28px, 4vw, 44px) 0 0;
  border-top: 1px solid rgba(185, 195, 230, 0.22);
  max-width: 40em;
}
.status-text {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--night-text);
  margin-bottom: 24px;
}
.night .button { color: var(--ink); }
.status-note {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--night-soft);
}

/* Early family list form: email and button on one line, stacked on phones */
.early-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.early-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(234, 240, 255, 0.07);
  box-shadow: inset 0 0 0 2px rgba(111, 227, 240, 0.5);
  color: var(--night-text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.2;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.early-input::placeholder { color: rgba(234, 240, 255, 0.62); opacity: 1; }
.early-input:hover { background: rgba(234, 240, 255, 0.1); }
.early-input:focus { outline: none; background: rgba(234, 240, 255, 0.1); box-shadow: inset 0 0 0 2px var(--glow), 0 0 0 4px rgba(111, 227, 240, 0.22); }
.early-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #FF9FCF; }
.early-button { flex: 0 0 auto; border: 0; cursor: pointer; }
.early-button:disabled { cursor: progress; opacity: 0.75; transform: none; }
.early-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.early-note { margin-top: 12px; color: var(--night-text); }
.early-note:empty, .early-done:empty { display: none; }
.early-note.is-error { color: #FFB8DB; }
.early-done {
  position: relative;
  padding-left: 36px;
  font-family: var(--round);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--night-text);
  max-width: 30em;
}
.early-done:focus { outline: none; }
.early-done::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  background: var(--star);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* About and contact */

.about, .contact { padding: clamp(56px, 7vw, 88px) 0; }
.about { border-top: 1px solid rgba(185, 195, 230, 0.12); }

.night h2 { color: var(--night-text); }
.about p, .contact p {
  max-width: 40em;
  color: var(--night-soft);
}
.about h2 + p, .contact h2 + p { margin-top: 20px; }
.contact p { font-size: 1.25rem; color: var(--night-text); }
.contact { padding-bottom: clamp(72px, 9vw, 120px); }

/* Footer */

.site-footer {
  position: relative;
  background: var(--night);
  color: var(--night-soft);
  font-size: 0.9375rem;
  border-top: 1px solid rgba(185, 195, 230, 0.14);
  --focus: var(--glow);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 96.8% 22%, rgba(255, 255, 255, 0.4) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 98.4% 64%, rgba(255, 255, 255, 0.3) 0 0.7px, transparent 1.5px),
    radial-gradient(circle at 1.6% 80%, rgba(255, 255, 255, 0.28) 0 0.8px, transparent 1.6px);
}
.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.footer-inner p { margin: 0; }
.site-footer a { color: var(--glow); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--night-text);
  font-weight: 700;
}
.footer-mark { width: 28px; height: 28px; }
.fonts-credit {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: #9AA6CF;
}

/* Very narrow phones: a little smaller, so the name still fits when a reader widens letter spacing */
@media (max-width: 360px) {
  .wordmark { font-size: 3rem; }
}

/* Trademark sign: small and raised, so it never crowds a name */
.tm { font-size: 0.45em; vertical-align: 0.9em; line-height: 0; }

/* Footer links (Privacy, Terms, Accessibility) and the trademark line */
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-block; padding: 2px 0; }
.footer-legal { flex-basis: 100%; }

/* Plain reading pages: privacy, terms, accessibility, not found */
.page { padding: clamp(16px, 3vw, 40px) 0 clamp(64px, 8vw, 104px); }
.page-inner { max-width: 46em; }
.page h1 {
  max-width: none;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
}
.page-dates { margin-top: 16px; color: var(--ink-soft); }
.page h2 {
  margin-top: 2em;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
}
.page h3 {
  margin-top: 1.5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.page h2 + *, .page h3 + * { margin-top: 0.6em; }
.page-intro { margin-top: 24px; }
.bullets { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.bullets li + li { margin-top: 0.4em; }

/* The short version box */
.summary {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 28px);
  background: #FFFFFF;
  border: 1px solid rgba(42, 127, 134, 0.35);
  border-left: 6px solid var(--solas);
  border-radius: 14px;
}
.summary h2 { margin-top: 0; font-size: 1.5rem; }
.summary .bullets { margin-bottom: 0; }

/* Simple data table: two columns that wrap; scrolls sideways only if it must */
.table-wrap { overflow-x: auto; margin: 1em 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(42, 127, 134, 0.35);
}
.data-table thead th { background: #FFFFFF; border-bottom-width: 2px; }
.data-table tbody th { font-weight: 700; width: 42%; }

.contact-block { font-style: normal; }

/* Phones and small tablets */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 440px; margin-top: 8px; }
  h1 { max-width: 14ch; }
}

@media (max-width: 720px) {
  .principle-grid, .area-list { grid-template-columns: 1fr; }
  .principle h3 { font-size: 1.3125rem; }
  .area { font-size: 1.375rem; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .header-inner { padding-top: 20px; padding-bottom: 20px; }
  .brand-name { font-size: 1.375rem; }
  .hero-lead { font-size: 1.0625rem; margin-top: 20px; }
  .carazuri-lead, .status-text, .contact p { font-size: 1.125rem; }
  .buddy-row { gap: 0; }
  .buddy-row li { width: 30%; margin: 0 -2.5%; }
  .buddy-row li:nth-child(odd) { transform: translateY(-8px); }
  .buddy-row li:nth-child(even) { transform: translateY(8px); }
  .early-row { flex-direction: column; align-items: stretch; }
  .early-input { flex: none; width: 100%; }
  .data-table th, .data-table td { padding: 10px 8px; }
}

/* High contrast (forced colors): the gradient wordmark falls back to plain system text */
@media (forced-colors: active) {
  .wordmark { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; filter: none; }
}

/* Reduced motion: everything still, final state showing */

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

/* Carazuri landing page (/carazuri/), the link target for social pins. */
.landing-hero { padding-top: clamp(40px, 6vw, 72px); }
.landing-cta { margin: 28px 0 0; }
.landing-shots {
  list-style: none;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 28px);
  max-width: 860px;
}
.landing-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.landing-caption {
  text-align: center;
  margin: 16px auto 0;
  max-width: 640px;
  font-size: .95rem;
  color: var(--night-soft);
}
@media (max-width: 560px) {
  .landing-shots { grid-template-columns: 1fr; max-width: 420px; }
}
