*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  background: var(--bg-root, #fff);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg, inherit);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width, 640px);
  margin: 0 auto;
  padding: 0 1rem;
  height: 52px;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  list-style: none;
}

.nav-link {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav-separator {
  margin: 0.25rem 1rem;
}

.main-content {
  flex: 1;
  max-width: var(--max-width, 640px);
  margin: 0 auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  width: 100%;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1rem;
}

.section {
  margin-bottom: 1.75rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.content-item {
  display: block;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

a.content-item:hover {
  border-color: var(--accent);
}

.content-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.content-item-desc {
  font-size: 0.875rem;
  line-height: 1.5;
}

.truncated {
  --truncate-height: 3em;
  --truncate-fade: #fff;
  position: relative;
  max-height: var(--truncate-height);
  overflow: hidden;
  cursor: pointer;
  transition: max-height 0.3s ease;
}

.truncated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5em;
  background: linear-gradient(transparent, var(--truncate-fade));
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.truncated.is-expanded {
  max-height: none;
  cursor: default;
}

.truncated.is-expanded::after {
  opacity: 0;
}
