:root {
  color-scheme: light;
  --background: #f4f7f4;
  --surface: #ffffff;
  --surface-strong: #e9efe9;
  --text: #17211b;
  --muted: #5c6b62;
  --line: #cbd7cf;
  --primary: #1f6f55;
  --primary-strong: #124935;
  --accent: #ba5a31;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  font-weight: 750;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 24px 56px;
}

.hero,
.login-shell {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.hero-copy,
.login-copy {
  padding: 12px 0 8px;
}

.eyebrow,
.project-tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 3rem;
  line-height: 1.04;
  margin-bottom: 18px;
  max-width: 720px;
}

h2 {
  font-size: 1.24rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-copy p,
.login-copy p {
  max-width: 680px;
}

.hero-panel,
.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(23, 33, 27, 0.08);
  padding: 24px;
}

.hero-panel {
  align-self: center;
}

.status-dot {
  background: #36a269;
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  margin-right: 8px;
  width: 12px;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.project-media {
  align-items: center;
  background: var(--surface-strong);
  display: flex;
  height: 132px;
  justify-content: center;
}

.project-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-card:nth-child(2) .project-media img,
.project-card:nth-child(3) .project-media img {
  height: 84px;
  object-fit: contain;
  width: 84px;
}

.project-copy,
.project-meta,
.actions {
  padding: 18px;
}

.project-copy {
  flex: 1;
  padding-bottom: 0;
}

.project-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0;
}

.button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.button:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
  transform: translateY(-1px);
}

.button.primary:hover {
  background: var(--primary-strong);
  color: #ffffff;
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(31, 111, 85, 0.24);
  outline-offset: 2px;
}

.button.ghost {
  background: transparent;
}

.button.muted {
  color: var(--muted);
  cursor: not-allowed;
}

.button.full {
  width: 100%;
}

.login-shell {
  min-height: calc(100vh - 184px);
}

.login-panel {
  align-self: center;
}

.login-panel label {
  color: var(--text);
  display: grid;
  font-size: 0.88rem;
  font-weight: 750;
  gap: 8px;
  margin: 18px 0;
}

input {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

.form-error {
  background: #fff1ed;
  border: 1px solid #f0b8a4;
  border-radius: 6px;
  color: #8a2f16;
  padding: 10px 12px;
}

.message-page {
  padding: 80px 0;
}

@media (max-width: 880px) {
  .hero,
  .login-shell,
  .project-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.3rem;
  }

  .topbar {
    padding: 0 18px;
  }

  main {
    padding: 24px 18px 42px;
  }
}
