/*
  SKARA — public site. Values come from docs/skara-site-handoff/design/Main.dc.html (inline
  styles), expressed with the design-system variables only. The only literals are the
  translucent hairlines the mockup itself uses on green (rgba of ivory and gold).
*/

:root {
  /* Height of the header bar: the hero's curve starts above the hero, behind the header. */
  --header-h: 75px;
  --hairline-on-green: rgba(244, 241, 232, .10);
}

/* Below ~640px the navigation wraps under the logo (as in the mockup): a taller header. */
@media (max-width: 639px) {
  :root {
    --header-h: 144px;
  }
}

body {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

/* The mockup's link base: links inherit their colour and turn gold on hover. */
a {
  color: inherit;
}

a:hover {
  color: var(--gold-400);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  /* On Paper, --fg-accent (gold-700) is 4.1–4.4:1 at 11px, below AA: one gold step darker. */
  color: var(--gold-800);
}

:where([data-theme="dark"]) .eyebrow {
  color: var(--fg-accent);
}

/* ---------- Primitives ---------- */

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.logo {
  display: block;
  overflow: visible;
}

/* Button (design system: components/src/Button.jsx), size lg. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-h-lg);
  padding: 0 18px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 14px/1 var(--font-sans);
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
}

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

.btn--primary {
  --btn-bg: var(--action-primary-bg);
  --btn-bg-hover: var(--action-primary-bg-hover);
  --btn-fg: var(--action-primary-fg);
  --btn-border: transparent;
}

.btn--secondary {
  --btn-bg: var(--action-secondary-bg);
  --btn-bg-hover: var(--action-secondary-bg-hover);
  --btn-fg: var(--action-secondary-fg);
  --btn-border: var(--action-secondary-border);
}

.btn--accent {
  --btn-bg: var(--action-accent-bg);
  --btn-bg-hover: var(--action-accent-bg-hover);
  --btn-fg: var(--action-accent-fg);
  --btn-border: transparent;
}

/* Tag (design system: components/src/Tag.jsx), static. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  color: var(--fg-2);
  font: 500 12px/1 var(--font-sans);
  white-space: nowrap;
}

/* Language switch (design system: SegmentedControl, size sm), as links. */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  /* --fg-2 rather than the control's --fg-3: 11px text needs AA contrast. */
  color: var(--fg-2);
  font: 500 11px/1 var(--font-sans);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.lang-switch a:hover {
  background: var(--bg-hover);
  color: var(--fg-1);
}

.lang-switch a[aria-current] {
  background: var(--bg-elevated);
  color: var(--fg-1);
  box-shadow: var(--shadow-sm);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 1;
  background: var(--green-800);
  color: var(--fg-1);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline-on-green);
}

.site-header__logo {
  display: inline-flex;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 14px;
}

.site-nav > a {
  color: rgba(244, 241, 232, .82);
  text-decoration: none;
}

.site-nav > a:hover {
  color: var(--gold-400);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-800);
  color: var(--fg-1);
}

/* The curve's box spans header + hero, as in the mockup; the header covers its top. */
.hero__curve {
  position: absolute;
  top: calc(-1 * var(--header-h));
  left: 0;
  width: 100%;
  height: calc(100% + var(--header-h));
  pointer-events: none;
}

.hero__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
  padding: clamp(72px, 11vw, 152px) 0 clamp(80px, 12vw, 168px);
}

.hero__eyebrow {
  color: var(--gold-400);
}

.hero__title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: var(--ls-display);
  color: var(--ivory-100);
  white-space: pre-line;
}

.hero__text {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero__meta {
  font-size: 13px;
  color: var(--fg-2);
}

/* ---------- Sections (Paper) ---------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--fg-1);
}

.section-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* Approach */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step__icon {
  display: inline-flex;
  color: var(--fg-brand);
}

.step__number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
}

.step__title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: var(--ls-heading);
}

.step__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* Focus */

.focus {
  border-block: 1px solid var(--border-1);
  background: var(--bg-surface-2);
}

.focus__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
  gap: 64px;
}

.focus__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}

.roadmap__label {
  color: var(--fg-2);
}

.roadmap__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audiences {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-2);
}

.audience {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-1);
}

.audience__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--fg-brand);
}

.audience__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audience__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: var(--ls-heading);
}

.audience__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* About */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.person__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--green-800);
  color: var(--gold-400);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.person__id {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person__name {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-1);
}

.person__last {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.person__role {
  font-size: 14px;
  color: var(--fg-2);
}

.person__email {
  padding-top: 16px;
  border-top: 1px solid var(--border-1);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* ---------- Contact (Forest) ---------- */

.contact {
  background: var(--green-800);
  color: var(--fg-1);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-block: clamp(72px, 10vw, 120px);
}

.contact__title {
  max-width: 800px;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: var(--ls-display);
  color: var(--ivory-100);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.contact__email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-300);
  overflow-wrap: anywhere;
}

/* ---------- Footer (Forest) ---------- */

.site-footer {
  border-top: 1px solid rgba(212, 175, 124, .55);
  background: var(--green-900);
  color: var(--fg-2);
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  padding-top: 64px;
}

.footer-brand {
  display: flex;
  flex: 2 1 280px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.footer-brand__line {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-lang__label {
  color: var(--fg-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  font-size: 14px;
}

.footer-col--nav,
.footer-col--legal {
  flex: 1 1 160px;
}

.footer-col--contact {
  flex: 1 1 220px;
}

.footer-col__title {
  padding-bottom: 4px;
  color: var(--gold-400);
}

.footer-col > a,
.footer-col > span {
  color: var(--fg-1);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col > a:hover {
  color: var(--gold-400);
}

.footer-col > .footer-col__muted {
  color: var(--fg-2);
}

.site-footer__bottom {
  padding-block: 40px 32px;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-on-green);
  font-size: 13px;
  color: var(--fg-2);
}

.site-footer__tagline {
  color: inherit;
}

/* ---------- Legal pages ---------- */

.legal__article {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--prose-max);
}

.legal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
}

.legal__body h2 {
  padding-top: 16px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: var(--ls-heading);
  color: var(--fg-1);
}

.legal__body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-1);
}

.legal__body ul,
.legal__body ol {
  padding-left: 1.25em;
  list-style: revert;
}

.legal__body a {
  color: var(--fg-link);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Draft preview ---------- */

.preview-banner {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: 8px clamp(16px, 4vw, 48px);
  background: var(--gold-400);
  color: var(--green-900);
  font: 500 13px/1.3 var(--font-sans);
  text-align: center;
}

.person__avatar--photo {
  object-fit: cover;
  border: 1px solid var(--border-1);
}

/* ---------- Accessibility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link: hidden until focused with the keyboard. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: var(--z-overlay);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--ivory-100);
  color: var(--green-900);
  font: 500 14px/1 var(--font-sans);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}
