:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f2f6f4;
  --text: #18211f;
  --muted: #5e6a66;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --border: #dfe7e3;
  --shadow: 0 24px 60px rgba(15, 34, 30, 0.12);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(223, 231, 227, 0.8);
  backdrop-filter: blur(14px);
}

.header-inner,
.brand,
.header-nav,
.footer-inner,
.share-actions {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 72px;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface);
}

.brand-name {
  font-size: 1rem;
  white-space: nowrap;
}

.header-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero {
  padding: 44px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

.hero-logo {
  width: clamp(120px, 28vw, 190px);
  height: auto;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.16);
}

.eyebrow,
.section-kicker,
.quote-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: 0;
}

#hero-title {
  max-width: 100%;
  color: #000000;
  font-size: clamp(2rem, 7.8vw, 1in);
  white-space: nowrap;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
}

h2 {
  font-size: clamp(1.85rem, 5vw, 3rem);
}

.tagline {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.quote-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(28px, 7vw, 56px);
  padding-top: clamp(54px, 8vw, 72px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quote-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--accent);
}

blockquote {
  margin: 0;
}

#quote-text {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.quote-source {
  margin: 26px 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.quote-date {
  position: absolute;
  top: 20px;
  right: clamp(24px, 5vw, 48px);
  max-width: min(72%, 360px);
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: right;
}

.section {
  padding: 56px 0;
}

.section-muted {
  background: var(--surface-soft);
  border-block: 1px solid var(--border);
}

.two-column,
.share-wrap {
  display: grid;
  gap: 24px;
}

.section p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.reminder {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.reminder p {
  margin: 18px auto 0;
}

.share-wrap {
  align-items: start;
}

.share-wrap p {
  margin-top: 16px;
}

.share-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.share-button {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 34, 30, 0.08);
}

.share-button.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.share-button.accent:hover,
.share-button.accent:focus-visible {
  background: var(--accent-dark);
  color: var(--surface);
}

.copy-status {
  min-height: 24px;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.error-card {
  width: min(100% - 32px, 720px);
  padding: clamp(28px, 8vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-card img {
  width: 120px;
  height: auto;
  margin: 0 auto 22px;
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.error-card p {
  margin: 16px auto 0;
  max-width: 540px;
  color: var(--muted);
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--surface);
  font-weight: 800;
}

.home-link:hover,
.home-link:focus-visible {
  background: var(--accent-dark);
  color: var(--surface);
}

@media (min-width: 760px) {
  .hero {
    padding: 72px 0 84px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .two-column {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .share-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .copy-status {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .header-nav {
    display: none;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .share-actions,
  .share-button {
    width: 100%;
  }

  .share-button {
    justify-content: center;
  }

  .quote-date {
    left: 28px;
    right: 28px;
    max-width: none;
    text-align: left;
  }
}

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