/* Shared public shell: homepage, products, pricing, legal and releases. */
:root {
  --opura-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --opura-serif: Georgia, "Times New Roman", serif;
  --opura-mono: "Azeret Mono", "SFMono-Regular", monospace;
  --opura-shell-text: #f0ede6;
  --opura-shell-muted: #b8b2a8;
  --opura-shell-line: rgba(240, 237, 230, .14);
  --opura-shell-panel: #171811;
  --opura-shell-accent: #f2c77d;
}

body {
  font-family: var(--opura-sans);
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.75rem;
  height: auto;
  gap: normal;
  padding: 0 clamp(1.25rem, 4vw, 4.25rem);
  border-bottom: 1px solid var(--opura-shell-line);
  background: rgba(13, 14, 13, .86);
  color: var(--opura-shell-text);
  font-family: var(--opura-sans);
  font-size: 16px;
  line-height: normal;
  backdrop-filter: blur(12px);
}

.site-header .wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--opura-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: normal;
}

/* Some retained pages carry older, more specific wordmark typography. Keep
   their nested text on the same homepage treatment without changing layout. */
.site-header .wordmark span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.site-header .wordmark::before,
.site-header .wordmark small {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  color: var(--opura-shell-muted);
  font-size: .88rem;
}

.desktop-nav a,
.quiet-action {
  color: inherit;
  transition: color .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.desktop-nav a.is-active,
.quiet-action:hover {
  color: var(--opura-shell-text);
}

.desktop-nav a.is-active::after,
.desktop-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -.35rem;
  left: 0;
  height: 1px;
  background: var(--opura-shell-accent);
  content: "";
}

.desktop-nav a { position: relative; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: .95rem;
}

.quiet-action {
  color: var(--opura-shell-muted);
  font-size: .88rem;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.landing-footer {
  padding: clamp(3.5rem, 7vw, 6.5rem) 1.25rem 1.2rem;
  border-top: 1px solid var(--opura-shell-line);
  background: #090a09;
  color: var(--opura-shell-text);
  font-family: var(--opura-sans);
  font-size: 16px;
  line-height: normal;
}

.footer-wrap { width: min(100%, 73rem); margin: 0 auto; }

.footer-main {
  display: grid;
  grid-template-columns: minmax(12rem, 1.55fr) repeat(3, minmax(7rem, .7fr));
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }

.footer-wordmark {
  font-family: var(--opura-serif);
  font-size: clamp(2.85rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .76;
}

/* Legal documents begin on a light reading surface; keep their shell as dark
   as the homepage header rather than letting the translucent layer tint. */
.legal-page .site-header { background: #0d0e0d; }

/* Releases keep their header in normal document flow, but share the exact
   typography and spacing of the public shell. */
.releases-page .site-header { gap: normal; }

.footer-brand > p {
  max-width: 11rem;
  margin: 1.35rem 0 2rem;
  color: var(--opura-shell-muted);
  font-family: var(--opura-serif);
  font-size: 1.15rem;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--opura-shell-accent);
  font-size: .68rem;
  font-weight: 650;
}

.footer-top-link span { font-size: .9rem; transition: transform .2s ease; }
.footer-top-link:hover span { transform: translateY(-2px); }

.footer-column { display: grid; align-content: start; gap: .65rem; }

.footer-column p {
  margin: 0 0 .55rem;
  color: #8a857b;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: var(--opura-shell-muted);
  font-size: .72rem;
  line-height: 1.4;
  transition: color .18s ease;
}

.footer-column a:hover { color: var(--opura-shell-accent); }

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--opura-shell-line);
  color: #8a857b;
  font-size: .59rem;
  letter-spacing: .025em;
}

.footer-meta p { margin: 0; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 4.25rem; }
  .desktop-nav,
  .quiet-action { display: none; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.2rem;
    padding: .65rem;
    border: 1px solid var(--opura-shell-line);
    background: transparent;
    color: var(--opura-shell-text);
  }
  .site-header .menu-toggle > span {
    grid-area: 1 / 1;
    position: static;
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    background: currentColor;
    transform: none;
    transition: transform .2s ease;
  }
  .site-header .menu-toggle > span:first-child { transform: translateY(-3px); }
  .site-header .menu-toggle > span:last-child { transform: translateY(3px); }
  .site-header .menu-toggle[aria-expanded="true"] > span:first-child { transform: rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] > span:last-child { transform: rotate(-45deg); }
  .site-header .mobile-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    border-bottom: 0 solid var(--opura-shell-line);
    background: var(--opura-shell-panel);
    transition: grid-template-rows .28s ease, border-color .28s ease;
  }
  .site-header .mobile-nav a {
    min-height: 0;
    display: block;
    overflow: hidden;
    padding: 0 1.25rem;
    border-bottom: 0;
    color: var(--opura-shell-muted);
    font-size: 1.06rem;
    line-height: 0;
  }
  .site-header .mobile-nav.is-open {
    grid-template-rows: repeat(5, 1fr);
    padding: .65rem 0;
    border-bottom-width: 1px;
  }
  .site-header .mobile-nav.is-open a { min-height: 2.65rem; line-height: 2.65rem; }
  .site-header .mobile-nav a[aria-current="page"],
  .site-header .mobile-nav a.is-active,
  .site-header .mobile-nav a:last-child { color: var(--opura-shell-accent); }
  .footer-main { grid-template-columns: minmax(12rem, 1.3fr) repeat(3, minmax(6rem, .7fr)); gap: 1.5rem; }
}

@media (max-width: 620px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { margin-bottom: 1.4rem; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

@media (max-width: 480px) {
  .landing-footer { padding-inline: 1.1rem; }
}
