:root {
  --max-width: 720px;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e6e6e6;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
}

/* Apps dropdown (no-JS, native <details>) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "\25BE";
  font-size: 11px;
  margin-left: 5px;
  vertical-align: middle;
}

.nav-dropdown summary:hover,
.nav-dropdown summary:focus,
.nav-dropdown[open] summary {
  color: var(--accent);
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  min-width: 168px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.nav-dropdown-menu a {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: #f3f4f6;
  color: var(--accent);
}

/* Main */
main {
  flex: 1 0 auto;
  padding: 56px 0;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.tagline {
  font-size: 20px;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 28px;
}

h2 {
  font-size: 20px;
  margin: 36px 0 8px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer p {
  margin: 0;
}

.heart {
  color: #e0245e;
}

@media (max-width: 480px) {
  main {
    padding: 40px 0;
  }
  h1 {
    font-size: 27px;
  }
  .tagline {
    font-size: 18px;
  }
}
