/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background: var(--tide);
  color: #fff;
  font-size: var(--fs-1);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease-out);
}
.btn:hover {
  background: var(--tide-dark);
  color: #fff;
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn--lg {
  min-height: 3.75rem;
  padding-inline: 2rem;
  font-size: var(--fs-2);
}
.btn--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--quiet:hover {
  background: var(--ink);
  color: var(--surface);
}
.btn--on-dark {
  background: #fff;
  color: var(--ink);
}
.btn--on-dark:hover {
  background: #e6eeee;
  color: var(--ink);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-2);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo:hover {
  color: var(--ink);
}
.logo svg {
  flex-shrink: 0;
  width: 2rem;
  height: auto;
}
.logo__sun {
  fill: var(--amber);
}
.logo__horizon {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.site-header .btn {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
  white-space: nowrap;
}
@media (max-width: 30em) {
  .site-header .logo {
    font-size: var(--fs-2);
  }
  .site-header .btn {
    padding-inline: 0.75rem;
    font-size: var(--fs-0);
  }
}

.nav {
  display: none;
}
.nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 1rem 0;
  color: var(--ink);
  font-size: var(--fs-1);
  font-weight: 500;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.nav a:hover {
  color: var(--tide);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.nav.is-open {
  display: block;
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  padding: 0 var(--gutter) 0.5rem;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle svg {
  width: 1.1rem;
}
.menu-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--surface);
}

@media (min-width: 48em) {
  .menu-toggle {
    display: none;
  }
  .nav,
  .nav.is-open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: none;
    margin-left: 3rem;
  }
  .nav ul {
    flex-direction: row;
    gap: 2.25rem;
  }
  .nav a {
    padding: 0.5rem 0;
    border: 0;
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 4rem 2.5rem;
  font-size: var(--fs-0);
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: var(--amber);
}
.site-footer .logo {
  color: #fff;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
}
.site-footer__company {
  display: grid;
  gap: 0.25rem;
  font-style: normal;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a,
.site-footer__links button {
  display: inline-block;
  padding: 0.6rem 0;
}
.link-button {
  border: 0;
  background: none;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-button:hover {
  color: var(--amber);
}
.site-footer__copy {
  max-width: none;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

/* Unfilled owner placeholders stay visible */
.ph {
  padding: 0 0.25em;
  color: var(--ink);
  background: rgb(240 163 10 / 0.22);
  border-radius: 4px;
}

/* Cookie consent */
.consent {
  position: fixed;
  inset: auto 0.75rem 0.75rem 0.75rem;
  z-index: 80;
  max-width: 34rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.consent__title {
  font-size: var(--fs-2);
}
.consent__text {
  margin-top: 0.5rem;
  font-size: var(--fs-0);
}
.consent__panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.consent__panel:empty {
  display: none;
}
.consent__always {
  font-size: var(--fs-0);
}
.consent__row {
  font-size: var(--fs-0);
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.consent__actions .btn {
  flex: 1 1 auto;
}
@media (min-width: 48em) {
  .consent {
    inset: auto auto 1.25rem 1.25rem;
  }
}
.site-footer .ph {
  color: #fff;
}

/* Very small phones (320px): keep logo + longer CTA + menu on one line */
@media (max-width: 22.5em) {
  .site-header__bar {
    gap: 0.4rem;
  }
  .site-header .logo {
    gap: 0.35rem;
    font-size: 1rem;
  }
  .site-header .logo svg {
    width: 1.6rem;
  }
  .site-header .btn {
    padding-inline: 0.6rem;
    font-size: 0.8125rem;
  }
  .site-header__actions {
    gap: 0.35rem;
  }
  .menu-toggle {
    width: 2.5rem;
  }
}
