/*
Theme Name: KöBes Theme
Theme URI: https://koebes.net
Author: Anne Baum
Author URI: https://koebes.net
Description: A lightweight, standards-friendly WordPress theme built as a clean foundation for Elementor.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koebes-theme
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --es-color-text: #151515;
  --es-color-muted: #5f6368;
  --es-color-border: #e5e7eb;
  --es-color-bg: #ffffff;
  --es-color-link: #0f766e;
  --es-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --es-content-width: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--es-color-text);
  background: var(--es-color-bg);
  font-family: var(--es-font-body);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--es-color-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  text-decoration-thickness: 0.12em;
}

button,
input,
select,
textarea {
  font: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.6rem;
  border: 1px solid var(--es-color-border);
  text-align: left;
}

.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;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: #111827;
  background: #ffffff;
  border: 1px solid var(--es-color-border);
  border-radius: 4px;
}

.site-header,
.site-footer {
  border-color: var(--es-color-border);
}

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

.site-footer {
  border-top: 1px solid var(--es-color-border);
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(100% - 2rem, var(--es-content-width));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.site-description {
  margin: 0.2rem 0 0;
  color: var(--es-color-muted);
  font-size: 0.875rem;
  line-height: 1.3;
}

.site-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation a {
  color: inherit;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a:focus {
  color: var(--es-color-link);
}

.site-main {
  padding-block: 2.5rem;
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

body.has-sidebar .content-area {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
}

.entry {
  margin-bottom: 3rem;
}

.entry-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.entry-meta,
.entry-footer,
.comment-metadata {
  color: var(--es-color-muted);
  font-size: 0.9rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.wp-caption,
.gallery-caption,
.bypostauthor {
  max-width: 100%;
}

.alignwide {
  width: min(100%, 90rem);
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  margin-top: 0;
  font-size: 1rem;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment {
  margin-bottom: 1.5rem;
}

.comment-body {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--es-color-border);
}

.site-footer__inner {
  padding-block: 1.5rem;
  color: var(--es-color-muted);
  font-size: 0.9rem;
}

.elementor-page .site-main,
.elementor-template-full-width .site-main {
  width: 100%;
  padding-block: 0;
}

.elementor-page .entry,
.elementor-template-full-width .entry {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-navigation ul {
    justify-content: flex-start;
  }

  body.has-sidebar .content-area {
    grid-template-columns: 1fr;
  }
}
