@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=DM+Sans:wght@400;500&display=swap');

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

:root {
  --bg: #faf8f5;
  --fg: #2c2825;
  --fg-secondary: #7a7067;
  --accent: #b8a99a;
  --border: #e8e2db;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---- layout ---- */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

/* ---- typography ---- */

.app-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  margin-bottom: 2.5rem;
}

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--fg);
  font-size: 0.95rem;
}

p.secondary {
  color: var(--fg-secondary);
}

h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ---- links ---- */

a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

a:hover {
  text-decoration-color: var(--fg);
}

/* ---- nav ---- */

.nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

/* ---- footer ---- */

.footer {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  font-size: 0.8rem;
  color: var(--fg-secondary);
}

/* ---- back-link ---- */

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--fg-secondary);
  margin-bottom: 2rem;
}

/* ---- responsive ---- */

@media (max-width: 480px) {
  .app-name {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .page {
    padding-top: 3rem;
  }
}
