/*
 * Laetare landing page: plain CSS, no build step. Values are the design tokens of the application
 * (src/web/src/styles/tokens.css, Figma 01 · Fundamentos): bg/canvas, bg/brand, bg/brand-strong,
 * text/primary, text/brand, text/inverse, radius/12, Display/L (Lora SemiBold 28/36), Label/L
 * (DM Sans SemiBold 16/20), Body/M (DM Sans 15/22). Fonts are the same latin variable fonts the
 * application self-hosts (SIL Open Font License), so the page loads nothing from other origins.
 */
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg-canvas: #f3eeec;
  --bg-brand: #9f2b3c;
  --bg-brand-strong: #862332;
  --text-primary: #1c1c1c;
  --text-brand: #9f2b3c;
  --text-inverse: #ffffff;
  --radius-12: 12px;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 24px 24px;
  text-align: center;
}

.about {
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.about h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.about p {
  margin: 0 0 12px;
}

.virtues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
}

.virtues div {
  padding: 14px 8px;
  border: 1px solid rgba(159, 43, 60, 0.25);
  border-radius: var(--radius-12);
  text-align: center;
}

.virtues dt {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 18px;
}

.virtues dd {
  margin: 2px 0 0;
  color: var(--text-brand);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.logo {
  width: min(55vw, 200px);
  height: auto;
  aspect-ratio: 160 / 165;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.button {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--radius-12);
  background: var(--bg-brand);
  color: var(--text-inverse);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.button:hover {
  background: var(--bg-brand-strong);
}

/* The Instagram address is still the placeholder (see index.html): show no broken button. */
a[href="__INSTAGRAM_URL__"] {
  display: none;
}

.footer {
  padding: 16px 24px 32px;
  text-align: center;
}

.member-link {
  display: inline-block;
  padding: 10px 12px;
  color: var(--text-brand);
  font-size: 13px;
  line-height: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-link:hover {
  color: var(--bg-brand-strong);
}

a:focus-visible {
  outline: 3px solid var(--bg-brand);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .page {
    gap: 28px;
  }
  .about {
    font-size: 16px;
    line-height: 26px;
  }
  h1 {
    font-size: 34px;
    line-height: 42px;
  }
}
