:root {
  --color-bg: #FAFAF7;
  --color-bg-alt: #F5F2ED;
  --color-white: #FFFFFF;
  --color-text: #3D3D3D;
  --color-heading: #1A1A1A;
  --color-accent: #D4783A;
  --color-accent-hover: #BF6A30;
  --color-accent-light: #FDF3ED;
  --color-border: #E8E4DF;
  --color-meta: #999999;
  --color-footer-bg: #2D2D2D;
  --color-footer-text: #C8C4BF;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;

  --content-width: 740px;
  --content-wide: 1020px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.topbar {
  background: var(--color-accent-light);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 2rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

.topbar p {
  margin: 0;
}

.topbar-title {
  font-weight: 600;
}

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.site-branding-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 10px;
}

.custom-logo {
  max-height: 44px;
  width: auto;
  height: auto;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-title a {
  color: var(--color-heading);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--color-accent);
}

.site-description {
  font-size: 0.8rem;
  color: var(--color-meta);
  margin: 0.15rem 0 0;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.main-menu li {
  position: relative;
  margin: 0;
}

.main-menu a {
  display: block;
  color: var(--color-text);
  font-size: 0.9375rem;
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
}

.main-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.main-menu a:hover,
.main-menu a:focus {
  color: var(--color-accent);
}

.main-menu a:hover::after,
.main-menu a:focus::after,
.main-menu .current-menu-item a::after,
.main-menu .current_page_item a::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 10;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.toggled .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.toggled .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.toggled .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-content {
  min-height: 60vh;
}

.content-area {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.content-area--wide {
  max-width: var(--content-wide);
}

.page-header {
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.0625rem;
  color: var(--color-meta);
  margin: 0;
}

.archive-description {
  font-size: 1rem;
  color: var(--color-meta);
  margin-top: 0.5rem;
}

.hero-section {
  position: relative;
  margin-bottom: 3rem;
  padding: 2.5rem 2rem;
  background: #FFF5ED;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.hero-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-meta);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-close:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.hero-title,
.hero-section h2:first-child {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.hero-section p {
  margin-bottom: 1em;
  text-align: justify;
  text-align-last: left;
}

.hero-section p:last-child {
  margin-bottom: 0;
}

.hero-section ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.hero-section ul li {
  margin-bottom: 0.4em;
}

.hero-section ul:last-child {
  margin-bottom: 0;
}

.loop-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.loop-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.loop-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  white-space: nowrap;
}

.entry {
  margin-bottom: 2.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.entry:hover {
  border-color: #ddd;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

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

.entry-thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.entry-thumbnail a {
  display: block;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.entry:hover .entry-thumbnail img {
  transform: scale(1.03);
}

.date-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 0.25em 0.75em;
  border-radius: 20px;
  line-height: 1.5;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.single .entry:hover .entry-thumbnail img {
  transform: none;
}

.entry-header {
  padding: 1.25rem 1.5rem 0;
}

.entry-categories {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.entry-categories a {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.entry-categories a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.entry-title {
  font-size: 1.5rem;
  margin-bottom: 0;
  word-wrap: break-word;
}

.entry-title a {
  color: var(--color-heading);
}

.entry-title a:hover {
  color: var(--color-accent);
}

.entry-title--single {
  font-size: 1.95rem;
  margin-bottom: 30px;
  text-align: center;
}

.entry-thumbnail .entry-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.25rem 1.5rem 1.2rem;
  margin: 0;
  z-index: 2;
  font-size: 1.35rem;
  background: linear-gradient(transparent 10%, var(--color-accent) 40%);
  pointer-events: none;
}

.entry-thumbnail .entry-title a {
  color: var(--color-white);
  pointer-events: auto;
  display: inline;
}

.entry-thumbnail .entry-title a:hover {
  color: rgba(255,255,255,0.85);
}

.entry-summary {
  padding: 0.75rem 1.5rem 20px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.65;
}

.entry-summary p {
  margin: 0;
}

.entry-summary p:last-child {
  margin-bottom: 0;
}

.entry-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--color-meta);
  border-top: 1px solid var(--color-border);
  margin-top: 1.25rem;
}

.entry-footer .more-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-meta);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.entry-footer .more-link:hover {
  color: var(--color-accent);
}

.single .entry {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.single .entry:hover {
  border-color: var(--color-border);
  box-shadow: none;
}

.single .entry-header,
.single .entry-content,
.single .entry-footer--single {
  padding-left: 2rem;
  padding-right: 2rem;
}

.single .entry-header {
  padding-top: 1.5rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

.single .entry-content {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.single .entry-footer--single {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  display: block;
}

.single .entry-thumbnail {
  margin-bottom: 0;
}

.single .entry-thumbnail img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page .entry {
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0;
}

.page .entry:hover {
  border-color: transparent;
  box-shadow: none;
}

.page .entry-header {
  padding: 0;
  margin-bottom: 1.5rem;
}

.page .entry-content {
  padding: 0;
}

.page .entry-thumbnail {
  margin-bottom: 2rem;
}

.page .entry-thumbnail img {
  aspect-ratio: auto;
  object-fit: none;
  border-radius: var(--radius);
}

.page .entry:hover .entry-thumbnail img {
  transform: none;
}

.entry-content {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.85;
}

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

.entry-content p {
  text-align: justify;
  text-align-last: left;
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-meta);
}

.entry-meta a {
  color: var(--color-meta);
}

.entry-meta a:hover {
  color: var(--color-accent);
}

.entry-meta .sep {
  color: #ddd;
  font-size: 0.7rem;
}

.tags-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: -0.25rem;
}

.tags-links a {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25em 0.8em;
  border-radius: 20px;
  background: var(--color-bg-alt);
  color: var(--color-meta);
  transition: background 0.2s ease, color 0.2s ease;
}

.tags-links a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
}

.entry-content img,
.entry-content figure {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-radius: var(--radius);
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 1.5em 1.5em 1.5em 2em;
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-heading);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.entry-content .alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.entry-content .wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}

.entry-content .wp-caption-text {
  font-size: 0.85rem;
  color: var(--color-meta);
  text-align: center;
  margin-top: 0.5em;
}

.entry-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-meta);
}

.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation a {
  display: block;
  font-size: 0.9375rem;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--color-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
}

.search-form label {
  flex: 1;
}

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

.search-field {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.search-field:focus {
  outline: none;
  border-color: var(--color-accent);
}

.search-submit {
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--font-body);
}

.search-submit:hover {
  background: var(--color-accent-hover);
}

.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 .page-title {
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.error-404 .error-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.error-404 p {
  font-size: 1.0625rem;
  color: var(--color-meta);
  margin-bottom: 0.75rem;
}

.error-404 .search-form {
  margin: 1.5rem auto;
}

.error-404 .error-back {
  margin-top: 2rem;
}

.error-404 .error-back a {
  font-weight: 600;
  color: var(--color-accent);
}

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-footer-text);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-widgets {
  max-width: var(--content-wide);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-widgets .widget-title {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-widgets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widgets ul li {
  margin-bottom: 0.4rem;
}

.footer-info {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-nav {
  max-width: var(--content-wide);
  margin: 0 auto 1rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  color: var(--color-footer-text);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-menu a:hover {
  color: var(--color-white);
}

.comments-area {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.375rem;
  margin-bottom: 2rem;
}

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

.comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin: 0;
}

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

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-author .avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-author .fn {
  font-style: normal;
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.9375rem;
}

.comment-author .says {
  display: none;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--color-meta);
}

.comment-metadata a {
  color: var(--color-meta);
}

.comment-metadata a:hover {
  color: var(--color-accent);
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  margin-top: 0.5rem;
}

.reply a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

.reply a:hover {
  color: var(--color-accent-hover);
}

.comment-respond {
  margin-top: 2rem;
}

.comment-reply-title {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-heading);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form .form-submit {
  margin-top: 1rem;
}

.comment-form .submit {
  padding: 0.7rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--font-body);
}

.comment-form .submit:hover {
  background: var(--color-accent-hover);
}

.comment-form .comment-notes {
  font-size: 0.85rem;
  color: var(--color-meta);
  margin-bottom: 1.5rem;
}

.comment-form .required {
  color: var(--color-accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"],
input[type="submit"] {
  padding: 0.7rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: var(--font-body);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--color-accent-hover);
}

.wpcf7-form p {
  margin-bottom: 1rem;
}

.wpcf7-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-heading);
}

.wpcf7-not-valid-tip {
  font-size: 0.8125rem;
  color: #d63638;
  margin-top: 0.25rem;
}

.wpcf7 form .wpcf7-response-output {
  font-size: 0.9rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  padding: 0.75rem 1rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450;
  background: #f0f8f0;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #d63638;
  background: #fdf0f0;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #ffb900;
  background: #fffdf0;
}

.wpcf7-spinner {
  background: var(--color-accent);
}

.no-comments {
  font-size: 0.9375rem;
  color: var(--color-meta);
  text-align: center;
  padding: 2rem 0;
}

.bypostauthor .comment-body {
  background: var(--color-accent-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-bottom: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.sticky {
  position: relative;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5em;
}

.gallery-item {
  margin: 0;
}

.gallery-icon img {
  border-radius: var(--radius);
}

.gallery-caption {
  font-size: 0.8rem;
  color: var(--color-meta);
  text-align: center;
  margin-top: 0.5em;
}

.wp-block-image {
  margin-bottom: 1.5em;
}

.wp-block-image img {
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 1rem;
    gap: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
  }

  .main-menu.toggled {
    display: flex;
  }

  .main-menu a {
    padding: 0.75rem 0;
    white-space: normal;
    width: 100%;
    text-align: center;
  }

  .main-menu a::after {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    background: var(--color-white);
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  }

  .main-menu {
    align-items: center;
  }

  .main-menu li {
    text-align: center;
    width: 100%;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .entry-title {
    font-size: 1.5rem;
  }

  .content-area {
    padding: 2rem 1.25rem 3rem;
  }

  .post-navigation .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .comment-list .children {
    padding-left: 1rem;
  }

  .search-form {
    flex-direction: column;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .error-404 .page-title {
    font-size: 3rem;
  }

  .topbar {
    padding: 0.375rem 1.25rem;
    font-size: 0.75rem;
  }

  .hero-section {
    padding: 1.5rem 1.25rem;
  }

  .hero-title,
  .hero-section h2:first-child {
    font-size: 1.35rem;
  }

  .loop-header {
    margin-bottom: 1.5rem;
  }

  .loop-title {
    font-size: 1rem;
  }

  .entry-thumbnail .entry-title {
    font-size: 1.1rem;
    padding: 1.5rem 1rem 0.75rem;
  }

  .entry-header {
    padding: 1rem 1.25rem 0;
  }

  .entry-summary {
    padding: 0.5rem 1.25rem 16px;
  }

  .entry-footer {
    padding: 0.75rem 1.25rem;
  }

  .entry-title--single {
    font-size: 1.5rem;
  }

  .single .entry-header,
  .single .entry-content,
  .single .entry-footer--single {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .single .entry-header {
    padding-top: 1rem;
  }

  .single .entry-content {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .single .entry-footer--single {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (min-width: 769px) {
  .main-menu {
    display: flex !important;
  }
}
