:root {
  --bg: #faf8f4;
  --bg-warm: #fff9f0;
  --bg-card: #ffffff;
  --bg-hover: #f5f0e8;
  --text: #2c2824;
  --text-muted: #6b6358;
  --accent: #5a9e6f;
  --accent-light: #e8f4ec;
  --accent-dark: #3d7a52;
  --accent-glow: rgba(90, 158, 111, 0.18);
  --sun: #f5c842;
  --sun-glow: rgba(245, 200, 66, 0.25);
  --border: #e8e2d8;
  --shadow: 0 2px 12px rgba(44, 40, 36, 0.06);
  --shadow-lg: 0 12px 40px rgba(44, 40, 36, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: linear-gradient(165deg, var(--bg-warm) 0%, var(--bg) 45%, #f0ebe3 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.sun-glow {
  position: fixed;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Hero */
.hero {
  margin-bottom: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.brand-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px var(--sun-glow));
}

.brand h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1rem;
  color: var(--accent-dark);
  font-weight: 500;
  margin-top: 0.15rem;
}

.intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Apps */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.app-grid {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.app-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.app-icon {
  grid-row: 1 / -1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  font-size: 1.25rem;
  line-height: 1;
}

.app-card--muted .app-icon {
  background: #f0ebe3;
}

.app-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.app-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.shadow-nod {
  font-style: italic;
  color: #8a8278;
}

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

@media (max-width: 380px) {
  .page {
    padding-top: 1.75rem;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
