/************************************************************
 * GLOBAL TOKENS (minimal for now)
 ************************************************************/

 :root {
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --radius-2: 0.5rem;

    --text-1: 0.9375rem;
    --text-2: 1rem;
    --text-3: 1.125rem;

    --brand-color: #1e293b;
    --border-subtle: #e5e7eb;
    --bg-page: #ffffff;
    --fg-page: #111827;
 }

/************************************************************
 * CSS RESET (targeted + minimal)
 ************************************************************/

 *:before,
 *:after { box-sizing: border-box; }

 html, body {
    padding: 0;
    margin: 0;
 }

 body {
    background: var(--bg-page);
    color: var(--fg-page);
    font: 500 var(--text-2)/1.5 system-ui, -apple-system, Segoe UI, Roboto, "Helvetic Neeue", Arial, "Noto Sans", "Apple color Emoji", "Segoe UI Emoji";
    text-rendering: optimizeLegibility;
 }

/************************************************************
 * HEADER: wrapper + brand
 ************************************************************/
 .site-header {
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-page);
 }

 .header-inner {
    max-width: 1100px;
    margin-inline: auto;
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
 }

 .brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--brand-color);
 }

 .brand-mark {
    font-size: 1.25rem;
    line-height: 1;
 }

 .brand-text {
    font-weight: 700;
    font-size: var(--text-3);
    letter-spacing: 0.2px;
 }

/************************************************************
 * HEADER: nav base layout
 ************************************************************/
 .nav {
    display: flex;
 }

 .nav-list {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
 }

 .nav-link {
    text-decoration: none;
    color: var(--fg-page);
    font-size: var(--text-2);
    font-weight: 500;
 }

 .nav-link:hover {
    text-decoration: underline;
 }

 .nav-link.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
 }

/************************************************************
 * HEADER: actions cluster + theme toggle
 ************************************************************/
 .header-action {
    display: flex;
    align-items: center;
    gap: var(--space-3);
 }

 .nav { margin: auto; }

 .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-2);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: inherit;
    cursor: pointer;
 }

 .theme-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
 }

/************************************************************
 * HEADER: theme select (simple, neutral styling)
 ************************************************************/
 .theme-select-label {
    display: none;
 }

 .theme-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    font: inherit;
    line-height: 1.2;
    padding: 0.4rem 1.75rem 0.4rem 0.6rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2);
    background: transparent;
    color: inherit;
    cursor: pointer;
    min-width: 9.5rem;

    background-image: 
        linear-gradient(transparent, transparent), /* fix for high-contrast modes */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: right 0.55rem center, right 0.55rem center;
    background-size: 10px 7px, 10px 7px;
 }

 .theme-select:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
 }

 


/************************************************************
 * THEME: Dark
 ************************************************************/
/* We already have light tokens in :root. Add a dark theme variant. */
 :root[data-theme="dark"] {
    --bg-page: #0b0f19;
    --fg-page: #e5e7eb;
    --brand-color: #e2e8f0;
    --border-subtle: #1f2937;
    --btn-bg: #0f1f46;
 }

 /************************************************************
 * THEME: Hydaelyn
 * Palette: radiant light blues, soft whites, golden accents
 ************************************************************/
 :root[data-theme="hydaelyn"] {
    --bg-page: #f4faff;     /* very pale blue-white */
    --fg-page: #0d1b2a;     /* deep navy for text */
    --brand-color: #1e5f99; /* rich sky blue */
    --border-subtle: #c2d7eb; /* muted light blue for borders */

    --accent-1: #ffd77b;    /* golden light */
    --accent-2: #a2d2ff;    /* soft cerulean */
 }


/************************************************************
 * THEME: dark — form control adjustments
 ************************************************************/
 :root[data-theme="dark"] .theme-select {
    background-color: var(--bg-page);
    color: var(--fg-page);
    border-color: var(--border-subtle);
 }

 :root[data-theme="dark"] .theme-select option {
    background-color: var(--bg-page);
    color: var(--fg-page);
 }

 :root[data-theme="dark"] .feature-cta {
   color: var(--fg-page);
   background-color: var(--btn-bg);
 }

 :root[data-theme="dark"] .feature-cta:hover {
   background-color: var(--border-subtle);
 }




/************************************************************
 * ACCESSIBILITY UTILITIES
 ************************************************************/
 .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
 }

/************************************************************
 * HERO
 ************************************************************/


      /************************************************************
      * HERO: logo spotlight
      ************************************************************/
      .hero {
         display: flex;
         justify-content: center;
         align-items: center;
         padding: var(--space-4) var(--space-4);
      }

      .hero-inner {
         max-width: 500px;
         width: 100%;
      }

      .hero-logo {
         display: block;
         width: 100%;
         height: auto;
         max-width: 100%;
      }

      /************************************************************
      * HERO: full-height blurred background behind logo
      ************************************************************/
      .hero {
         position: relative;
         overflow: hidden;
         padding: var(--space-4) var(--space-4);
         min-height: clamp(300px, 50vh, 600px); /* controls height so BG extends below logo */
         display: flex;
         justify-content: center;
         align-items: center;

         /* Break out of any container max-width */
         width: 100vw;
         margin-left: calc(-50vw + 50%); /* centers while spanning full width */
      }

      .hero-inner {
         position: relative;
         z-index: 1; /*keeps logo above background */
         max-width: 500px;
         width: 100%;
      }

      /* Background image layer */
      .hero::before {
         content: "";
         position: absolute;
         inset: 0; /*fill the entire hero */
         background-image: var(--hero-bg, url("/assets/brand/logo-background.jpg"));
         background-size: cover;
         background-position: center;
         filter: blur(5px);
         transform: scale(1.06);
         opacity: 1;
         z-index: 0;
         transition: opacity 280ms ease;
         will-change: opacity;
      }



      /************************************************************
      * HERO: cross-fade overlay
      * - ::before = current BG (static)
      * - ::after  = next BG (fades in)
      ************************************************************/
      .hero::after {
         content: "";
         position: absolute;
         inset: 0;
         background-image: var(--hero-bg-next, none);
         background-size: cover;
         background-position: center;
         filter: blur(5px);
         transform: scale(1.06);
         opacity: 0;
         pointer-events: none;
         z-index: 0;
         transition: opacity 280ms ease;
         will-change: opacity;
      }

      .hero.hero--fading::after { opacity: 1; }

      /************************************************************
      * HERO: tagline for coming soon page
      ************************************************************/
      .hero-tagline {
      margin-top: 1rem;              /* space below the logo */
      font-size: 4rem;             /* bigger text */
      font-weight: 700;
      text-align: center;            /* center the text */
      color: var(--fg-page);
      text-shadow: 0 2px 6px rgba(0,0,0,0.6); /* readability */
      }



/************************************************************
 * FOOTER
 ************************************************************/
      .footer {
      text-align: center;
      padding: var(--space-3) var(--space-4);
      font-size: var(--text-1);
      color: var(--fg-page);
      border-top: 1px solid var(--border-subtle);
      }

/************************************************************
 * FEATURE SECTIONS
 ************************************************************/
      .feature {
         padding: var(--space-4) var(--space-4);
      }

      .feature-inner {
         display: grid;
         grid-template-columns: 1fr 1fr;
         gap: var(--space-4);
         align-items: center;
         max-width: 1100px;
         margin: 0 auto;
      }

      /* Reverse layout: text first, image second */
      .feature--reverse .feature-inner {
         grid-template-columns: 1fr 1fr;
      }

      .feature--reverse .feature-media {
         order: 2;
      }

      .feature--reverse .feature-content {
         order: 1;
      }

      /* Image container */
      .feature-media img {
         display: block;
         width: 100%;
         height: auto;
         border-radius: var(--radius-2);
      }

      /* Text content */
      .feature-content {
         display: flex;
         flex-direction: column;
         justify-content: center;
      }

      .feature-title {
         font-size: var(--text-3);
         margin-bottom: var(--space-3);
      }

      .feature-body {
         margin-bottom: var(--space-3);
         line-height: 1.6;
      }

      .feature-cta {
         align-self: flex-start;
         padding: 0.5rem 1rem;
         background-color: var(--brand-color);
         color: white;
         text-decoration: none;
         border-radius: var(--radius-2);
         font-size: var(--text-2);
         transition: background-color 0.2s ease;
      }

      .feature-cta:hover {
         background-color: #334155;
      }

      /* Responsive: stack on small screens */
      @media (max-width: 600px) {
         .feature-inner {
            grid-template-columns: 1fr;
         }
         .feature--reverse .feature-inner {
            grid-template-columns: 1fr;
         }

         .feature-media { order: 1; }
         .feature-content { order: 2; }

         .feature--reverse .feature-media { order: 1; }  /* image first on mobile */
         .feature--reverse .feature-content { order: 2; }/* text second on mobile */

         /* Center text when stacked */
         .feature-content {
            max-width: 42ch;
            margin-inline: auto;
            text-align: center;
         }

         .feature-cta {
            align-self: center;
         }

         .feature {
            padding-left: var(--space-3);
            padding-right: var(--space-3);
         }
      }

      /************************************************************
       * FEATURE: Coming Soon
       ************************************************************/

       /* Style the feature list */
       .feature-list {
         padding-left: 1.25rem;
         margin: 0 0 var(--space-3);
         line-height: 1.5;
       }

       .feature-list li {
         margin-bottom: 0.25rem;
       }

       /* "Coming Soon" note */
       .feature-note {
         display: inline-block;
         background-color: var(--border-subtle);
         color: var(--fg-page);
         font-size: var(--text-1);
         padding: 0.25rem;
         border-radius: var(--radius-2);
         opacity: 0.9;
       }

      /************************************************************
       * FEATURE: scoped spacing reset + consistent title
       ************************************************************/
      /* Remove the browser's default top margin on the first block in the text column,
         and give all blocks consistent spacing */
      .feature-content > * {
         margin: 0 0 var(--space-3);
      }

      .feature-content > *:last-child {
         margin-bottom: 0;
      }

      /* Ensure section titles render the same in every feature block */
      .feature-title {
         margin: 0 0 var(--space-3);
         font-size: var(--text-3);
         line-height: 1.25;
         font-weight: 700;
      }

      /************************************************************
      * FEATURE: normalize title size + alignment
      ************************************************************/

      /* Force consistent heading size across all feature title */
      .feature-title {
         font-size: 1.75rem;
         font-weight: 700;
         margin: 0 0 var(--space-3);
         line-height: 1.3;
      }

      /* Make sure text and image are vertically centered */
      .feature-inner {
         align-items: center;
      }

      /************************************************************
      * FEATURE: reverse alignment fix
      ************************************************************/
      
      /* Make sure reverse sections use the same grid behavior */
      .feature--reverse .feature-inner {
         align-items: center;
      }

      /* Ensure titles are consistent everywhere */
      .feature .feature-title,
      .feature--reverse .feature-title {
         font-size: 1.75rem;
         font-weight: 700;
         margin: 0 0 var(--space-3);
         line-height: 1.3;
      }

body {
  overflow-x: hidden;
}
