:root {
  color-scheme: dark;
  --ink: #0c2a50;
  --ink-2: #174278;
  --ink-3: #3b679e;
  --sky: #bfdbfe;
  --blue-200: #ebf3ff;
  --mist: #f8fbff;
  --paper: #f5f5f5;
  --line: rgba(191, 219, 254, 0.2);
  --sage: #c8d9cb;
  --sun: #f2d477;
  --rose: #e9b1a4;
  --text: #f5f5f5;
  --muted: #bfdbfe;
  --max: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: lowercase;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 42, 80, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 16px 22px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand-mark img {
  width: 28px;
}

.brand-name {
  color: var(--paper);
  font-family: "Roboto Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--blue-200);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.hero-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 auto;
  max-width: var(--max);
  min-height: min(720px, calc(100vh - 72px));
  padding: 82px 22px 76px;
  text-align: center;
}

.eyebrow {
  color: var(--sky);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 36px;
  text-transform: lowercase;
}

h1,
h2,
h3 {
  color: var(--paper);
  font-family: "Roboto Serif", Georgia, serif;
  letter-spacing: 0;
  margin: 0;
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 600px;
}

.hero p {
  color: var(--sky);
  font-size: clamp(16px, 2.7vw, 19px);
  line-height: 1.55;
  margin: 34px 0 0;
  max-width: 560px;
}

.hero-logo {
  margin-top: 22px;
  width: clamp(210px, 48vw, 288px);
}

.hero-button {
  align-items: center;
  background: var(--sky);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  justify-content: center;
  margin-top: 24px;
  min-height: 48px;
  padding: 12px 24px;
  text-decoration: none;
}

.section {
  background: var(--ink);
  padding: 30px 22px 72px;
}

.section.alt {
  background: var(--ink);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.section h2 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600;
  line-height: 1.5;
  max-width: 620px;
}

.lead {
  color: var(--sky);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 620px;
}

.identity-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.identity-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.identity-item strong {
  color: var(--sky);
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: lowercase;
}

.identity-item span,
.identity-item a {
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.app-home {
  display: grid;
  gap: 40px;
}

.reminder {
  background: var(--ink-3);
  border-radius: 16px;
  padding: 24px 20px;
}

.reminder h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.reminder p {
  color: var(--paper);
  font-size: 14px;
  line-height: 1.45;
  margin: 12px 0 0;
}

.home-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-card {
  background-color: var(--paper);
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  min-height: 158px;
  padding: 12px;
}

.home-card h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.home-card-tall {
  grid-row: span 2;
  min-height: 332px;
}

.reset-card {
  background-image: url("assets/reset_bg.png");
}

.meditation-card {
  background-image: url("assets/meditation_bg.png");
}

.wisdom-card {
  background-image: url("assets/wisdom_bg.png");
}

.education-card {
  background-image: url("assets/education_bg.png");
  grid-column: 1 / -1;
  min-height: 120px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--paper);
  padding: 22px 20px;
}

.notice h3 {
  color: var(--paper);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.notice p {
  color: var(--sky);
  line-height: 1.55;
  margin: 10px 0 0;
}

.contact-panel {
  align-items: center;
  background: var(--ink-3);
  border-radius: 16px;
  color: var(--paper);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  padding: 24px 20px;
}

.contact-panel h2 {
  color: var(--mist);
}

.contact-panel p {
  color: #d9e7f8;
}

.button {
  background: var(--sky);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 190px;
  padding: 14px 18px;
  text-decoration: none;
}

.site-footer {
  background: #071f3c;
  color: #d9e7f8;
  padding: 34px 22px;
}

.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #f5f9ff;
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  background: var(--ink);
  color: #d2d2d2;
}

.legal-page .site-header {
  background: rgba(12, 42, 80, 0.94);
}

.legal-page .brand-name,
.legal-page .nav-links a {
  color: var(--mist);
}

.legal-main {
  margin: 0 auto;
  max-width: 900px;
  padding: 72px 22px 92px;
}

.legal-main h1 {
  color: var(--mist);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
}

.updated {
  color: var(--sky);
  font-weight: 800;
  margin: 14px 0 30px;
}

.legal-main section {
  border-top: 1px solid rgba(191, 219, 254, 0.22);
  padding: 26px 0;
}

.legal-main h2 {
  color: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  line-height: 1.3;
}

.legal-main p {
  color: #d2d2d2;
  font-size: 16px;
  line-height: 1.65;
  margin: 12px 0 0;
}

.legal-main a {
  color: var(--sky);
  font-weight: 800;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-logo {
    width: min(288px, 78vw);
  }

  .identity-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 30px 20px 62px;
  }
}
