@import "https://assets-proxy.multilipi.workers.dev/assets-proxy.multilipi.workers.dev/fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;800&family=Space+Mono:wght@400;700&display=swap";

:root {
  --bg: #f6f3ee;
  --bg-2: #ebe5d8;
  --ink: #1e252b;
  --ink-soft: #52616f;
  --brand: #1d7a85;
  --accent: #c4673b;
  --ok: #2e8b57;
  --warn: #b55900;
  --danger: #b23a48;
  --card: #fffdfa;
  --line: #d7cfc1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 37, 43, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, #ffefd2 0, transparent 25%),
    radial-gradient(circle at 80% 6%, #dceef1 0, transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 99;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(246, 243, 238, 0.85);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--brand);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.active {
  background: #dbe8ea;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 50px;
}

.hero {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff9ed, #e8f1f2);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding: 18px;
}

.hero h1 {
  margin: 6px 0;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
}

.mono {
  font-family: 'Space Mono', monospace;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e252b;
  color: #fefcf6;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.inline-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}

.btn,
button,
input[type='submit'],
input[type='button'] {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn,
button.primary {
  background: var(--brand);
  color: white;
}

button.alt,
.btn.alt {
  background: #f5decf;
  color: #3c2f23;
}

button.warn {
  background: #ffd6b8;
  color: #542f00;
}

button.danger {
  background: #ffd0d6;
  color: #560b16;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8bdab;
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  font-family: inherit;
  padding: 10px;
  margin-bottom: 12px;
}

fieldset {
  border: 1px solid #cabda8;
  border-radius: 12px;
  margin-bottom: 12px;
}

legend {
  padding: 0 8px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table th,
table td {
  border: 1px solid #d8cebf;
  padding: 8px;
  text-align: left;
}

table th {
  background: #efe7d8;
}

details {
  border: 1px solid #d4cab9;
  border-radius: 10px;
  padding: 10px;
  background: #fffcf6;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.notice {
  border-left: 4px solid var(--brand);
  padding: 10px;
  background: #edf7f8;
  border-radius: 8px;
  margin: 10px 0;
}

.traffic {
  display: flex;
  gap: 8px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.danger { background: var(--danger); }

iframe {
  width: 100%;
  min-height: 220px;
  border: 1px solid #c9bfaf;
  border-radius: 12px;
  background: white;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-panel {
  display: none;
  margin-top: 10px;
}

.tab-panel.active {
  display: block;
}

.flex {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.col {
  flex: 1 1 280px;
}

small,
.muted {
  color: var(--ink-soft);
}

.footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.6s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.07s; }
.reveal:nth-child(3) { animation-delay: 0.14s; }
.reveal:nth-child(4) { animation-delay: 0.21s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}
