:root {
  --bg: #f9f1e6;
  --panel: rgba(255, 243, 233, 0.82);
  --panel-strong: rgba(255, 238, 225, 0.9);
  --surface: rgba(255, 243, 233, 0.82);
  --surface-solid: rgba(255, 248, 242, 0.9);
  --text: #2f211c;
  --muted: #6a5a51;
  --accent: #d86856;
  --accent-strong: #c14c3a;
  --border: #ead8c6;
  --shadow: 0 10px 28px rgba(114, 76, 58, 0.12);
  --glass-glow: 0 0 0 0.5px rgba(255, 240, 230, 0.55);
  --ease-soft: cubic-bezier(0.33, 0.11, 0.22, 1);
  --green: #2fbf71;
  --green-dark: #218e56;
  --green-bg: rgba(47, 191, 113, 0.13);
  --green-border: rgba(47, 191, 113, 0.3);
  --yellow: #e09f3e;
  --yellow-dark: #9a6420;
  --yellow-bg: rgba(224, 159, 62, 0.15);
  --yellow-border: rgba(224, 159, 62, 0.32);
  --red: #c14c3a;
  --red-dark: #963426;
  --red-bg: rgba(193, 76, 58, 0.13);
  --red-border: rgba(193, 76, 58, 0.3);
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("Literata"), url("https://fonts.gstatic.com/s/literata/v35/OD5BuMtqfhs.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 1200px at 18% 12%, rgba(255, 226, 208, 0.55), transparent 60%),
    radial-gradient(980px 980px at 78% 6%, rgba(255, 214, 194, 0.42), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 237, 224, 0.08), rgba(255, 237, 224, 0.08) 1px, transparent 1px, transparent 3px);
  font-family: 'Source Sans Pro', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 10px auto 0;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
              0 1px 0 rgba(255, 243, 233, 0.55),
              var(--shadow);
  backdrop-filter: blur(12px);
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  text-decoration: none;
}

.brand-icon img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(114, 76, 58, 0.14);
}

.topbar-link {
  display: inline-flex;
  width: fit-content;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft);
}

.topbar-link:first-child {
  justify-self: start;
}

.topbar-link:last-child {
  justify-self: end;
}

.topbar-link:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.status-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) 0 28px;
}

.status-hero {
  display: grid;
  gap: 0;
}

.overall-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(255, 240, 230, 0.35);
  border-radius: 16px;
  padding: 15px 18px;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.035em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 30px rgba(114, 76, 58, 0.14);
}

.status-hero:has(.advisory-banner:not([hidden])) .overall-banner {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.banner-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.banner-operational,
.banner-working {
  background: linear-gradient(180deg, #2ab04b, var(--green-dark));
}

.banner-limited {
  background: linear-gradient(180deg, #d99b34, var(--yellow-dark));
}

.banner-outage {
  background: linear-gradient(180deg, #d64b40, var(--red-dark));
}

h1 {
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

h2 {
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

h3 {
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.last-updated {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.status-operational,
.status-working {
  color: var(--green-dark);
  background: var(--green-bg);
  border-color: var(--green-border);
}

.status-limited {
  color: var(--yellow-dark);
  background: var(--yellow-bg);
  border-color: var(--yellow-border);
}

.status-outage {
  color: var(--red-dark);
  background: var(--red-bg);
  border-color: var(--red-border);
}

.current-notices,
.daily-section {
  margin-top: 30px;
}

.advisory-banner {
  justify-self: center;
  width: min(1040px, calc(100% - 80px));
  margin-top: 0;
  border: 1px solid rgba(224, 159, 62, 0.28);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 7px 13px;
  color: var(--yellow-dark);
  background: linear-gradient(180deg, rgba(255, 244, 235, 0.92), rgba(255, 236, 214, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 8px 16px rgba(114, 76, 58, 0.07);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.status-message {
  margin-top: 18px;
  border: 1px solid var(--yellow-border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--yellow-dark);
  background: var(--yellow-bg);
  font-size: 14px;
  font-weight: 700;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title-copy {
  display: grid;
  gap: 0;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(155deg, rgba(255, 243, 233, 0.9), rgba(255, 240, 229, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 20px rgba(114, 76, 58, 0.1);
  backdrop-filter: blur(12px);
}

.notice-card-head,
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notice-meta,
.notice-summary {
  color: var(--muted);
}

.notice-meta {
  font-size: 13px;
  font-weight: 650;
}

.notice-summary {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.65;
}

.notice-timeline {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(80, 68, 58, 0.1);
}

.notice-timeline-title {
  width: fit-content;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.notice-timeline-title::marker {
  color: var(--muted);
}

.notice-timeline[open] .notice-timeline-title {
  margin-bottom: 8px;
}

.notice-timeline-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-update {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid rgba(224, 159, 62, 0.32);
}

.notice-update-time {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.notice-update-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-group {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(255, 243, 233, 0.92), rgba(255, 240, 229, 0.84)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 20px rgba(114, 76, 58, 0.1);
  backdrop-filter: blur(12px);
}

.service-group-wide {
  grid-column: 1 / -1;
}

.service-group h3 {
  margin-bottom: 8px;
}

.service-row {
  padding: 12px 0;
  border-top: 1px solid rgba(80, 68, 58, 0.1);
}

.service-name {
  color: #332b27;
  font-size: 15px;
  font-weight: 700;
}

.status-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 34px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
    padding: 0 18px;
  }

  .topbar-link {
    font-size: 14px;
  }

  .brand-icon img {
    width: 34px;
    height: 34px;
  }

  .status-shell,
  .status-footer {
    width: min(100% - 24px, 1180px);
  }

  .status-shell {
    padding-top: 28px;
  }

  .overall-banner {
    min-height: 54px;
    padding: 14px 15px;
  }

  .advisory-banner {
    width: calc(100% - 36px);
  }

  .notice-card-head,
  .service-row {
    align-items: flex-start;
  }

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