:root {
  --bg: #002e5e;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.85);
  --accent: #00a3e0;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Top-right navigation */
nav.topnav {
  position: absolute;
  top: 12px;
  right: 20px;
}

/* Hamburger toggle button */
.menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--fg);
}

/* Dropdown menu panel */
.topnav .menu {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 8px;
  display: none; /* hidden by default */
  position: absolute;
  right: 0;
  top: 42px;
  min-width: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  z-index: 1000;
}

.topnav.open .menu {
  display: block;
}

.topnav .menu li {
  margin: 0;
}

.topnav .menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}

.topnav .menu a:hover,
.topnav .menu a:focus {
  background: rgba(255,255,255,0.08);
}

.topnav a {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.9;
}

.topnav a:hover,
.topnav a:focus {
  color: var(--accent);
  opacity: 1;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  border: none;
  outline-offset: 4px;
}

.logo-link:hover .logo {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.logo {
  width: 350px;
  height: auto;
  display: block;
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin: 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.tag {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 6px;
  text-align: center;
}

/* Normalize floating (non-heading) text font and size */
.tag,
p,
li,
.footer-card {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* keep only top padding; bottom padding removed so card margin controls spacing */
  padding: 28px 0 0 0;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-title {
  font-weight: 600;
  margin: 0 0 8px 0;
}

.manifesto {
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
footer {
  padding: 0 0 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-card {
  display: block;
  width: 100%;
  text-align: left;
}

footer h3 {
  margin-top: 0;
}

a.email {
  color: var(--accent);
  text-decoration: none;
}

/* Keep stacked single-column layout on all screen sizes */
.col {
  width: 100%;
}

/* Small tweaks */
.manifesto p {
  margin: 0 0 12px 0;
}

/* Contact form extras (safe globally) */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input,
textarea {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  padding: 10px;
  font-size: 1rem;
}

.help {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #00334f;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
