/* taniecweb.pl — Typography — Latin Editorial */

@font-face {
  font-family: "Inter";
  src: url("https://rsms.me/inter/font-files/InterVariable.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+0080-024F, U+1E00-1EFF;
}

/* Fraunces ładowany przez Google Fonts CSS API w head.twig (auto-aktualizowany hash) */

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-normal);
  color: var(--n-700);
  background: var(--n-0);
  text-rendering: optimizeLegibility;
  font-feature-settings:
    "kern" 1,
    "liga" 1,
    "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#main {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--n-900);
  margin: 0 0 var(--s-4);
  font-variation-settings:
    "opsz" 144,
    "SOFT" 50;
}

h1 {
  font-size: var(--t-2xl);
  line-height: var(--lh-tight);
}
h2 {
  font-size: var(--t-xl);
}
h3 {
  font-size: var(--t-lg);
}
h4 {
  font-size: var(--t-md);
  font-family: var(--font-body);
  font-weight: 600;
}

p,
dd {
  font-size: var(--t-md);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--s-4);
}

li {
  font-size: var(--t-md);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.prose li,
.dance-description li,
.lesson-description li {
  margin: 0 0 var(--s-2);
}

p.lead {
  font-size: var(--t-lg);
  color: var(--n-500);
  font-weight: 400;
}

a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}

/* Reset underline for navigation/UI elements where it's not appropriate */
.brand,
.primary-nav a,
.cta,
.dance-card a,
.lessons-list li a,
.lesson-nav a,
.streak-widget,
.theme-toggle,
.glossary-letters a,
.faq-section summary,
.admin-nav a,
.toast-close,
.btn-primary,
.btn-secondary,
.sim-btn,
.tw-widget a {
  text-decoration: none;
}

.dance-card a:hover h2,
.dance-card a:hover h3,
.dance-card a:hover p {
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

ul,
ol {
  padding-left: var(--s-5);
  margin: 0 0 var(--s-4);
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--brand-primary);
  color: var(--n-0);
}
