/*
Theme Name: Harborline Astra Child
Description: Base styles for the Harborline Astra child theme.
Template: astra
Version: 1.0.0
Text Domain: harborline
*/

/* ===== STAGE hl-tokens BEGIN ===== */
:root {
  --hl-bg: #111114;
  --hl-surface: #1A1A1F;
  --hl-surface-2: #24242B;
  --hl-text: #ECE9E3;
  --hl-text-muted: #A9A6B0;
  --hl-accent: #B98AFF;
  --hl-on-accent: #111114;
  --hl-accent-hover: #CDA8FF;
  --hl-success: #6FD49A;
  --hl-border: #33333B;
  --hl-focus: #D9C2FF;
  --hl-danger: #F59A8C;
  --hl-font-head: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --hl-font-body: "Figtree", "Figtree Fallback", system-ui, sans-serif;
  --hl-fs-display: clamp(2.25rem, 1.786rem + 1.905vw, 3.5rem);
  --hl-fs-h1: clamp(2rem, 1.721rem + 1.143vw, 2.75rem);
  --hl-fs-h2: clamp(1.625rem, 1.439rem + 0.762vw, 2.125rem);
  --hl-fs-h3: clamp(1.25rem, 1.157rem + 0.381vw, 1.5rem);
  --hl-fs-lead: clamp(1.1875rem, 1.118rem + 0.286vw, 1.375rem);
  --hl-fs-body: clamp(1.0625rem, 1.039rem + 0.095vw, 1.125rem);
  --hl-fs-small: 0.875rem;
  --hl-fs-price: clamp(2.75rem, 2.471rem + 1.143vw, 3.5rem);
  --hl-measure: 68ch;
  --hl-radius-card: 16px;
  --hl-radius-input: 12px;
  --hl-radius-pill: 999px;
  --hl-header-h: 64px;
  --hl-ease: 200ms ease-out;
}
.hl-paper {
  --hl-bg: #F8F3E9;
  --hl-surface: #EFE8DA;
  --hl-text: #1B1A1F;
  --hl-text-muted: #55525C;
  --hl-accent: #6A3FA8;
  --hl-on-accent: #F8F3E9;
  --hl-accent-hover: #5A3590;
  --hl-border: #E2DDD3;
}
/* ===== STAGE hl-tokens END ===== */

/* ===== STAGE hl-base BEGIN ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--hl-bg);
  color: var(--hl-text);
  font-family: var(--hl-font-body);
  font-size: var(--hl-fs-body);
  line-height: 1.6;
}

.hl-paper {
  background: var(--hl-bg);
  color: var(--hl-text);
  line-height: 1.65;
}

h1,
h2,
h3 {
  color: var(--hl-text);
  font-family: var(--hl-font-head);
}

h1 {
  font-size: var(--hl-fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

h2 {
  font-size: var(--hl-fs-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  font-size: var(--hl-fs-h3);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

h2,
h3 {
  scroll-margin-top: calc(var(--hl-header-h) + 16px);
}

b,
strong {
  font-weight: 600;
}

a {
  color: var(--hl-accent);
}

a:hover,
a:focus {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--hl-focus);
  outline-offset: 2px;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > figure {
  max-width: var(--hl-measure);
}

.ast-container,
.hl-container {
  margin-inline: auto;
  max-width: 1200px;
  padding-inline: 16px;
  width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

::selection {
  background: var(--hl-accent);
  color: var(--hl-on-accent);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body .screen-reader-text:focus {
  background: var(--hl-surface);
  border-radius: var(--hl-radius-input);
  clip: auto;
  clip-path: none;
  color: var(--hl-text);
  display: block;
  font-size: var(--hl-fs-small);
  font-weight: 600;
  height: auto;
  left: 8px;
  line-height: 1.5;
  margin: 0;
  padding: 12px 16px;
  text-decoration: none;
  top: 8px;
  white-space: normal;
  width: auto;
  z-index: 100000;
}

@media (min-width: 768px) {
  .ast-container,
  .hl-container {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --hl-header-h: 72px;
  }

  .ast-container,
  .hl-container {
    padding-inline: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ===== STAGE hl-base END ===== */

/* ===== STAGE hl-buttons BEGIN ===== */
.hl-btn,
.ast-button,
.wp-block-button__link {
  align-items: center;
  background: var(--hl-accent);
  border: 1.5px solid transparent;
  border-radius: var(--hl-radius-pill);
  color: var(--hl-on-accent);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--hl-font-body);
  font-size: clamp(1rem, 0.977rem + 0.095vw, 1.0625rem);
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.005em;
  line-height: 1.2;
  min-height: 48px;
  padding: 0 24px;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--hl-ease),
    border-color var(--hl-ease),
    color var(--hl-ease);
}

.hl-btn:hover,
.hl-btn:focus,
.ast-button:hover,
.ast-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--hl-accent-hover);
  color: var(--hl-on-accent);
  text-decoration: none;
}

.hl-btn:active,
.ast-button:active,
.wp-block-button__link:active {
  transform: translateY(1px);
}

.hl-btn--ghost {
  background: transparent;
  border-color: var(--hl-text-muted);
  color: var(--hl-text);
}

.hl-btn--ghost:hover,
.hl-btn--ghost:focus {
  background: var(--hl-surface-2);
  border-color: var(--hl-text-muted);
  color: var(--hl-text);
}

.hl-btn[aria-disabled="true"],
.hl-btn:disabled,
.ast-button[aria-disabled="true"],
.ast-button:disabled,
.wp-block-button__link[aria-disabled="true"] {
  background: var(--hl-surface-2);
  border-color: var(--hl-text-muted);
  color: var(--hl-text-muted);
  cursor: not-allowed;
  transform: none;
}

.hl-note {
  color: var(--hl-text-muted);
  font-family: var(--hl-font-body);
  font-size: var(--hl-fs-small);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 8px;
}
/* ===== STAGE hl-buttons END ===== */

/* ===== STAGE hl-tokens-depth BEGIN ===== */
/* D35 futuristic layer (docs/DESIGN_FUTURISTIC_ADDENDUM_2026-09-29.md section 3). No new hex: every value below is
   a color-mix() of the hl-tokens stage. Derived tokens are declared again on each palette scope, because a custom
   property that uses var() resolves where it is declared, not where it is used. */
:root,
.hl-paper,
body.hl-paper-page .site-content {
  --hl-text-soft: color-mix(in srgb, var(--hl-text) 84%, var(--hl-bg));
  --hl-glass: color-mix(in srgb, var(--hl-surface) 72%, transparent);
  --hl-glass-hi: color-mix(in srgb, var(--hl-text) 9%, transparent);
  --hl-hair: color-mix(in srgb, var(--hl-text) 10%, transparent);
  --hl-grid: color-mix(in srgb, var(--hl-accent) 26%, transparent);
  --hl-bloom: color-mix(in srgb, var(--hl-accent) 30%, transparent);
  --hl-tint: color-mix(in srgb, var(--hl-accent) 9%, var(--hl-surface));
  --hl-lift: 0 18px 40px -18px color-mix(in srgb, var(--hl-accent) 55%, transparent);
  --hl-deep: 0 30px 60px -30px color-mix(in srgb, var(--hl-bg) 90%, transparent);
}

:root {
  --hl-radius-panel: 20px;
  --hl-gutter: 16px;
  --hl-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hl-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --hl-floor-h: 190px;
}

body.hl-home {
  --hl-fs-display: clamp(2.375rem, 1.6rem + 3vw, 3.75rem);
  --hl-fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --hl-fs-lead: clamp(1.125rem, 1.07rem + 0.24vw, 1.3125rem);
  --hl-fs-price: clamp(3rem, 2.6rem + 1.6vw, 4rem);
}

@media (min-width: 768px) {
  :root {
    --hl-gutter: 24px;
    --hl-floor-h: 220px;
  }
}

@media (min-width: 1024px) {
  :root {
    --hl-gutter: 32px;
    --hl-floor-h: 330px;
  }
}
/* ===== STAGE hl-tokens-depth END ===== */

/* ===== STAGE hl-tokens-paper-scope BEGIN ===== */
/* The paper variant (brief 2.2) on the content area of long-read pages. The values repeat the .hl-paper block of the
   hl-tokens stage on purpose: that stage is closed (HARD_RULES 8) and body_class cannot reach the content wrapper.
   Keep both blocks in sync. Header and footer sit outside .site-content and stay dark. */
body.hl-paper-page .site-content {
  --hl-bg: #F8F3E9;
  --hl-surface: #EFE8DA;
  --hl-text: #1B1A1F;
  --hl-text-muted: #55525C;
  --hl-accent: #6A3FA8;
  --hl-on-accent: #F8F3E9;
  --hl-accent-hover: #5A3590;
  --hl-border: #E2DDD3;
  --hl-focus: #6A3FA8;
}
/* ===== STAGE hl-tokens-paper-scope END ===== */
