:root {
  --navy: #0c2c56;
  --deep-navy: #07101a;
  --green: #005c5c;
  --silver: #c4ced4;
  --cream: #fff6dd;
  --yellow: #ffc528;
  --paper: #ffffff;
  --ink: #07101a;
  --muted: #5f6d7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 92, 92, 0.34), transparent 38%),
    linear-gradient(180deg, var(--navy), var(--deep-navy));
  font-family: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 18px;
}

.site-header {
  margin-bottom: 14px;
  padding: 18px 22px 20px;
  color: var(--paper);
  border: 1px solid rgba(196, 206, 212, 0.38);
  border-top: 5px solid var(--green);
  background: rgba(7, 16, 26, 0.62);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.photo-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-lockup {
  min-width: 0;
}

.kicker,
.score-strip span,
.photo-frame figcaption {
  margin: 0;
  color: var(--silver);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-lockup h1 {
  margin: 7px 0 9px;
  font-size: clamp(2.25rem, 7vw, 5.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.title-lockup p:last-child {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  font-weight: 700;
}

main {
  display: grid;
  align-content: start;
  gap: 16px;
}

.score-strip {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(180px, 1.35fr) minmax(110px, 0.55fr);
  border: 1px solid var(--silver);
  background: var(--cream);
}

.score-strip div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid rgba(12, 44, 86, 0.2);
}

.score-strip div:last-child {
  border-right: 0;
  background: var(--yellow);
}

.score-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
}

.score-strip strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.quote-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.quote-panel {
  display: grid;
  align-content: center;
  min-height: 438px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--silver);
  border-left: 7px solid var(--green);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.setup {
  margin: 0 0 18px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 750;
  line-height: 1.45;
}

.source-line {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.source-line[hidden] {
  display: none;
}

.source-line a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.source-line a + a {
  margin-left: 2px;
}

.source-line a:hover,
.source-line a:focus-visible {
  color: var(--navy);
  outline: 3px solid rgba(255, 197, 40, 0.32);
  outline-offset: 3px;
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
  max-width: 760px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6.2vw, 5.7rem);
  line-height: 1.02;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.controls button {
  min-width: 76px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--paper);
  border: 2px solid var(--green);
  border-radius: 6px;
  background: var(--navy);
  font-weight: 900;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.controls button:hover,
.controls button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  outline: 3px solid rgba(255, 197, 40, 0.32);
  outline-offset: 2px;
}

.controls button:active {
  transform: translateY(1px);
}

.controls .primary {
  min-width: 140px;
  background: var(--green);
}

.photo-frame {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(196, 206, 212, 0.72);
  background: rgba(255, 246, 221, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.photo-crop {
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--green);
  border-radius: 6px;
  background: var(--silver);
}

.photo-frame figcaption {
  color: var(--green);
  text-align: center;
}

.status-message {
  min-height: 1.2em;
  margin: 0;
  color: var(--cream);
  font-weight: 700;
  text-align: center;
}

footer {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 22px, 560px);
    gap: 12px;
    padding-top: 12px;
  }

  .site-header {
    padding: 14px;
  }

  .score-strip,
  .quote-stage {
    grid-template-columns: 1fr;
  }

  .score-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(12, 44, 86, 0.2);
  }

  .score-strip div:last-child {
    border-bottom: 0;
  }

  .photo-frame {
    order: -1;
  }

  .quote-panel {
    min-height: 0;
    padding: 24px;
  }

  blockquote p {
    font-size: clamp(2.2rem, 14vw, 4.2rem);
  }

  .controls {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1fr;
  }

  .controls button {
    min-width: 0;
    padding: 0 10px;
  }
}
