@font-face {
  font-family: Karla;
  src: url("/wp-content/themes/extendable/assets/fonts/karla/karla.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

.site-header, .info-page {
  --site-slate: #3f5762;
  --site-deep-slate: #2d3f47;
  --site-light: #f7fafc;
  --site-cream: #f9f6de;
  font-family: Karla, sans-serif;
}

.site-header {
  background: var(--site-slate);
  color: var(--site-light);
}

.site-header-inner {
  box-sizing: border-box;
  width: min(100%, 75rem);
  margin-inline: auto;
  padding: clamp(.8rem, 2vw, 1.35rem) clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.8rem;
}

:is(.site-header nav, .site-header-nav),
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.4rem;
}

.site-header a, .site-footer a {
  color: inherit;
  text-decoration: none;
}

:is(.site-header nav, .site-header-nav) {
  gap: .25rem clamp(1rem, 3vw, 2rem);
}

:is(.site-header nav, .site-header-nav) a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

:is(.site-header nav, .site-header-nav) a[aria-current="page"] {
  font-weight: 700;
}

:is(.site-header nav, .site-header-nav) a:hover {
  opacity: .84;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  text-transform: uppercase;
}

.site-brand img {
  display: block;
  width: clamp(3.25rem, 8vw, 4.6rem);
  height: auto;
}

.info-page {
  margin: 0;
  background: var(--site-slate);
  color: var(--site-light);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}

.info-page * { box-sizing: border-box; }
.info-page a { text-underline-offset: .2em; }
.info-page main {
  max-width: 71rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
}

.info-page main section {
  padding: clamp(1.2rem, 4vw, 2.75rem);
  background: var(--site-deep-slate);
  border-radius: 1.5rem;
}
.info-page main section + section { margin-top: clamp(1rem, 3vw, 2rem); }
.info-page main a { color: var(--site-cream); }
.info-page h1, .info-page h2, .info-page h3 { line-height: 1.15; }
.info-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: .15em 0 .4em; }
.info-page h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 0; }
.info-page h3 { font-size: 1.25rem; }
.info-page .eyebrow { margin: 0 0 .5rem; color: var(--site-cream); }
.info-page section > p, .info-page .profile p { max-width: 45rem; }
.info-page .button {
  display: inline-block;
  background: var(--site-cream);
  color: var(--site-slate);
  padding: .62em 1.15em;
  border-radius: 999px;
  text-decoration: none;
}
.info-page .button:hover { text-decoration: underline; }
.info-page .modules, .info-page .profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}
.info-page .profile { grid-template-columns: 2fr 1fr; align-items: center; }
.info-page .profile img { width: 100%; max-width: 19rem; height: auto; border-radius: 1.25rem; }
.info-page dd { margin: 0 0 .9rem; }
.info-page details { padding: .8rem 0; border-bottom: 1px solid #70818a; }
.info-page summary { cursor: pointer; font-weight: 650; }
.info-page .skip { position: absolute; left: -9999px; }
.info-page .skip:focus { left: 1rem; top: 1rem; background: #fff; color: #2d3f47; padding: .5rem; }
.site-header :focus-visible, .info-page :focus-visible { outline: 3px solid #abd9ed; outline-offset: 3px; }
.site-footer { border-top: 1px solid #70818a; padding: 1.25rem clamp(1rem, 5vw, 3rem); }
.site-footer nav { max-width: 65rem; margin-inline: auto; }
@media (max-width: 42rem) {
  .site-header-inner { justify-content: flex-start; }
  :is(.site-header nav, .site-header-nav) { gap: .15rem 1rem; }
  .info-page .modules, .info-page .profile { grid-template-columns: 1fr; }
  .info-page .profile img { max-width: 15rem; }
}

/* Keep the homepage's original block header and its logo sizing. */
.homepage-header-row .site-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.homepage-header-row .site-header-nav a {
  font-family: Karla, sans-serif;
}

#viimased-kirjutised .article-list {
  list-style: none;
  padding-inline-start: 0;
}

#viimased-kirjutised time {
  white-space: nowrap;
}

@media (max-width: 42rem) {
  .homepage-header-row.homepage-header-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
