:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6f6f6f;
  --hairline: rgba(10, 10, 10, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f2f2f2;
    --muted: #8f8f8f;
    --hairline: rgba(242, 242, 242, 0.16);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Geist", "Host Grotesk", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#dither {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ---- shared chrome ---- */

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 28px 32px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header a:hover {
  opacity: 0.55;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.logo {
  width: min(252px, 60vw);
  height: auto;
  display: block;
}

.logo path {
  fill: currentColor;
}

.contact {
  margin-top: 40px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.contact:hover {
  border-color: var(--fg);
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 32px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--fg);
}

/* ---- home page: footer out of flow so the logo centers on the
   full viewport (the home page has no header to balance it) ---- */

.home {
  position: relative;
}

.home .site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ---- cookie banner ---- */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 16px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  animation: cookie-in 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .cookie-banner {
    background: rgba(18, 18, 18, 0.72);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

.cookie-banner span {
  margin-right: 6px;
  white-space: nowrap;
}

.cookie-banner button {
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.cookie-banner .cookie-decline:hover {
  color: var(--fg);
}

.cookie-banner .cookie-accept {
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
}

.cookie-banner .cookie-accept:hover {
  opacity: 0.85;
}

.cookie-banner--out {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
  }
}

/* ---- legal page ---- */

.legal-main {
  align-items: stretch;
  justify-content: flex-start;
}

.legal {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.legal .mark {
  width: 44px;
  height: auto;
  display: block;
  margin-bottom: 40px;
}

.legal .mark path {
  fill: currentColor;
}

.legal h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.legal .company-details {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.legal h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 36px 0 10px;
}

.legal p {
  margin-bottom: 12px;
  color: var(--fg);
}

.legal ul {
  margin: 0 0 12px 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  border-bottom: 1px solid var(--hairline);
}

.legal a:hover {
  border-color: var(--fg);
}

.legal .updated {
  margin-top: 48px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- brand assets page ---- */

.brand-page .company-details {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.asset {
  margin: 0;
}

.asset-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 8 / 5;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.asset-preview--light {
  background: #ffffff;
}

.asset-preview--dark {
  background: #0a0a0a;
}

.asset-preview img {
  width: 62%;
  height: auto;
  max-height: 60%;
  object-fit: contain;
}

.asset-preview img.asset-square {
  width: auto;
  height: 55%;
}

.asset figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.asset-links {
  display: flex;
  gap: 12px;
}

.asset-links a {
  color: var(--fg);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}

.asset-links a:hover {
  border-color: var(--fg);
}

@media (max-width: 600px) {
  .asset-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer {
    padding: 20px;
  }

  .site-main {
    padding: 40px 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}
