/* Too Much Gelato — landing page
   Colors and type scale carried over verbatim from the design handoff. */

:root {
  --paper:      oklch(0.968 0.012 96);
  --ink:        oklch(0.245 0.03 148);
  --ink-soft:   oklch(0.42 0.03 148);
  --ink-mute:   oklch(0.5 0.04 148);
  --rule:       oklch(0.86 0.02 120);
  --rule-light: oklch(0.9 0.014 120);
  --rule-mid:   oklch(0.87 0.018 120);
  --plate-edge: oklch(0.875 0.018 120);
  --hover-bg:   oklch(0.945 0.018 100);
  --dark:       oklch(0.245 0.032 148);
  --dark-text:  oklch(0.83 0.016 100);
  --dark-rule:  oklch(0.34 0.03 148);
  --dark-mute:  oklch(0.68 0.022 110);

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--serif);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: oklch(0.44 0.055 148);
  text-decoration: none;
  border-bottom: 1px solid oklch(0.8 0.03 148);
}

a:hover {
  color: oklch(0.3 0.045 148);
  border-bottom-color: oklch(0.44 0.055 148);
}

a:focus-visible,
:focus-visible {
  outline: 2px solid oklch(0.44 0.055 148);
  outline-offset: 3px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 76px;
}

/* ---------- masthead ---------- */

.masthead {
  padding-top: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.wordmark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

.status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.44 0.04 148);
  animation: tmgBreathe 6.5s ease-in-out infinite;
  white-space: nowrap;
}

.masthead-rule {
  margin-top: 26px;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
  animation: tmgRule 1.7s cubic-bezier(.22, .7, .2, 1) both;
}

@keyframes tmgRule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes tmgBreathe {
  0%, 100% { opacity: 0.83; }
  50%      { opacity: 1; }
}

/* ---------- eyebrow labels ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- hero ---------- */

.hero {
  padding: 132px 0 104px;
  text-align: center;
}

.hero .eyebrow { margin-bottom: 44px; }

.hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-weight: 300;
  font-size: 84px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-sub {
  margin: 38px auto 0;
  max-width: 38ch;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- image plate ---------- */

.plate {
  position: relative;
  height: 340px;
  overflow: hidden;
  border: 1px solid var(--plate-edge);
  background: url('./assets/plate.jpg') center / cover no-repeat;
}

/* ---------- prose ---------- */

.prose {
  padding: 112px 0 0;
  display: flex;
  justify-content: center;
}

.prose-column {
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.prose-column p {
  margin: 0;
  font-size: 24px;
  line-height: 1.62;
  font-weight: 300;
  text-wrap: pretty;
}

/* ---------- rights list ---------- */

.rights {
  padding: 128px 0 0;
}

.rights .eyebrow { margin-bottom: 36px; }

.rights-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-mid);
  margin: 0;
  padding: 0;
}

.right-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
  padding: 21px 6px;
  border-bottom: 1px solid var(--rule-light);
  transition: background 420ms ease, padding-left 420ms ease;
}

.right-row:hover {
  background: var(--hover-bg);
  padding-left: 16px;
}

.right-name {
  font-size: 26px;
  font-weight: 300;
}

.right-note {
  font-size: 19px;
  font-weight: 300;
  color: oklch(0.46 0.03 148);
  text-align: right;
}

.rights-caveat {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: oklch(0.5 0.03 148);
}

.rights-statutes {
  margin: 30px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.50 0.03 140);
}

/* ---------- closing ---------- */

.closing {
  padding: 150px 0 148px;
  text-align: center;
}

.closing-line {
  margin: 0 auto;
  max-width: 20ch;
  font-size: 48px;
  line-height: 1.22;
  font-weight: 300;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.closing-tag {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark);
  color: oklch(0.9 0.014 96);
  font-family: var(--mono);
}

.site-footer .shell {
  padding: 58px 76px 42px;
}

.footer-notes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 92ch;
}

.footer-notes p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--dark-text);
}

.footer-meta {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-mute);
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: baseline;
}

.footer-links a {
  color: oklch(0.82 0.02 110);
  border-bottom-color: oklch(0.42 0.03 148);
}

.footer-links a:hover {
  color: oklch(0.95 0.012 96);
  border-bottom-color: oklch(0.7 0.05 150);
}

.footer-links .sep { color: oklch(0.60 0.02 130); }

.site-footer :focus-visible { outline-color: oklch(0.8 0.04 150); }

/* ---------- scroll reveal ---------- */

/* Armed from an inline head script so nothing flashes before reveal.js runs. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 1100ms cubic-bezier(.22, .7, .2, 1) var(--reveal-delay, 0ms),
    transform 1100ms cubic-bezier(.22, .7, .2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .shell, .site-footer .shell { padding-left: 48px; padding-right: 48px; }
  .hero { padding: 104px 0 84px; }
  .hero h1 { font-size: 64px; }
  .plate { height: 280px; }
  .prose { padding-top: 92px; }
  .prose-column p { font-size: 22px; }
  .rights { padding-top: 104px; }
  .closing { padding: 120px 0 118px; }
  .closing-line { font-size: 40px; }
}

@media (max-width: 700px) {
  .shell { padding-left: 24px; padding-right: 24px; }
  .site-footer .shell { padding: 48px 24px 36px; }

  .masthead {
    padding-top: 34px;
    align-items: baseline;
    gap: 20px;
  }
  .wordmark { font-size: 11px; letter-spacing: 0.26em; }
  .status { font-size: 10px; letter-spacing: 0.16em; }

  .hero { padding: 76px 0 64px; }
  .hero .eyebrow { margin-bottom: 32px; }
  .hero h1 {
    font-size: 40px;
    max-width: 18ch;
    letter-spacing: -0.02em;
  }
  .hero-sub { font-size: 19px; margin-top: 28px; }

  .plate { height: 200px; }

  .prose { padding-top: 72px; }
  .prose-column { gap: 26px; }
  .prose-column p { font-size: 19px; line-height: 1.6; }

  .rights { padding-top: 80px; }

  /* stack each row so the name and its note do not collide on narrow screens */
  .right-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 4px;
  }
  .right-row:hover { padding-left: 10px; }
  .right-name { font-size: 22px; }
  .right-note { font-size: 16px; text-align: left; }

  .rights-caveat { font-size: 16px; }
  .rights-statutes { font-size: 10px; line-height: 2; }

  .closing { padding: 96px 0 92px; }
  .closing-line { font-size: 30px; max-width: 22ch; }
  .closing-tag { font-size: 11px; letter-spacing: 0.2em; }

  .footer-notes p { font-size: 12px; }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .masthead-rule { animation: none; }
}
