/* Placeholder site — palette and type mirror packages/landing (Polipo Identity v3.1). */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jbmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink-deep: #0f1a24;
  --storm: #1f2d3e;
  --slate: #354b62;
  --paper: #ece6dc;
  --paper-warm: color-mix(in srgb, #ece6dc 90%, #354b62);
  --brass: #c8923c;
  --brass-deep: color-mix(in srgb, #c8923c 58%, #050810);
  --mute: color-mix(in srgb, #1f2d3e 55%, transparent);
  --hairline: color-mix(in srgb, #0f1a24 12%, transparent);
  /* Sea tint for the homepage diagonal: pale rose into magenta into violet. */
  --sea-pale: #f1cfdc;
  --sea-pink: #e24fbd;
  --sea-violet: #9a2fd6;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  overflow-x: hidden;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink-deep);
  background-color: var(--paper);
  /* Same fractal paper grain as the landing page. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.10  0 0 0 0 0.14  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: color-mix(in srgb, var(--brass) 25%, transparent);
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.muted {
  color: var(--mute);
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  padding: 28px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.lockup img {
  width: 36px;
  height: 36px;
}

/* Header badge */
.badge {
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--ink-deep);
  color: var(--paper);
}

/* Diagonal sea tint behind header and hero (homepage only). */
.tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(66% 0, 100% 0, 100% 100%, 40% 100%);
  background: linear-gradient(
    112deg,
    var(--sea-pale) 42%,
    color-mix(in srgb, var(--sea-pale) 40%, var(--sea-pink)) 58%,
    var(--sea-pink) 76%,
    var(--sea-violet) 100%
  );
}
/* Light corner top left, parallel to the sea diagonal. */
.corner {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(0 0, 22% 0, 0 85%);
  background: #faf8f4;
}
/* Chart-margin ruler along the right edge. */
.tint::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 28px;
  width: 10px;
  border-right: 1px solid color-mix(in srgb, var(--ink-deep) 22%, transparent);
  background: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ink-deep) 22%, transparent) 0 1px,
    transparent 1px 72px
  );
}

/* Hero */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  padding-top: clamp(8px, 3vh, 48px);
  padding-bottom: clamp(32px, 8vh, 112px);
}
.hero-copy {
  /* Keeps the copy clear of the octopus in the lower right. */
  max-width: min(64rem, 72%);
}
.hero h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.94;
  /* Scales with width and height so the hero fits short viewports too. */
  font-size: clamp(3rem, min(8.6vw, 11vh), 8.5rem);
}
.hero h1 span {
  display: block;
}
.divider {
  width: 64px;
  height: 2px;
  border: 0;
  margin: clamp(20px, 3.5vh, 32px) 0 0;
  background: var(--brass);
}
.lead {
  margin: clamp(18px, 3vh, 28px) 0 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--storm) 85%, transparent);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 4vh, 36px);
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--ink-deep);
  color: var(--paper);
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea-pink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .status::before {
    animation: none;
  }
}
.note {
  margin: 16px 0 0;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mute);
}

.polipo {
  position: absolute;
  z-index: 1;
  right: clamp(0px, 4vw, 64px);
  bottom: 0;
  /* Bound by width and height so it never crowds the copy or gets clipped. */
  width: clamp(240px, min(60vh, calc(100vw - 660px)), 860px);
  /* Takes on the sea tint behind it: line work turns deep violet. */
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 760px) {
  .hero-copy {
    max-width: none;
  }
  .hero-grid {
    padding-top: 24px;
    /* Room for the octopus below the copy. */
    padding-bottom: calc(56vw + 24px);
  }
  .polipo {
    width: 52vw;
    right: 0;
  }
  .tint {
    clip-path: polygon(100% 66%, 100% 100%, 0 100%, 0 84%);
    background: linear-gradient(
      160deg,
      var(--sea-pale) 50%,
      var(--sea-pink) 80%,
      var(--sea-violet) 100%
    );
  }
  .tint::after {
    right: 12px;
  }
  .corner {
    clip-path: polygon(0 0, 78% 0, 0 14%);
  }
}

/* Footer */
.site-footer {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 24px 0;
  position: relative;
  z-index: 3;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer .muted,
.site-footer a {
  text-decoration: none;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}
.site-footer a:hover {
  color: var(--paper);
}

/* Legal pages */
.legal {
  flex: 1;
  padding: 24px 0 96px;
}
.legal article {
  max-width: 44rem;
}
.legal h1 {
  margin: 12px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
}
.legal h2 {
  margin: 48px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
}
.legal h3 {
  margin: 28px 0 0;
  font-size: 1.05rem;
}
.legal p,
.legal li {
  line-height: 1.7;
  color: color-mix(in srgb, var(--storm) 90%, transparent);
}
.legal ul {
  padding-left: 1.2rem;
}
.legal .summary {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 2px solid var(--brass);
  background: color-mix(in srgb, var(--paper-warm) 70%, transparent);
}
.legal .summary p {
  margin: 0;
}
.todo {
  background: color-mix(in srgb, #e5b445 35%, transparent);
  padding: 0 4px;
  border-radius: 2px;
}
