/* Atkinson Hyperlegible — body text (latin + Polish) */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — headings (latin + Polish) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fraunces-700-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fraunces-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #142834;
  --ink-soft: #2a4454;
  --paper: #f3f7f4;
  --sky-deep: #1a3a4a;
  --leaf: #3d7a5f;
  --focus: #c45c26;
  --radius: 18px;
  --tap: 76px;
  --font-ui: "Atkinson Hyperlegible", system-ui, "Segoe UI", sans-serif;
  --font-brand: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.top {
  padding: 16px 18px;
  background: #fff;
  border-bottom: 2px solid #d5dde2;
}

.top h1 {
  margin: 0 auto;
  max-width: 700px;
  font-family: var(--font-brand);
  font-size: 36px;
  font-weight: 700;
  color: var(--sky-deep);
  line-height: 1.15;
}

.greeting {
  margin: 6px auto 0;
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.35;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.section {
  margin-bottom: 36px;
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 700;
  color: var(--sky-deep);
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.site {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--tap);
  height: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid #d5dde2;
  text-decoration: none;
}

.site:hover,
.site:focus-visible {
  border-color: var(--leaf);
}

.site:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site__icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 58px;
  text-align: center;
}

.site__text {
  min-width: 0;
}

.site__name {
  display: block;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}

.site__desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 21px;
  }

  .top h1,
  .greeting,
  main {
    max-width: 900px;
  }
}
