﻿/*
Theme Name: Kvaskovna
Theme URI: https://localhost/
Author: Kvaskovna
Description: Homepage theme for Kvaskovna based on the supplied design package.
Version: 1.0.64
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: kvaskovna
*/

:root {
  --bg: #fbf7ef;
  --header: #fffaf1;
  --surface: #fffdf8;
  --soft: #f3ebdd;
  --text: #1f1b16;
  --heading: #2b1b12;
  --body: #3e3028;
  --muted: #6f6254;
  --line: #d8c9b7;
  --accent: #245344;
  --accent-dark: #193d32;
  --accent-soft: #e7f0ea;
  --icon: #74451f;
  --shadow: 0 14px 34px rgba(31, 27, 22, 0.14);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { margin: 0 !important; }

body {
  margin: 0;
  background: linear-gradient(180deg, #fffaf1 0, var(--bg) 54%, #f9f1e5 100%);
  color: var(--text);
  font-family: var(--sans);
}

body.admin-bar .site-header { margin-top: 32px; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

a,
button,
.tool-card,
.hero-media > img,
.benefit {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.site-header,
.hero,
.homepage-overview,
.tools,
.how-it-works,
.benefits,
.site-footer,
.mobile-panel {
  width: min(1410px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  height: 158px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 240px minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
  border-bottom: 1px solid rgba(216, 201, 183, 0.68);
}

.brand {
  align-self: end;
  justify-self: center;
  width: 210px;
  height: 210px;
  overflow: hidden;
  border-radius: 999px;
  transform: translateY(56px);
  z-index: 6;
}

.brand img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  transform: scale(1.42);
  box-shadow: none;
}

.brand img.brand-custom-logo {
  object-fit: contain;
  transform: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(34px, 4vw, 72px);
  font-size: 16px;
  font-weight: 650;
}

.desktop-nav ul,
.footer-nav ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav li,
.footer-nav li { display: contents; }

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.desktop-nav a:hover,
.desktop-nav a.is-active { color: var(--accent); }

.desktop-nav a,
.footer-nav a {
  position: relative;
}

.desktop-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.68);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.login-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--heading);
  line-height: 1;
}

.login-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 7px 0;
  background: var(--heading);
}

.mobile-panel {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-panel[hidden] { display: none; }

.mobile-panel a {
  border-bottom: 1px solid rgba(216, 201, 183, 0.66);
  padding: 10px 0;
  font-weight: 700;
}

.mobile-panel .button {
  border-bottom: 0;
  margin-top: 4px;
}

.shell {
  width: min(1410px, calc(100% - 96px));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button:focus-visible,
.menu-toggle:focus-visible,
.desktop-nav a:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid rgba(36, 83, 68, 0.22);
  outline-offset: 4px;
}

.button-secondary {
  background: rgba(255, 253, 248, 0.68);
  color: var(--text);
}

.header-register {
  min-height: 46px;
  padding: 11px 16px;
}

.header-register:hover,
.header-register:focus-visible {
  border-color: var(--accent);
  background: #e8f1ed;
  color: var(--accent-dark);
}

.header-logout {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-logout:hover,
.header-logout:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.button-secondary:hover,
.button-small:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.82fr) minmax(680px, 1.18fr);
  gap: clamp(18px, 2.2vw, 32px);
  align-items: center;
  padding: 88px 0 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 635px;
}

h1 {
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(72px, 6.25vw, 96px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-copy p {
  max-width: 575px;
  margin: 26px 0 0;
  color: var(--body);
  font-size: 22px;
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
  height: 520px;
  margin-left: -72px;
  overflow: hidden;
  background: var(--soft);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media:hover > img {
  transform: scale(1.025);
}

.hero .button-secondary {
  border-color: rgba(216, 201, 183, 0.92);
  background: rgba(255, 253, 248, 0.5);
  color: var(--accent-dark);
  padding-inline: 20px;
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.homepage-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: center;
  margin-top: 24px;
  border-block: 1px solid rgba(216, 201, 183, 0.72);
  padding: 28px 0;
}

.homepage-overview .eyebrow { margin-bottom: 8px; }

.homepage-overview h2 {
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(29px, 2.3vw, 38px);
  line-height: 1.12;
}

.homepage-overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.homepage-overview-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
  font-size: 17px;
  font-weight: 700;
}

.homepage-overview-list li::before {
  content: "\2713";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.stat {
  position: absolute;
  right: clamp(18px, 4vw, 50px);
  display: grid;
  grid-template-columns: 34px auto;
  width: 206px;
  min-width: 206px;
  column-gap: 12px;
  align-items: center;
  border: 1px solid rgba(216, 201, 183, 0.94);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
  padding: 14px 18px;
}

.kvaskovna-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.stat img,
.stat .kvaskovna-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
}

.stat > span:not(.kvaskovna-icon) {
  color: var(--body);
  font-size: 12px;
  font-weight: 750;
}

.stat strong {
  color: var(--heading);
  font-size: 25px;
  line-height: 1.05;
}

.stat-one { top: 31%; }
.stat-two { top: 50%; }
.stat-three { top: 69%; }

.tools { padding: 62px 0 14px; }

.section-title {
  display: grid;
  justify-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(34px, 2.85vw, 46px);
  line-height: 1.1;
}

.section-title::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--icon);
  color: var(--icon);
  margin-top: 12px;
}

.section-title p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  display: grid;
  justify-items: center;
  min-height: 335px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.84);
  padding: 28px 24px 24px;
  text-align: center;
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: rgba(36, 83, 68, 0.58);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 38px rgba(31, 27, 22, 0.12);
  transform: translateY(-5px);
}

.tool-card > img,
.tool-card > .kvaskovna-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 17px;
}

.tool-card:hover > img,
.tool-card:hover > .kvaskovna-icon,
.tool-card:focus-within > img,
.tool-card:focus-within > .kvaskovna-icon {
  transform: translateY(-3px) scale(1.04);
}

.tool-card h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.15;
}

.tool-card p {
  margin: 14px 0 20px;
  color: #51443b;
  font-size: 15.5px;
  line-height: 1.45;
}

.button-small {
  align-self: end;
  min-height: 42px;
  min-width: 112px;
  padding: 9px 16px;
  background: var(--surface);
}

.tool-card:hover .button-small,
.tool-card:focus-within .button-small {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Calculator cards only become primary while the card is being interacted with. */
.tool-grid > .tool-card .button-small {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.tool-grid > .tool-card:hover .button-small,
.tool-grid > .tool-card:focus-within .button-small {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tools-all {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.tools-all-link {
  color: var(--accent-dark);
  font-weight: 800;
}

.tools-all-link.button {
  min-height: 48px;
  padding: 11px 19px;
}

.tools-all-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.tools-all-link:hover span,
.tools-all-link:focus-visible span { transform: translateX(4px); }

.how-it-works {
  padding: 76px 0 36px;
}

.how-it-works .section-title h2 { font-size: clamp(32px, 2.5vw, 40px); }

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works-steps li {
  position: relative;
  min-height: 172px;
  border-top: 1px solid var(--line);
  padding: 24px 8px 0 0;
}

.how-it-works-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 41px;
  right: -14px;
  width: 28px;
  height: 1px;
  background: var(--icon);
}

.how-it-works-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.how-it-works-steps h3 {
  margin: 18px 0 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.1;
}

.how-it-works-steps p {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 14px;
  border-top: 1px solid rgba(216, 201, 183, 0.7);
  padding: 22px 0 30px;
}

.benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
}

.benefit:hover {
  transform: translateY(-2px);
}

.benefit img,
.benefit .kvaskovna-icon {
  width: 48px;
  height: 48px;
}

.benefit span {
  color: var(--heading);
  font-size: 17px;
  line-height: 1.28;
}

.site-footer {
  width: 100%;
  max-width: none;
  margin-top: 24px;
  border-top: 1px solid rgba(216, 201, 183, 0.78);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(243, 235, 221, 0.78));
  padding: 42px 0 0;
}

.footer-inner {
  width: min(1410px, calc(100% - 96px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(150px, 0.56fr) minmax(230px, 0.8fr) minmax(300px, 1fr);
  gap: 36px;
  align-items: start;
}

.footer-brand img {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  object-fit: cover;
  transform: scale(1.34);
  box-shadow: none;
}

.footer-brand img.brand-custom-logo {
  object-fit: contain;
  transform: none;
}

.footer-brand p,
.footer-contact p,
.footer-newsletter p {
  max-width: 470px;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

.footer-nav,
.footer-contact,
.footer-newsletter {
  display: grid;
  gap: 11px;
}

.footer-nav h2,
.footer-contact h2,
.footer-newsletter h2 {
  margin: 0 0 8px;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 25px;
}

.footer-nav a {
  color: var(--body);
  font-weight: 650;
}

.footer-nav a:hover { color: var(--accent); }

.footer-contact .button {
  width: fit-content;
  margin-top: 12px;
}

.footer-bottom {
  width: min(1410px, calc(100% - 96px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  border-top: 1px solid rgba(216, 201, 183, 0.78);
  color: var(--muted);
  font-size: 14px;
  padding: 18px 0;
}

.page-hero {
  padding: 92px 0 42px;
}

.footer-newsletter .newsletter-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.newsletter-form input {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.newsletter-form input::placeholder { color: var(--muted); }

.newsletter-form input:focus-visible {
  outline: 3px solid rgba(36, 83, 68, 0.22);
  outline-offset: 2px;
  border-color: var(--accent);
}

.newsletter-form .button { flex: 0 0 auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hero--calculators {
  padding-bottom: 24px;
}

.page-hero--calculators .lead:empty {
  display: none;
}

.section--calculator-index {
  padding-top: 24px;
}

.page-hero--split {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--body);
  font-size: 22px;
  line-height: 1.55;
}

.hero-photo {
  min-height: 420px;
  overflow: hidden;
  background: var(--soft);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.86);
  padding: 26px;
}

.card h2,
.card h3,
.form-panel h2,
.result-panel h2,
.aside-stack h2,
.aside-stack h3 {
  margin-top: 0;
}

.card h2,
.result-panel h2,
.form-panel h2,
.aside-stack h2 {
  font-size: clamp(30px, 2.4vw, 42px);
}

.card p {
  color: var(--body);
}

.tool-card.card {
  display: grid;
  min-height: 310px;
  justify-items: start;
  gap: 14px;
  text-align: left;
}

.tool-card.card img {
  width: 76px;
  height: 76px;
  margin: 0;
}

.tool-card.card p,
.recipe-card p,
.note,
.meta {
  color: var(--muted);
}

.tool-card.card .button {
  align-self: end;
}

.page-content {
  padding-top: 18px;
}

.entry-content {
  color: var(--body);
  font-size: 18px;
  line-height: 1.62;
}

.entry-content > * {
  max-width: 860px;
}

.entry-content > .kvaskovna-calculator,
.entry-content > .kvaskovna-calculator-index,
.entry-content > .kvaskovna-recipe-wizard,
.entry-content > .kvaskovna-recipes,
.entry-content > .kvaskovna-recipe-form,
.entry-content > .kvaskovna-recipe-detail,
.entry-content > .kvaskovna-recipe-planner {
  max-width: none;
}

.entry-content a {
  color: var(--accent);
  font-weight: 800;
}

.entry-content .kvaskovna-button--primary,
.entry-content .kvaskovna-button--primary:hover,
.entry-content .kvaskovna-button--primary:focus-visible {
  color: #fff;
}

.entry-content p {
  margin: 0 0 18px;
}

.page-content {
  padding-top: 10px;
}

.page-content .entry-content {
  width: 100%;
  max-width: none;
}

.page-content .entry-content > * {
  width: 100%;
  max-width: none;
}

.page-content .entry-content > p:first-child {
  margin-bottom: 10px;
  color: var(--heading);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.42;
}

.page-content .entry-content h2,
.page-content .entry-content h3 {
  margin: 22px 0 0;
  color: var(--heading);
  font-family: var(--serif);
  line-height: 1.12;
}

.page-content .entry-content h2 {
  font-size: clamp(34px, 3vw, 48px);
}

.page-content .entry-content h3 {
  font-size: clamp(28px, 2.4vw, 36px);
}

.page-content .entry-content p {
  margin-bottom: 8px;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  margin: 6px 0 22px;
  padding-left: 1.3em;
}

.page-content .entry-content li {
  margin-bottom: 8px;
}

.page-content .entry-content > figure,
.page-content .entry-content > .wp-block-image,
.page-content .entry-content > .wp-block-gallery,
.page-content .entry-content > .wp-block-media-text,
.page-content .entry-content > p:has(> img) {
  width: 100%;
  margin: 26px 0;
}

.page-content .entry-content > .alignwide,
.page-content .entry-content > .alignfull {
  width: 100%;
}

.page-content .entry-content img {
  width: 100%;
  max-height: 760px;
  border-radius: 8px;
  object-fit: cover;
}

.page-content .entry-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.page-content .entry-content blockquote {
  grid-column: 1 / -1;
  max-width: 920px;
  margin: 36px auto 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(31px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.page-content .entry-content blockquote p {
  margin: 0;
}

.blog-hero h1 {
  max-width: 980px;
}

.blog-archive {
  padding-top: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.blog-card:hover,
.blog-card:focus-within {
  border-color: rgba(36, 83, 68, 0.4);
  box-shadow: 0 18px 38px rgba(31, 27, 22, 0.12);
  transform: translateY(-4px);
}

.blog-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.blog-card:hover .blog-card__media img,
.blog-card:focus-within .blog-card__media img {
  transform: scale(1.035);
}

.blog-card__body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}

.blog-card__meta,
.single-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.blog-card h2 {
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.08;
}

.blog-card h2 a,
.single-post__meta a,
.single-post__nav a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus-visible,
.single-post__meta a:hover,
.single-post__nav a:hover,
.single-post__nav a:focus-visible {
  color: var(--accent);
}

.blog-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.blog-card__facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.blog-card__excerpt {
  color: var(--body);
  line-height: 1.5;
}

.blog-card__excerpt p {
  margin: 0;
}

.blog-card .button {
  justify-self: start;
  min-height: 42px;
  padding: 10px 16px;
}

.navigation.pagination {
  grid-column: 1 / -1;
  margin-top: 34px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--heading);
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.blog-empty {
  max-width: 760px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 32px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.single-post {
  padding: 58px 0 58px;
}

.single-post__header {
  max-width: none;
}

.single-post__header h1 {
  max-width: 1220px;
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 126px);
  line-height: 0.95;
}

.single-post__meta {
  margin-top: 22px;
}

.single-post__image {
  margin: 42px 0 84px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--soft);
}

.single-post__image img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.single-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -54px 0 38px;
  align-items: center;
}

.single-post__actions .button {
  width: auto;
  min-height: 42px;
  padding: 10px 15px;
  font-size: 14px;
}

.single-post__layout {
  display: grid;
  gap: 28px;
}

.single-post__toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  padding: 18px 20px;
}

.single-post__toc h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
}

.single-post__toc nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-post__toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
}

.single-post__toc a:hover,
.single-post__toc a:focus-visible,
.single-post__toc a.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.single-post__content {
  counter-reset: recipe-step;
  width: 100%;
  color: var(--body);
  font-size: 19px;
  line-height: 1.68;
}

.single-post__content > * {
  max-width: none;
}

.single-post__content h2,
.single-post__content h3 {
  color: var(--heading);
  font-family: var(--serif);
  line-height: 1.1;
}

.single-post__content h2 {
  margin: 68px 0 22px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  font-size: clamp(38px, 4vw, 62px);
}

.single-post__content h2:first-child {
  margin-top: 0;
}

.single-post__content h3 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 30px 0 12px;
  font-size: clamp(26px, 2.6vw, 38px);
}

.single-post__content h3::before {
  counter-increment: recipe-step;
  content: counter(recipe-step);
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 900;
}

.single-post__content p {
  margin: 0 0 18px;
}

.single-post__content ul,
.single-post__content ol {
  margin: 8px 0 24px;
  padding-left: 1.35em;
}

.single-post__content li {
  margin-bottom: 8px;
}

.single-post__content h2[id="zakladni-informace"] + ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 34px;
  padding: 0;
  list-style: none;
}

.single-post__content h2[id="zakladni-informace"] + ul li {
  display: grid;
  gap: 8px;
  min-height: 116px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  padding: 18px;
  align-content: center;
  color: var(--heading);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.15;
}

.single-post__content h2[id="zakladni-informace"] + ul li strong {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.single-post__content p:has(> strong) {
  margin: 30px 0 10px;
  color: var(--heading);
  font-weight: 900;
}

.single-post__content h2 + p:has(> strong) {
  margin-top: 0;
}

.single-post__content figure,
.single-post__content .wp-block-image {
  margin: 32px 0;
}

.single-post__content img {
  width: 100%;
  border-radius: 8px;
}

.single-post__content details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  margin: 12px 0;
  padding: 0;
}

.single-post__content summary {
  cursor: pointer;
  color: var(--heading);
  font-weight: 900;
  padding: 16px 18px;
}

.single-post__content details[open] summary {
  border-bottom: 1px solid var(--line);
}

.single-post__content details > *:not(summary) {
  margin: 0;
  padding: 14px 18px 18px;
}

.single-post__nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-weight: 800;
}

.single-post__related {
  margin-top: 78px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.single-post__related h2 {
  margin: 0 0 24px;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.06;
}

.single-post__related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.related-recipe {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--heading);
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.related-recipe:hover,
.related-recipe:focus-visible {
  box-shadow: 0 18px 34px rgba(77, 50, 37, 0.13);
  transform: translateY(-3px);
}

.related-recipe__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.related-recipe__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.related-recipe:hover .related-recipe__media img,
.related-recipe:focus-visible .related-recipe__media img {
  transform: scale(1.035);
}

.related-recipe__title {
  display: block;
  padding: 14px 16px 16px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
}

.contact-page {
  padding-top: 18px;
}

.contact-page__content {
  display: grid;
  grid-template-columns: minmax(560px, 720px) minmax(420px, 560px);
  gap: clamp(18px, 1.8vw, 26px);
  align-items: start;
}

.contact-page__content > * {
  min-width: 0;
}

.contact-page__content > .wpcf7 {
  grid-column: 1;
  grid-row: 2 / span 8;
}

.contact-page__intro,
.contact-page__content > p:first-child {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0 0 8px;
  color: var(--heading);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.42;
}

.contact-page__content > .wp-block-group,
.contact-page__content > .wp-block-columns,
.contact-page__content > .wp-block-quote {
  grid-column: 2;
}

.contact-page__side {
  grid-column: 2;
  grid-row: 2;
}

.contact-page__footer {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 10px auto 0;
  text-align: center;
}

.contact-page__content > .wp-block-group,
.contact-page__content > .wp-block-columns,
.contact-page__content > .wp-block-quote,
.contact-info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  padding: clamp(20px, 2.6vw, 28px);
}

.contact-page__footer.wp-block-group,
.contact-page__footer.wp-block-columns,
.contact-page__footer.wp-block-quote {
  border: 0;
  background: transparent;
  padding: 0;
}

.contact-page__footer p:last-child {
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.15;
}

.contact-page__content h2,
.contact-page__content h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.12;
}

.contact-page__content p {
  margin: 0 0 14px;
  color: var(--body);
}

.contact-page__content ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-page__content li {
  position: relative;
  padding-left: 32px;
}

.contact-page__content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.04em;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.contact-page__content strong {
  color: var(--heading);
}

.contact-page__content > p:last-child {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.page-content .wpcf7,
.contact-page .wpcf7 {
  width: 100%;
  margin-top: 10px;
}

.page-content .wpcf7 form,
.contact-page .wpcf7 form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  padding: clamp(18px, 2vw, 24px);
}

.page-content .wpcf7 p,
.contact-page .wpcf7 p {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--heading);
  font-weight: 750;
}

.page-content .wpcf7 br,
.contact-page .wpcf7 br {
  display: none;
}

.page-content .wpcf7 input[type="text"],
.page-content .wpcf7 input[type="email"],
.page-content .wpcf7 input[type="tel"],
.page-content .wpcf7 input[type="url"],
.page-content .wpcf7 textarea,
.page-content .wpcf7 select,
.contact-page .wpcf7 input[type="text"],
.contact-page .wpcf7 input[type="email"],
.contact-page .wpcf7 input[type="tel"],
.contact-page .wpcf7 input[type="url"],
.contact-page .wpcf7 textarea,
.contact-page .wpcf7 select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 12px;
  font: inherit;
  font-weight: 500;
}

.page-content .wpcf7 textarea,
.contact-page .wpcf7 textarea {
  height: 132px;
  min-height: 120px;
  resize: vertical;
}

.page-content .wpcf7 input:focus-visible,
.page-content .wpcf7 textarea:focus-visible,
.page-content .wpcf7 select:focus-visible,
.contact-page .wpcf7 input:focus-visible,
.contact-page .wpcf7 textarea:focus-visible,
.contact-page .wpcf7 select:focus-visible {
  outline: 3px solid rgba(36, 83, 68, 0.22);
  outline-offset: 2px;
  border-color: var(--accent);
}

.page-content .wpcf7 input[type="submit"],
.contact-page .wpcf7 input[type="submit"] {
  justify-self: start;
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  padding: 11px 22px;
  font: inherit;
  font-weight: 800;
}

.page-content .wpcf7 input[type="submit"]:hover,
.page-content .wpcf7 input[type="submit"]:focus-visible,
.contact-page .wpcf7 input[type="submit"]:hover,
.contact-page .wpcf7 input[type="submit"]:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.page-content .wpcf7-spinner,
.contact-page .wpcf7-spinner {
  margin: 0 0 0 12px;
}

.page-content .wpcf7 .cf-turnstile,
.page-content .wpcf7 [data-sitekey],
.page-content .wpcf7 .wpcf7-form-control-wrap,
.contact-page .wpcf7 .cf-turnstile,
.contact-page .wpcf7 [data-sitekey],
.contact-page .wpcf7 .wpcf7-form-control-wrap {
  max-width: 100%;
}

.page-content .wpcf7-not-valid-tip,
.contact-page .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #8a2f1d;
  font-size: 14px;
  font-weight: 700;
}

.page-content .wpcf7 form .wpcf7-response-output,
.contact-page .wpcf7 form .wpcf7-response-output {
  margin: 0;
  border: 1px solid rgba(36, 83, 68, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(231, 240, 234, 0.72);
  color: var(--heading);
  padding: 14px 16px;
  font-weight: 650;
}

.page-content .wpcf7 form.invalid .wpcf7-response-output,
.page-content .wpcf7 form.unaccepted .wpcf7-response-output,
.page-content .wpcf7 form.payment-required .wpcf7-response-output,
.contact-page .wpcf7 form.invalid .wpcf7-response-output,
.contact-page .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-page .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: rgba(138, 47, 29, 0.28);
  border-left-color: #8a2f1d;
  background: #fff1ed;
}

.not-found-simple {
  display: grid;
  min-height: 590px;
  place-items: center;
  padding: 112px 0 50px;
}

.not-found-simple-card {
  width: min(860px, 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 54px;
  text-align: center;
}

.not-found-code {
  margin-bottom: 8px;
  color: rgba(43, 27, 18, 0.11);
  font-family: var(--serif);
  font-size: 172px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.86;
}

.not-found-simple h1 {
  max-width: none;
  margin-inline: auto;
  font-size: 86px;
}

.not-found-simple .lead {
  max-width: 650px;
  margin-inline: auto;
}

.not-found-actions {
  justify-content: center;
}

.not-found-shortcuts {
  padding-top: 16px;
}

.shortcut-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.shortcut-card:hover,
.shortcut-card:focus-visible {
  border-color: rgba(36, 83, 68, 0.58);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 38px rgba(31, 27, 22, 0.12);
  transform: translateY(-3px);
}

.shortcut-card img,
.shortcut-card .kvaskovna-icon {
  width: 54px;
  height: 54px;
}

.shortcut-card strong {
  display: block;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.12;
}

.shortcut-card em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 32px;
}

.form-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.92);
  padding: 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--heading);
  font-weight: 800;
}

.input {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: var(--body);
}

.result-panel {
  display: grid;
  gap: 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 24px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px 18px;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.recipe-list {
  display: grid;
  gap: 16px;
}

.recipe-card {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px;
}

.recipe-card h3 {
  margin-top: 0;
}

.recipe-thumb {
  width: 118px;
  height: 94px;
  border-radius: 8px;
  object-fit: cover;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  background: var(--soft);
  padding: 5px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ingredient-list,
.timeline,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-list li,
.timeline li,
.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(216, 201, 183, 0.72);
  padding: 10px 0;
}

.aside-stack {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.quote {
  border-left: 4px solid var(--icon);
  background: rgba(243, 235, 221, 0.66);
  padding: 22px 26px;
  color: var(--body);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
}

.card,
.recipe-card,
.metric,
.input,
.step {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.card:hover,
.recipe-card:hover {
  border-color: rgba(36, 83, 68, 0.42);
  box-shadow: 0 16px 34px rgba(31, 27, 22, 0.08);
}

@media (max-width: 1040px) {
  .site-header,
  .shell,
  .hero,
  .homepage-overview,
  .tools,
  .how-it-works,
  .benefits,
  .site-footer,
  .mobile-panel {
    width: min(100% - 64px, 960px);
  }

  .site-footer {
    width: 100%;
    max-width: none;
  }

  .site-header {
    height: 126px;
    grid-template-columns: minmax(160px, 1fr) 168px minmax(160px, 1fr) auto;
    gap: 16px;
  }

  .brand { transform: translateY(42px); }
  .brand { width: 168px; height: 168px; }
  .desktop-nav { gap: 22px; font-size: 15px; }
  .header-actions {
    display: flex;
    gap: 0;
  }
  .header-actions .button-primary {
    display: none;
  }
  .login {
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 82px;
  }

  .hero-copy { max-width: 800px; }
  h1 { font-size: clamp(62px, 8vw, 78px); }
  .hero-media { height: 470px; margin-left: 0; }
  .page-hero--split,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .not-found-simple {
    min-height: 520px;
    padding: 72px 0 34px;
  }
  .not-found-code {
    font-size: 142px;
  }
  .not-found-simple h1 {
    font-size: 68px;
  }
  .grid-3,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homepage-overview { grid-template-columns: 1fr; gap: 20px; }
  .how-it-works-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .how-it-works-steps li:nth-child(2)::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner,
  .footer-bottom {
    width: min(100% - 64px, 960px);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { background: var(--bg); }
  body.admin-bar .site-header { margin-top: 46px; }

  .site-header,
  .shell,
  .hero,
  .homepage-overview,
  .tools,
  .how-it-works,
  .benefits,
  .site-footer,
  .mobile-panel {
    width: calc(100% - 24px);
  }

  .site-footer {
    width: 100%;
    max-width: none;
  }

  .site-header {
    height: 104px;
    display: flex;
    border-bottom: 1px solid rgba(216, 201, 183, 0.72);
  }

  .brand {
    align-self: center;
    transform: none;
  }

  .brand img { width: 88px; height: 88px; }
  .brand img.brand-custom-logo { transform: none; }
  .brand {
    width: 88px;
    height: 88px;
  }
  .desktop-nav { display: none; }
  .header-actions {
    display: flex;
    margin-left: auto;
    gap: 12px;
  }
  .header-actions .button-primary {
    display: none;
  }
  .login {
    font-size: 14px;
    white-space: nowrap;
  }
  .login-icon { width: 17px; height: 17px; }
  .header-register {
    min-height: 40px;
    padding: 9px 11px;
    white-space: nowrap;
  }
  .menu-toggle {
    display: block;
    margin-left: 10px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0 0;
  }

  .hero-copy { width: 100%; }

  h1 {
    font-size: clamp(43px, 12vw, 52px);
    line-height: 1.03;
  }

  .hero-copy p {
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.45;
  }

  .actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
  }

  .button {
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .site-header .header-register {
    flex: 0 0 auto;
    width: auto;
  }

  .page-hero {
    padding: 24px 0 28px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-card__body {
    padding: 18px;
  }

  .single-post {
    padding: 34px 0 32px;
  }

  .single-post__header h1 {
    font-size: clamp(48px, 13vw, 64px);
  }

  .single-post__image {
    margin: 26px 0 38px;
  }

  .single-post__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: -16px 0 28px;
  }

  .single-post__actions .button {
    width: 100%;
  }

  .single-post__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .single-post__toc {
    padding: 16px;
  }

  .single-post__content {
    font-size: 17px;
  }

  .single-post__content h2 {
    margin-top: 42px;
    padding-top: 22px;
  }

  .single-post__content h3 {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .single-post__content h3::before {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .single-post__content h2[id="zakladni-informace"] + ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-post__content h2[id="zakladni-informace"] + ul li {
    min-height: 104px;
    padding: 15px;
  }

  .single-post__related {
    margin-top: 48px;
    padding-top: 26px;
  }

  .single-post__related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-recipe {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
  }

  .related-recipe__media {
    aspect-ratio: 1;
  }

  .single-post__nav {
    display: grid;
  }

  .page-content .entry-content > p:first-child {
    font-size: 20px;
  }

  .page-content .entry-content h2 {
    font-size: 32px;
  }

  .page-content .entry-content h3 {
    font-size: 26px;
  }

  .page-content .entry-content blockquote {
    margin-top: 20px;
    padding-top: 24px;
    font-size: 30px;
  }

  .page-content .wpcf7 form {
    padding: 20px;
  }

  .contact-page__content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-page__content > .wpcf7,
  .contact-page__content > .wp-block-group,
  .contact-page__content > .wp-block-columns,
  .contact-page__content > .wp-block-quote,
  .contact-page__intro,
  .contact-page__side,
  .contact-page__footer,
  .contact-page__content > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .page-content .wpcf7 input[type="submit"],
  .contact-page .wpcf7 input[type="submit"] {
    width: 100%;
  }

  .lead {
    font-size: 17px;
  }

  .not-found-simple {
    min-height: auto;
    padding: 34px 0 22px;
  }

  .not-found-simple-card {
    padding: 30px 0 32px;
  }

  .not-found-code {
    margin-bottom: 4px;
    font-size: 112px;
  }

  .not-found-simple h1 {
    font-size: 46px;
  }

  .not-found-actions {
    display: grid;
  }

  .shortcut-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px 16px;
    min-height: auto;
  }

  .shortcut-card img,
  .shortcut-card .kvaskovna-icon {
    width: 46px;
    height: 46px;
  }

  .shortcut-card strong {
    font-size: 22px;
  }

  .shortcut-card .button,
  .shortcut-card em {
    grid-column: 2;
  }

  .actions,
  .field-grid,
  .grid-2,
  .grid-3,
  .metric-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 280px;
  }

  .section {
    padding: 32px 0;
  }

  .section-head {
    display: grid;
  }

  .card {
    padding: 20px;
  }

  .tool-card.card {
    min-height: auto;
  }

  .recipe-card {
    grid-template-columns: 76px 1fr;
    gap: 14px;
  }

  .recipe-card .button {
    grid-column: 1 / -1;
  }

  .recipe-thumb {
    width: 76px;
    height: 76px;
  }

  .step {
    grid-template-columns: 38px 1fr;
  }

  .step time {
    grid-column: 2;
  }

  .aside-stack {
    position: static;
  }

  .quote {
    font-size: 22px;
  }

  .hero-media {
    width: calc(100% + 24px);
    height: 264px;
    margin-inline: -12px;
  }

  .stat {
    right: auto;
    bottom: 20px;
    top: auto;
    min-width: 0;
    width: calc((100% - 48px) / 3);
    grid-template-columns: 22px auto;
    column-gap: 6px;
    padding: 8px;
  }

  .stat img,
  .stat .kvaskovna-icon { width: 22px; height: 22px; }
  .stat > span:not(.kvaskovna-icon) { font-size: 8.5px; white-space: nowrap; }
  .stat strong { font-size: 18px; }
  .stat-one { left: 12px; }
  .stat-two { left: calc(16px + (100% - 48px) / 3); }
  .stat-three { left: calc(20px + 2 * (100% - 48px) / 3); }

  .tools { padding-top: 42px; }

  .homepage-overview {
    gap: 16px;
    margin-top: 18px;
    padding: 22px 0;
  }

  .homepage-overview h2 { font-size: 28px; }
  .homepage-overview-list { grid-template-columns: 1fr; gap: 9px; }
  .homepage-overview-list li { font-size: 16px; }
  .section-title { margin-bottom: 12px; }
  .section-title h2,
  .how-it-works .section-title h2 { font-size: 25px; }
  .section-title p { margin-top: 10px; font-size: 15px; }
  .section-title::after { margin-top: 7px; }

  .tool-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tool-card {
    grid-template-columns: 58px 1fr 76px;
    align-items: center;
    justify-items: start;
    min-height: 62px;
    gap: 10px;
    padding: 9px 10px;
    text-align: left;
  }

  .tool-card > img,
  .tool-card > .kvaskovna-icon {
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .tool-card h3 {
    font-family: var(--serif);
    font-size: 16px;
  }

  .tool-card p { display: none; }

  .tool-card .button {
    width: auto;
    min-width: 68px;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .tools-all { margin-top: 20px; }
  .how-it-works { padding: 54px 0 24px; }
  .how-it-works .section-title { margin-bottom: 26px; }
  .how-it-works-steps { grid-template-columns: 1fr; gap: 0; }
  .how-it-works-steps li { min-height: 0; padding: 18px 0 22px 50px; }
  .how-it-works-steps li:not(:last-child)::after { display: none; }
  .how-it-works-number { position: absolute; top: 18px; left: 0; width: 34px; height: 34px; }
  .how-it-works-steps h3 { margin: 0; font-size: 23px; }
  .how-it-works-steps p { margin-top: 6px; }

  .benefits {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
    border-top: 0;
    padding-bottom: 18px;
  }

  .benefit {
    grid-template-columns: 42px 1fr;
    border-radius: 8px;
    background: rgba(243, 235, 221, 0.72);
    padding: 12px 18px;
  }

  .benefit:hover,
  .benefit:focus-within {
    background: rgba(231, 240, 234, 0.92);
    box-shadow: 0 8px 18px rgba(31, 27, 22, 0.08);
  }

  .benefit img,
  .benefit .kvaskovna-icon { width: 34px; height: 34px; }
  .benefit span { font-size: 15px; }

  .site-footer {
    margin-top: 18px;
    padding-top: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    width: calc(100% - 24px);
  }

  .footer-brand img {
    width: 96px;
    height: 96px;
  }

  .footer-brand p,
  .footer-contact p,
  .footer-newsletter p {
    font-size: 15px;
  }

  .footer-contact .button { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .button { width: 100%; }

  .footer-bottom {
    width: calc(100% - 24px);
    display: grid;
    gap: 6px;
    margin-top: 26px;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: #fff;
    color: #1f1713;
  }

  .site-header,
  .mobile-panel,
  .site-footer,
  .breadcrumbs,
  .single-post__actions,
  .single-post__toc,
  .single-post__related,
  .single-post__nav,
  .single-post__meta,
  #wpadminbar {
    display: none !important;
  }

  .shell,
  .single-post {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .single-post__header h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .single-post__image {
    margin: 18px 0 28px;
  }

  .single-post__image img {
    max-height: 320px;
  }

  .single-post__content {
    font-size: 13px;
    line-height: 1.45;
  }

  .single-post__content h2 {
    break-after: avoid;
    margin: 28px 0 10px;
    padding-top: 14px;
    font-size: 26px;
  }

  .single-post__content h3 {
    break-after: avoid;
    grid-template-columns: 28px minmax(0, 1fr);
    margin: 18px 0 6px;
    font-size: 20px;
  }

  .single-post__content h3::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .single-post__content details {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-media:hover > img,
  .tool-card:hover,
  .tool-card:focus-within,
  .tool-card:hover > img,
  .tool-card:focus-within > img,
  .shortcut-card:hover,
  .shortcut-card:focus-visible,
  .benefit:hover {
    transform: none;
  }
}
