/* Diary of Acronyms — Shared Styles */

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

:root {
  --bone: #F0EBE1;
  --midnight: #151B2B;
  --clay: #C2B8A3;
  --slate: #8A9199;
  --display: 'Anybody', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
  background: var(--bone);
  color: var(--midnight);
  font-size: 19px;
}

body {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--bone);
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

::selection {
  background: var(--midnight);
  color: var(--bone);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(194, 184, 163, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.1rem, 7.5vw, 5.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--midnight);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--midnight);
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--slate);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--slate), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* Sections */
section {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-number {
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.3em;
  color: var(--slate);
  margin-bottom: 2rem;
  display: block;
}

.section-heading {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  color: var(--midnight);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.section-heading em {
  font-style: italic;
  color: var(--midnight);
}

section p {
  color: var(--midnight);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

section p strong {
  color: var(--midnight);
  font-weight: 400;
}

/* Divider */
.divider {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
  opacity: 0.4;
}

.divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clay), transparent);
}

/* Example block */
.example-block {
  background: rgba(194, 184, 163, 0.12);
  border-left: 2px solid var(--clay);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
}

.example-acronym {
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--midnight);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.example-acronym .letter {
  display: inline-block;
}

.example-readings {
  list-style: none;
}

.example-readings li {
  font-family: var(--display);
  font-size: 0.99rem;
  font-style: italic;
  color: var(--slate);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(21, 27, 43, 0.06);
}

.example-readings li:last-child {
  border-bottom: none;
}

.example-readings li span {
  font-family: var(--display);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay);
  margin-left: 1rem;
}

/* CTA / Follow */
.follow-section {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}

.follow-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(194, 184, 163, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.follow-section .section-heading {
  margin-bottom: 1rem;
}

.follow-section p {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--midnight);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(21, 27, 43, 0.2);
  transition: all 0.4s ease;
  position: relative;
}

.ig-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--midnight);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.ig-link:hover {
  color: var(--bone);
  border-color: var(--midnight);
}

.ig-link:hover::before {
  opacity: 1;
}

.ig-icon {
  width: 18px;
  height: 18px;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Shared utility classes */
.mono-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--slate);
  text-transform: uppercase;
}

.mono-label-lg {
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.35em;
  color: var(--slate);
  text-transform: uppercase;
}

.btn-outline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--clay);
  padding: 8px 20px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--midnight);
  color: var(--midnight);
}

.btn-solid {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--bone);
  background: var(--midnight);
  border: 1px solid var(--midnight);
  padding: 8px 20px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-solid:hover {
  background: var(--slate);
  border-color: var(--slate);
}

.input-field {
  font-family: var(--display);
  font-weight: 300;
  color: var(--midnight);
  background: var(--bone);
  border: 1px solid var(--clay);
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-field:focus {
  border-color: var(--midnight);
}

/* Generator-specific */
.gen-wrapper {
  min-height: 100vh;
  background: var(--bone);
  color: var(--midnight);
  font-family: var(--display);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gen-header {
  text-align: center;
  margin-bottom: 48px;
}

.gen-title {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.tone-swatch {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 3px;
  transition: transform 0.15s ease;
}

.tone-swatch.active {
  border: 2px solid var(--midnight) !important;
}

.tone-swatch:hover {
  transform: scale(1.05);
}

.tone-label {
  font-size: 7px;
  letter-spacing: 0.05em;
}

.download-btn {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--midnight);
  background: transparent;
  border: 1px solid rgba(21, 27, 43, 0.2);
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: var(--midnight);
  color: var(--bone);
}

/* Mobile */
@media (max-width: 600px) {
  section { padding: 4rem 1.5rem; }
  .example-block { padding: 1.5rem; }
  .follow-section { padding: 5rem 1.5rem; }
}
