:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --panel-muted: #f9fafb;
  --border: #d0d7de;
  --border-strong: #bfc8d2;
  --text: #24292f;
  --text-muted: #57606a;
  --text-soft: #6e7781;
  --primary: #1f6feb;
  --primary-hover: #1158c7;
  --secondary: #ffffff;
  --shadow: 0 8px 24px rgba(140, 149, 159, 0.18);
  --radius: 10px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #f7f8fa 0%, #eef2f6 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.page-content,
.site-footer__inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand__logo {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.page-content {
  flex: 1;
  padding: 0 0 32px;
}

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 340px);
  gap: 28px;
  align-items: start;
  padding: 52px max(16px, calc((100vw - var(--max-width)) / 2)) 28px;
  background: url("https://terra-weather.com/img/slide1.jpg") center center / cover no-repeat;
}

.hero__copy,
.signin-card,
.repo-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__copy {
  width: 70%;
  min-width: 0;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.signin-card h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  letter-spacing: -0.04em;
}

.hero__lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button:hover {
  text-decoration: none;
}

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

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

.button--secondary {
  background: var(--secondary);
  border-color: var(--border-strong);
  color: var(--text);
}

.button--secondary:hover {
  background: var(--panel-muted);
}

.button--block {
  width: 100%;
}

.signin-card {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.94);
}

.signin-form {
  display: grid;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-field input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form-field input:focus {
  outline: 2px solid rgba(31, 111, 235, 0.22);
  outline-offset: 1px;
  border-color: var(--primary);
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.checkbox-field input {
  margin: 0;
}

.signin-card__footnote {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.repo-section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head__link {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.repo-panel {
  padding: 8px 0;
  overflow: hidden;
}

.repo-status {
  padding: 18px 24px 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.repo-status--error {
  color: #b42318;
}

.repo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.repo-item + .repo-item {
  border-top: 1px solid var(--border);
}

.repo-link {
  display: block;
  padding: 18px 24px;
  color: inherit;
}

.repo-link:hover {
  background: var(--panel-muted);
  text-decoration: none;
}

.repo-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.repo-name {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.repo-meta {
  color: var(--text-soft);
  font-size: 0.86rem;
  white-space: nowrap;
}

.repo-description {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.repo-description:empty {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.site-footer__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__copy {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .page-content,
  .site-footer__inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header__inner {
    min-height: 58px;
  }

  .hero__copy,
  .signin-card {
    padding: 22px;
  }

  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-head,
  .repo-item__top {
    flex-direction: column;
    align-items: start;
  }

  .repo-meta {
    white-space: normal;
  }
}
