/* Raising Stars · Manifesto · logo petrol teal */

@import url("./tokens.css");

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  min-width: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p {
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(100% - 2 * var(--page-gutter), var(--page-max));
  margin-inline: auto;
}

/* Nav */

.nav-edge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--page-gutter);
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule-hair) solid transparent;
}

.nav-edge.is-scrolled {
  border-bottom-color: var(--color-rule);
}

.nav-edge__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-ink);
}

.nav-edge__brand:hover {
  color: var(--color-ink);
}

.nav-edge__mark {
  height: 2.25rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-edge__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}

.nav-edge__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-switch {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-switch a {
  text-decoration: none;
  color: var(--color-muted);
  padding: var(--space-2xs) var(--space-3xs);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lang-switch a[aria-current="true"] {
  color: var(--color-ink);
  font-weight: 600;
}

.lang-switch .sep {
  color: var(--color-rule);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--color-disabled);
  color: var(--color-muted);
  cursor: not-allowed;
  transform: none;
}

.btn--solid {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn--solid:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--color-accent-hover);
  color: var(--color-accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  box-shadow: inset 0 0 0 var(--rule-thick) var(--color-ink);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--color-ink);
  color: var(--color-paper);
}

.btn--block {
  width: 100%;
}

.btn[data-state="loading"] {
  opacity: 0.7;
  pointer-events: none;
}

.btn[data-state="success"] {
  background: var(--color-success);
  color: var(--color-accent-ink);
}

.btn[data-state="error"] {
  background: var(--color-error);
  color: var(--color-accent-ink);
}

.nav-cta {
  white-space: nowrap;
}

/* Hero */

.hero {
  padding: var(--space-4xl) var(--page-gutter) var(--space-3xl);
  min-height: min(88vh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--color-ink-bleed);
  color: var(--color-paper);
}

.hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__kicker {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--color-paper) 55%, transparent);
  margin: 0 0 var(--space-lg);
}

.hero__title {
  font-size: var(--text-display);
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: var(--space-xl);
}

.hero__title .mark {
  color: var(--color-accent);
}

.hero__lede {
  font-size: var(--text-md);
  line-height: 1.45;
  max-width: 42ch;
  color: color-mix(in oklch, var(--color-paper) 88%, transparent);
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero .btn--ghost {
  color: var(--color-paper);
  box-shadow: inset 0 0 0 var(--rule-thick) var(--color-paper);
}

.hero .btn--ghost:hover {
  background: var(--color-paper);
  color: var(--color-ink-bleed);
}

/* Sections */

.section {
  padding: var(--space-4xl) 0;
}

.section--tint {
  background: var(--color-paper-2);
}

.section__head {
  margin-bottom: var(--space-2xl);
}

.section__title {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  max-width: 16ch;
}

.section__intro {
  margin-top: var(--space-md);
  color: var(--color-ink-2);
  max-width: 48ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.steps__item {
  display: grid;
  grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  min-width: 0;
}

.steps__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}

.steps__title {
  font-size: var(--text-xl);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.steps__body {
  color: var(--color-ink-2);
  margin: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rule-hair);
  background: var(--color-rule);
  border: var(--rule-hair) solid var(--color-rule);
}

.service {
  background: var(--color-paper);
  padding: var(--space-xl);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service--featured {
  background: var(--color-ink-bleed);
  color: var(--color-paper);
}

.service__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.service__title {
  font-size: var(--text-lg);
  text-transform: uppercase;
}

.service__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-xs);
}

.service__list li {
  position: relative;
  padding-left: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-ink-2);
}

.service--featured .service__list li {
  color: color-mix(in oklch, var(--color-paper) 85%, transparent);
}

.service__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-3xl);
  align-items: start;
}

.contact__aside .section__title {
  margin-bottom: var(--space-md);
}

.form {
  display: grid;
  gap: var(--space-md);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.field {
  display: grid;
  gap: var(--space-2xs);
  min-width: 0;
}

.field label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.45;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--color-muted);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-focus);
  outline-offset: 0;
}

.field input.is-error,
.field select.is-error,
.field textarea.is-error {
  border-color: var(--color-error);
}

.field__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}

.field.is-invalid .field__error {
  display: block;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__status {
  min-height: 1.5rem;
  font-size: var(--text-sm);
}

.form__status[data-state="success"] {
  color: var(--color-success);
}

.form__status[data-state="error"] {
  color: var(--color-error);
}

.form__note {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Footer */

.foot-stmt {
  padding: var(--space-4xl) var(--page-gutter) var(--space-xl);
  background: var(--color-ink-bleed);
  color: var(--color-paper);
}

.foot-stmt__brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--color-paper);
  margin-bottom: var(--space-2xl);
}

.foot-stmt__brand-lockup:hover {
  color: var(--color-paper);
}

.foot-stmt__mark {
  width: 2.75rem;
  height: auto;
  display: block;
  filter: brightness(1.15);
}

.foot-stmt__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.foot-stmt__line {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 18ch;
  margin: 0 0 var(--space-2xl);
}

.foot-stmt__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding-block-start: var(--space-lg);
  border-top: var(--rule-hair) solid color-mix(in oklch, var(--color-paper) 25%, transparent);
}

.foot-stmt__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.foot-stmt__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
}

.foot-stmt__links a {
  text-decoration: none;
  color: color-mix(in oklch, var(--color-paper) 75%, transparent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot-stmt__links a:hover {
  color: var(--color-paper);
}

.foot-stmt__copy {
  width: 100%;
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: color-mix(in oklch, var(--color-paper) 55%, transparent);
}

.legal {
  padding: var(--space-3xl) 0 var(--space-5xl);
}

.legal h1 {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.legal h2 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  margin: var(--space-2xl) 0 var(--space-md);
}

.legal p,
.legal li {
  color: var(--color-ink-2);
}

.placeholder {
  display: inline-block;
  padding: 0 var(--space-2xs);
  background: var(--color-paper-3);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

@media (max-width: 60rem) {
  .services {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .steps__item {
    grid-template-columns: minmax(0, 4rem) minmax(0, 1fr);
  }
}

@media (max-width: 40rem) {
  .nav-edge__mark {
    height: 1.85rem;
  }

  .nav-edge__wordmark {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .steps__item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-3xl);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
