/*
Theme Name: Henrik Björklund Blog
Theme URI: https://henrikbjorklund.com
Author: Henrik Björklund
Author URI: https://henrikbjorklund.com
Description: A focused blog child theme for Twenty Twenty-Five.
Template: twentytwentyfive
Requires at least: 6.7
Requires PHP: 7.2
Version: 0.1.0
Text Domain: henrik-twentytwentyfive
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 850;
  font-display: swap;
  src: url("assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 850;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.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: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/newsreader-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: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin-ext.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;
}

:root {
  --hb-line: color-mix(in srgb, var(--wp--preset--color--contrast) 15%, transparent);
  --hb-line-strong: color-mix(in srgb, var(--wp--preset--color--contrast) 26%, transparent);
}

body {
  text-rendering: optimizeLegibility;
}

.wp-block-heading,
.wp-block-post-title {
  hyphens: auto;
  overflow-wrap: anywhere;
}

a {
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-1);
  outline-offset: 3px;
}

.hb-site-header {
  border-bottom: 1px solid var(--hb-line);
}

.hb-site-title a {
  text-decoration: none;
}

.hb-site-main {
  min-height: 64vh;
}

.hb-home-intro {
  border-bottom: 1px solid var(--hb-line-strong);
}

.hb-post-row {
  border-bottom: 1px solid var(--hb-line);
}

.hb-post-row .wp-block-post-title a {
  text-decoration: none;
}

.hb-post-row .wp-block-post-title a:hover,
.hb-post-row .wp-block-post-title a:focus {
  text-decoration: underline;
}

.hb-single-header {
  border-bottom: 1px solid var(--hb-line);
}

.hb-entry-content {
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.72;
}

.hb-entry-content > * {
  max-width: 68ch;
}

.hb-entry-content :where(h2, h3, h4) {
  font-family: var(--wp--preset--font-family--newsreader);
  line-height: 1.1;
  margin-top: var(--wp--preset--spacing--60);
}

.hb-entry-content blockquote {
  border-left: 2px solid var(--wp--preset--color--accent-1);
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--newsreader);
  font-size: var(--wp--preset--font-size--x-large);
  line-height: 1.28;
  padding-left: var(--wp--preset--spacing--40);
}

.hb-post-cta {
  border-bottom: 1px solid var(--hb-line-strong);
  border-top: 1px solid var(--hb-line-strong);
}

.hb-post-cta__image picture,
.hb-post-cta__image img {
  display: block;
  width: 100%;
}

.hb-post-cta__image img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.hb-post-cta .wp-block-button__link {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--wp--preset--color--accent-1) 18%, transparent);
}

@media (max-width: 700px) {
  .hb-site-header .wp-block-group {
    align-items: flex-start;
    gap: var(--wp--preset--spacing--30);
  }

  .hb-post-row {
    align-items: flex-start !important;
    flex-direction: column;
  }
}
