/* Matches apps/web/src/app/globals.css :root + landing layout tokens */
@font-face {
  font-family: 'Antropos';
  src: url('/fonts/AntroposFreefont-BW2G.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --primary: 174 60% 36%;
  --primary-foreground: 0 0% 100%;
  --muted: 210 16% 95%;
  --muted-foreground: 215 16% 40%;
  --accent: 174 50% 92%;
  --accent-foreground: 174 60% 24%;
  --border: 215 16% 88%;
  --radius: 0.5rem;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Antropos', serif;
  --site-header-inner-height: 4.5rem;
}

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

html {
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: 'rlig' 1, 'calt' 1;
  line-height: 1.5;
}

.hc-skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.hc-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.hc-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .hc-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hc-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* —— Header (mirrors SiteHeader) —— */
.hc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: env(safe-area-inset-top, 0px);
}

.hc-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'brand actions'
    'nav nav';
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: var(--site-header-inner-height);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .hc-header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand nav actions';
    gap: 0.75rem;
  }
}

.hc-brand {
  grid-area: brand;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.hc-brand img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.hc-brand-name {
  font-family: var(--font-heading), serif;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .hc-brand-name {
    font-size: 1.25rem;
  }
}

.hc-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 0.65rem;
  border-top: 1px solid hsl(var(--border) / 0.7);
}

@media (min-width: 768px) {
  .hc-nav {
    padding-top: 0;
    border-top: none;
    justify-content: center;
    flex-wrap: nowrap;
    width: auto;
    margin-top: 0;
  }
}

.hc-nav a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.hc-nav a:hover {
  color: hsl(var(--primary));
}

.hc-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .hc-header-actions {
    gap: 0.375rem;
  }
}

.hc-lang-link {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
}

.hc-lang-link:hover {
  color: hsl(var(--primary));
  background: hsl(var(--accent));
}

.hc-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  color: inherit;
}

.hc-btn-ghost:hover {
  background: hsl(var(--accent));
  color: hsl(var(--primary));
}

@media (min-width: 640px) {
  .hc-btn-ghost {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.hc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}

.hc-btn-primary:hover {
  background: hsl(var(--primary) / 0.92);
}

@media (min-width: 640px) {
  .hc-btn-primary {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* —— Main hero band (landing-like gradient strip) —— */
.hc-hero-strip {
  background: linear-gradient(
    to bottom,
    hsl(var(--accent) / 0.85),
    hsl(var(--background))
  );
  padding: 2.5rem 0 1rem;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

@media (min-width: 768px) {
  .hc-hero-strip {
    padding: 3rem 0 1.25rem;
  }
}

.hc-hero-strip h1 {
  margin: 0 auto;
  max-width: 48rem;
  font-family: var(--font-heading), serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hc-hero-strip .hc-lead {
  margin: 1rem auto 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hc-hero-strip .hc-lead {
    font-size: 1.125rem;
  }
}

/* —— Article body —— */
.hc-main {
  flex: 1;
  padding: 60px 0;
}

.hc-article {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.hc-article h2 {
  font-family: var(--font-heading), serif;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hc-article section > h2:first-child {
  margin-top: 0;
}

.hc-card {
  margin-top: 0;
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  box-shadow: 0 1px 2px hsl(var(--foreground) / 0.04);
}

@media (min-width: 640px) {
  .hc-card {
    padding: 1.75rem 1.5rem;
  }
}

.hc-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.hc-article p {
  margin: 0.75rem 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.92);
}

.hc-article a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hc-article a:hover {
  text-decoration-thickness: 2px;
}

.hc-article ul,
.hc-article ol {
  margin: 0.75rem 0;
  padding-left: 1.35rem;
}

.hc-article li {
  margin: 0.35rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.hc-video {
  position: relative;
  margin: 1.5rem 0 0;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  aspect-ratio: 16 / 9;
}

/** Percentage iframe height collapses unless the iframe is anchored in a definite box — required for Vimeo to render reliably */
.hc-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hc-video-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.hc-video-fallback a {
  font-weight: 500;
}

/* —— Footer (mirrors SiteFooter) —— */
.hc-footer {
  margin-top: auto;
  border-top: 1px solid hsl(var(--border));
}

.hc-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .hc-footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.hc-footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

@media (min-width: 768px) {
  .hc-footer-brand {
    justify-content: flex-start;
  }
}

.hc-footer-brand a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.hc-footer-brand a:hover .hc-footer-site {
  color: hsl(var(--primary));
}

.hc-footer-brand img {
  height: 2rem;
  width: auto;
}

.hc-footer-site {
  font-family: var(--font-heading), serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: hsl(var(--foreground));
}

.hc-footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  opacity: 0.95;
}

.hc-footer-partner:hover {
  color: hsl(var(--foreground));
  opacity: 1;
}

.hc-footer-partner img {
  height: 0.875rem;
  width: auto;
}

.hc-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

@media (min-width: 768px) {
  .hc-footer-nav {
    justify-content: flex-end;
  }
}

.hc-footer-nav a {
  color: inherit;
  text-decoration: none;
}

.hc-footer-nav a:hover {
  color: hsl(var(--primary));
}
