/*
Theme Name: Suvalkai.lt
Description: A responsive WordPress theme for the Suvalkai.lt catalogue and articles.
Version: 0.2.1
Requires at least: 7.1
Requires PHP: 8.4
Text Domain: suvalkai
*/

/* Background artwork from Tipz Theme by Design Disease, CC BY-SA 3.0. */
body {
  --site-orange: var(--wp--preset--color--rust, #b33200);
  --site-yellow: var(--wp--preset--color--amber, #ffe98e);
  --site-coin: url(assets/monetos.png);
  margin: 0;
  background: #f3ecaf var(--site-coin) top center repeat;
  color: var(--wp--preset--color--ink, #162d45);
  font: 1rem/1.55 Arial, Helvetica, sans-serif;
}

.site-shell { max-width: 980px; margin-inline: auto; background: #fff url(assets/antraste.png) top center / 100% auto no-repeat; }
.site-header, .site-layout { padding-inline: 25px; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 34px 17px;
}
.site-brand { display: grid; }
.site-brand a {
  color: var(--wp--preset--color--navy, #000033);
  font-size: clamp(1.875rem, 5.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-decoration: none;
}
.site-brand span { color: #535353; font-size: .8125rem; }
.site-header-tools { display: grid; justify-items: end; gap: 6px; }
.site-facebook { color: var(--site-orange); font-size: .875rem; font-weight: 700; }
.site-header .search-form { display: flex; }
.site-header .search-field, .site-header .search-submit {
  box-sizing: border-box;
  min-height: 34px;
  padding: 5px 9px;
  font: inherit;
  font-size: .875rem;
}
.site-header .search-field { width: clamp(66px, 20vw, 182px); border: 1px solid #b67c41; border-radius: 18px 0 0 18px; }
.site-header .search-submit { color: #fff; background: var(--site-orange); border: 1px solid var(--site-orange); border-radius: 0 18px 18px 0; cursor: pointer; }
.site-menu { margin-inline: 25px; padding: 5px; background: var(--site-yellow) url(assets/meniu.png) right center / auto 100% no-repeat; border-radius: 14px; }
.site-menu ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-menu .children { display: none; }
.site-menu a { display: block; padding: 5px 9px; color: #652900; font: 700 .875rem/1.35 "Trebuchet MS", Arial, sans-serif; text-decoration: none; }
.site-menu .current_page_item > a { background: var(--site-orange); border-radius: 999px; color: white; }
.site-menu a:hover, .site-facebook:hover { text-decoration: underline; }

.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 24px; }
.site-content { padding-block: 18px 36px; overflow-wrap: anywhere; }
.site-content h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.17; margin: 0 0 12px; }
.site-content h2 { font-size: clamp(1.35rem, 2.8vw, 1.75rem); line-height: 1.22; }
.site-content a, .site-footer a, .site-sidebar a { color: var(--site-orange); text-underline-offset: .18em; }
.site-shell .sk-directory .sk-nav { align-items: stretch; }
.site-shell .sk-nav a:is([href="#parduotuviu-sarasas"], [href="#turgus"]) { gap: 6px; }
.site-content img, .site-sidebar img { max-width: 100%; height: auto; }
.site-content iframe { max-width: 100%; }
.site-content article + article { border-top: 1px solid #dae7ee; }
.site-sidebar.sk-home-sidebar { margin-block: 18px; }
.site-widget { margin-bottom: 18px; font-size: .875rem; }
.site-widget h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #d7d7d7; font: 700 1.15rem/1.25 "Trebuchet MS", Arial, sans-serif; }
.site-footer { border-top: 1px solid #cbdce5; padding: 12px 25px 22px; font-size: .875rem; }
.site-footer p { margin: 3px 0 8px; }
.site-footer button { font: inherit; cursor: pointer; }
.site-footer .site-art-credit a { color: #535353; font-size: .8125rem; }
.site-shell :focus-visible { outline: 3px solid #a35513; outline-offset: 3px; }
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: .75em; background: white; color: #0b4b7a; }

.site-widget h2::before,
.site-brand span::before,
.site-shell .sk-nav a:is([href="#parduotuviu-sarasas"], [href="#turgus"])::before {
  /* The small coin is a crop of the same illustration as the page background. */
  content: "";
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--site-coin) -35px -81px / 347px 240px no-repeat;
  filter: saturate(1.35) contrast(1.12);
}

.site-brand span { display: flex; align-items: center; gap: 5px; }
.site-brand span::before { display: none; }
.site-design-accents {
  --site-yellow: #fff0b7;
  background-image: linear-gradient(#fffcf15e, #fffcf15e), var(--site-coin);
}
.site-design-accents .site-shell { background-image: none; box-shadow: 0 0 0 1px #b7923c45; }
.site-design-accents .site-menu { background-image: none; border-radius: 9px; }
.site-design-accents .site-brand span::before { display: inline-block; }
.site-design-accents .sk-directory .sk-nav a:is([href="#parduotuviu-sarasas"], [href="#turgus"]) {
  background: #fff6d6;
  border-color: #dac68c;
}

@media (max-width: 820px) {
  .site-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-header, .site-layout, .site-footer { padding-inline: 14px; }
  .site-menu { margin-inline: 14px; }
}

@media (max-width: 640px) {
  .site-shell { background-image: none; }
  .site-header { padding-block: 10px 8px; gap: 8px; }
  .site-facebook, .site-menu .site-menu-home.current_page_item { display: none; }
  .site-brand span::before { display: inline-block; }
  .site-menu { background-size: auto 80%; }
  .site-menu a { padding-inline: 7px; }
  .site-content { padding-top: 12px; }
}
