:root {
  --background: #f4f0e8;
  --foreground: #202426;
  --muted: #646c70;
  --line: #d5d0c6;
  --surface: #fbfaf7;
  --surface-strong: #ffffff;
  --accent: #2f6f73;
  --accent-dark: #21545a;
  --accent-soft: #e4f0ee;
  --ink-soft: #343b40;
  --warning: #8c6a27;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 240, 232, 0)),
    var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

.home-page,
.portal-page {
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #25494e;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.brand-name,
.brand-subtitle {
  display: block;
  line-height: 1.2;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.header-nav a {
  min-height: 38px;
  padding: 10px 13px;
  border: 1px solid transparent;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.64);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: stretch;
  gap: 28px;
  width: min(1120px, calc(100% - 40px));
  margin: 44px auto 0;
}

.hero-copy {
  min-height: 456px;
  padding: 64px 0 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.portal-copy h1 {
  max-width: 760px;
  margin: 16px 0 20px;
  color: #1e2427;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 700;
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow),
.portal-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.58;
}

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

.primary-action,
.secondary-action,
.login-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.primary-action,
.login-form button {
  background: var(--accent-dark);
  color: #ffffff;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-dark);
}

.primary-action,
.secondary-action {
  padding: 13px 18px;
}

.operations-panel,
.login-panel {
  border: 1px solid var(--line);
  background: var(--surface);
}

.operations-panel {
  display: flex;
  min-height: 456px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.operations-panel h2,
.updates h2,
.login-heading h2 {
  margin: 10px 0 0;
  color: #22282b;
  font-size: 28px;
  line-height: 1.14;
}

.status-table {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.status-row strong {
  color: var(--foreground);
  font-size: 13px;
  text-align: right;
}

.content-band {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.service-list span {
  min-height: 76px;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.service-list span:last-child {
  border-right: 1px solid var(--line);
}

.updates,
.portal-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 48px auto 0;
}

.updates {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 42px;
  padding-bottom: 54px;
}

.update-grid {
  display: grid;
  gap: 14px;
}

.update-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.update-item h3 {
  margin: 0 0 8px;
  color: #23282b;
  font-size: 17px;
}

.update-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: start;
  gap: 42px;
  padding: 50px 0 70px;
}

.portal-copy {
  padding-top: 28px;
}

.portal-copy h1 {
  font-size: clamp(44px, 6vw, 76px);
}

.notice-list {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin-top: 40px;
}

.notice {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.notice span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.notice p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-panel {
  padding: 28px;
}

.login-heading {
  margin-bottom: 26px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c8c2b7;
  background: var(--surface-strong);
  color: var(--foreground);
  padding: 10px 12px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 115, 0.14);
}

.login-form button {
  width: 100%;
  margin-top: 14px;
  cursor: default;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.login-footnote {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
  }

  .header-nav a {
    flex: 1;
    text-align: center;
  }

  .hero,
  .portal-grid,
  .updates {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 20px;
  }

  .hero-copy,
  .operations-panel {
    min-height: auto;
  }

  .hero-copy {
    padding: 46px 0 42px;
  }

  .hero h1,
  .portal-copy h1 {
    font-size: 48px;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .service-list span:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .site-footer,
  .login-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .updates,
  .portal-grid,
  .service-list,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .brand-name {
    font-size: 15px;
  }

  .header-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1,
  .portal-copy h1 {
    font-size: 40px;
  }

  .hero-copy p:not(.eyebrow),
  .portal-copy > p {
    font-size: 17px;
  }

  .operations-panel,
  .login-panel {
    padding: 22px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list span,
  .service-list span:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
}
