:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #63706c;
  --line: #d7ded9;
  --paper: #fbfcf9;
  --wash: #eef4ee;
  --accent: #0f766e;
  --accent-dark: #124c47;
  --gold: #b8872d;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(24, 33, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(24, 33, 31, 0.12);
  background: rgba(251, 252, 249, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 72px 0 44px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
}

.status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
}

.status-panel > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.status-panel > div:first-child {
  padding-top: 0;
}

.stat {
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
}

.stat-label,
.status-panel p {
  color: var(--muted);
}

.status-panel p {
  margin: 18px 0 0;
}

.notice {
  border: 1px solid #d7c596;
  border-radius: 8px;
  background: #fff8e4;
  color: #4f3c12;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 220px;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  color: var(--muted);
}

.results-bar button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 0 12px;
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}

.essay-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.essay-card h2 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

.meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.description {
  color: #33413d;
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  color: #3f5550;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 9px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.rights {
  color: var(--muted);
  font-size: 12px;
}

.source-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
}

.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding: 44px 0 64px;
}

.method h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.method p {
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 24px max(16px, calc((100vw - 1160px) / 2));
}

@media (max-width: 900px) {
  .header-inner,
  nav,
  .results-bar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .toolbar,
  .method {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding-top: 48px;
  }

  .essay-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .essay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
