/*
Theme Name: Tereza Škraňka
Theme URI: https://terezaskranka.com/
Author: Tereza Škraňka
Author URI: https://terezaskranka.com/
Description: Custom classic theme for Tereza Škraňka’s personal site. Adapted from Human Design ReDefined 2.1.8.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: tereza-skranka
*/

:root {
  --ink: #20131b;
  --soft-ink: #503740;
  --paper: #fff9f7;
  --canvas: #f9eef0;
  --wine: #780b2e;
  --line: #4f18292b;
  --night: #140e12;
  --light: #fff4ee;
  --hot-pink: #ff6dba;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Noto Sans", system-ui, sans-serif;
  --condensed: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --hand: "Nothing You Could Do", cursive;
  --gutter: clamp(22px, 5vw, 80px);
  --tereza-header-height: 61px;
  --tereza-edge: 4vw;
  --site-width: 1240px;
  --page-width: 760px;
}

@media (max-width: 700px) { :root { --tereza-edge: 28px; } }
@media (min-width: 1600px) { :root { --tereza-edge: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.7 var(--body);
}
h1, h2, h3 {
  margin: 0;
  font: 400 1em/1.04 var(--display);
  text-wrap: balance;
}
p { margin: 0 0 1em; }
figure { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .11em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { color: var(--ink); background: #ff9bdc; }

.site-width {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: .625rem;
  left: var(--gutter);
  background: var(--paper);
  padding: .5rem 1rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: relative;
  z-index: 2;
  color: var(--light);
  background: linear-gradient(110deg, #250e17, #130c11 64%);
  border-bottom: 1px solid #fce5e21c;
}
.site-header-inner, .site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.75rem;
}
.site-header-inner {
  width: auto;
  max-width: none;
  min-height: 60px;
  padding: 0 28px;
  padding: 0 var(--tereza-edge);
}
.wordmark {
  flex: none;
  color: var(--light);
  font: 700 1.24rem/1 var(--condensed);
  text-transform: uppercase;
  letter-spacing: .185em;
  text-decoration: none;
}
.wordmark span { color: #ff758c; }
.nav-menu, .footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(1rem, 3.3vw, 2.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { position: relative; }
.site-nav a, .nav-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--light);
  font: 700 1.05rem/1 var(--condensed);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--hot-pink); text-decoration: underline; }
.nav-toggle {
  width: 2.75rem;
  justify-content: center;
  padding: .25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-icon {
  position: relative;
  display: block;
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}
.menu-icon::before { transform: translateY(-5px); }
.menu-icon::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  padding: .35rem .8rem;
  min-width: max-content;
  margin: 0;
  background: #210f18;
  border: 1px solid #fce5e23d;
  list-style: none;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.site-footer {
  padding: 1.55rem 0;
  color: #e2c9ce;
  border-top: 1px solid #fce5e224;
  background: #170d14;
}
.site-footer-inner { flex-wrap: wrap; }
.site-footer small { font-size: .81rem; }
.footer-nav, .footer-legal { font-size: .82rem; }
.footer-nav a, .footer-legal a { color: #ffcbe1; }
.footer-legal { display: flex; flex-wrap: wrap; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-legal a + a { margin-left: 1.2rem; }

.page-content, .archive-list, .blog-index-main {
  width: 89%;
  max-width: var(--page-width);
  width: min(calc(100% - var(--gutter) * 2), var(--page-width));
  margin: 0 auto;
  padding: 4rem 0;
  padding-block: clamp(2.75rem, 7vw, 6rem);
}
.page-content h1, .blog-hero h1 { margin-bottom: .42em; font-size: clamp(2.7rem, 7vw, 5.2rem); }
.page-content h2, .archive-item h2 { margin-block: 1.15em .45em; font-size: clamp(1.85rem, 4vw, 2.8rem); }
.page-content h3 { margin-block: 1em .45em; font-size: 1.6rem; }
.page-content li { padding-block: .15em; }
.page-content blockquote { border-inline-start: 3px solid var(--wine); padding-inline: 1rem; margin-inline: 0; }
.page-content .featured-image { margin-bottom: 1.5rem; }
.page-content .featured-image img { display: block; }
.page-content .post-meta, .post-meta { margin-bottom: .7rem; font-size: .84rem; color: var(--soft-ink); }
.page-content .post-nav, .comments-area { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.page-content .alignwide, .page-content .alignfull { max-width: 100%; }
.page-content iframe { max-width: 100%; }
.blog-index-main { --page-width: 1050px; }
.blog-hero { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.blog-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.blog-card, .archive-item { border: 1px solid var(--line); }
.blog-card-image { display: grid; min-height: 10rem; aspect-ratio: 16/9; background: var(--canvas); color: var(--wine); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image-fallback { place-self: center; font: 400 1.5rem/1 var(--display); }
.blog-card-body, .archive-item { padding: 1.2rem; }
.blog-card h2 { margin-bottom: .4em; font-size: 2rem; }
.archive-item + .archive-item { margin-top: 1rem; }
.pagination { grid-column: 1 / -1; margin-top: 1.5rem; }
.pagination .page-numbers { display: inline-block; padding-inline: .32em; }
input, textarea { max-width: 100%; font: inherit; }
.wp-post-image { height: auto; }
.starter-release-image { width: min(100%, 25rem); display: block; margin-bottom: 1.5rem; }

@media (max-width: 600px) {
  .site-header-inner { flex-wrap: wrap; }
  .site-header-inner .site-nav { width: 100%; padding-bottom: .6rem; }
  .site-nav .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav .sub-menu {
    display: block;
    position: static;
    margin-left: .5rem;
    border: 0;
    border-left: 1px solid #fce5e246;
    padding: 0 .8rem;
    background: transparent;
  }
  .site-nav .sub-menu a { min-height: 2.4rem; }
  .site-footer-inner { align-items: flex-start; }
  .site-footer .footer-legal { flex: 1 0 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@supports not (font-size: clamp(1rem, 2vw, 3rem)) {
  .site-nav .nav-menu > li + li { margin-left: 1.65rem; }
  @media (max-width: 600px) {
    .site-nav .nav-menu > li + li { margin-left: 0; }
  }
}
