/* paper_indigo — top-brand-network.org */

:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-alt: #EEF1F8;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #0EA5E9;
  --accent: #F97316;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: rgba(17, 24, 39, 0.10);
  --radius: 12px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  --shadow: 0 12px 40px rgba(79, 70, 229, 0.08);
  --max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79, 70, 229, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(14, 165, 233, 0.10), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(249, 115, 22, 0.06), transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(17, 24, 39, 0.015) 48px,
      rgba(17, 24, 39, 0.015) 49px
    );
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* Main / Hero */

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  min-height: calc(100vh - 180px);
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  text-align: center;
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.75rem;
  background: linear-gradient(120deg, var(--text) 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fade-in 0.9s ease-out 0.15s both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  animation: rise 0.7s ease-out 0.25s both;
}

.hero-copy {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 34em;
  margin: 0 auto 2rem;
  animation: rise 0.7s ease-out 0.35s both;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  animation: rise 0.7s ease-out 0.45s both;
}

.notify label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notify input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.notify input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify button {
  flex: 0 0 auto;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify button:hover {
  background: var(--primary-hover);
}

.notify button:active {
  transform: scale(0.98);
}

.notify-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: rise 0.7s ease-out 0.55s both;
}

.notify-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--primary);
  min-height: 1.4em;
}

/* Legal pages */

.legal-page {
  padding: 2.5rem 1.5rem 4rem;
}

.legal-inner {
  max-width: 680px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-inner h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.legal-inner p,
.legal-inner li {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.legal-inner ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-inner li {
  margin-bottom: 0.4rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(17, 24, 39, 0.08);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-text {
  flex: 1 1 240px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-text a {
  white-space: nowrap;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-accept {
  border: none;
  background: var(--primary);
  color: #fff;
}

.btn-accept:hover {
  background: var(--primary-hover);
}

.btn-decline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}

.btn-decline:hover {
  background: var(--surface-alt);
  color: var(--text);
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 2rem 1.25rem 3rem;
    min-height: auto;
  }

  .notify {
    flex-direction: column;
  }

  .notify button {
    width: 100%;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
