/*
Theme Name: Los Hansen
Theme URI: https://loshansen.com/
Author: OpenAI / ChatGPT
Author URI: https://openai.com/
Description: A minimalist, responsive WordPress theme for the Los Hansen Danish-Spanish family journal.
Version: 0.1.0
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: los-hansen
Tags: blog, custom-logo, featured-images, responsive-layout, translation-ready, one-column, two-columns
*/

:root {
  --lh-bg: #fbf6ef;
  --lh-bg-soft: #f5eadf;
  --lh-paper: #fffdf8;
  --lh-text: #2f2a24;
  --lh-muted: #7e7063;
  --lh-sand: #a9967f;
  --lh-sand-dark: #746656;
  --lh-line: rgba(116, 102, 86, 0.22);
  --lh-olive: #687154;
  --lh-terracotta: #a96346;
  --lh-white: #ffffff;
  --lh-shadow: 0 24px 70px rgba(56, 44, 34, 0.10);
  --lh-serif: Georgia, "Times New Roman", Times, serif;
  --lh-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lh-script: "Segoe Script", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--lh-text);
  background: var(--lh-bg);
  font-family: var(--lh-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lh-terracotta); }

.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 999999;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  padding: 12px 16px;
  background: var(--lh-text);
  color: var(--lh-white);
}

.site-header {
  background: rgba(251, 246, 239, 0.94);
  border-bottom: 1px solid var(--lh-line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.header-top {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 0 10px;
}

.language-switcher,
.header-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lh-sand-dark);
}

.language-switcher a,
.header-socials a {
  opacity: .9;
}

.header-socials {
  justify-content: flex-end;
  letter-spacing: .08em;
}

.site-branding {
  text-align: center;
}

.site-brand {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  color: var(--lh-text);
}

.site-brand__symbol {
  width: 230px;
  max-width: min(230px, 56vw);
  margin-bottom: -4px;
}

.site-brand__name {
  font-family: var(--lh-serif);
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: .9;
  letter-spacing: .015em;
  color: var(--lh-text);
}

.site-brand__descriptor {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--lh-muted);
}

.custom-logo-link img {
  width: min(360px, 70vw);
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto;
}

.menu-row {
  position: relative;
  border-top: 1px solid var(--lh-line);
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--lh-line);
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lh-text);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: block;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--lh-text);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a:hover {
  color: var(--lh-terracotta);
}

.site-main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: min(76vh, 720px);
  display: grid;
  align-items: center;
  isolation: isolate;
  background: var(--lh-bg-soft);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(251,246,239,.94) 0%, rgba(251,246,239,.80) 34%, rgba(251,246,239,.34) 64%, rgba(251,246,239,.12) 100%);
}

.hero__content {
  max-width: 520px;
  padding: clamp(72px, 9vw, 120px) 0;
}

.eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--lh-sand-dark);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--lh-sand);
}

.hero h1,
.page-title,
.section-title,
.entry-title {
  font-family: var(--lh-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--lh-text);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(52px, 8vw, 92px);
  max-width: 720px;
}

.hero p {
  max-width: 430px;
  margin: 0 0 32px;
  font-family: var(--lh-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: var(--lh-sand);
  color: var(--lh-white);
  padding: 14px 22px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.button:hover,
.wp-block-button__link:hover {
  color: var(--lh-white);
  background: var(--lh-sand-dark);
  transform: translateY(-1px);
}

.hero__note {
  position: absolute;
  right: min(8vw, 120px);
  top: 16%;
  font-family: var(--lh-script);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  color: rgba(116, 102, 86, .72);
  transform: rotate(-7deg);
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section--narrow {
  padding: clamp(46px, 6vw, 80px) 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.view-link,
.read-more {
  color: var(--lh-sand-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

.category-card,
.post-card {
  background: transparent;
}

.category-card__image,
.post-card__image {
  position: relative;
  aspect-ratio: 1.52;
  overflow: hidden;
  background: var(--lh-bg-soft);
  margin-bottom: 16px;
}

.category-card__image img,
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.category-card:hover img,
.post-card:hover img { transform: scale(1.035); }

.category-card h2,
.post-card h2,
.post-card h3 {
  margin: 0 0 5px;
  font-family: var(--lh-serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.12;
}

.category-card p,
.post-card p {
  margin: 0;
  color: var(--lh-muted);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  color: var(--lh-muted);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.post-card__excerpt {
  margin: 8px 0 18px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: var(--lh-serif);
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.about-band {
  border-top: 1px solid var(--lh-line);
  border-bottom: 1px solid var(--lh-line);
  background: rgba(255,253,248,.58);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr .8fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.about-grid p {
  margin: 18px 0 28px;
  max-width: 410px;
}

.about-grid img {
  box-shadow: var(--lh-shadow);
}

.pull-quote {
  font-family: var(--lh-script);
  color: var(--lh-sand-dark);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  transform: rotate(-6deg);
}

.closing-band {
  position: relative;
  padding: clamp(78px, 12vw, 150px) 0;
  text-align: center;
  background: linear-gradient(rgba(251,246,239,.66), rgba(251,246,239,.75)), url("assets/images/los-hansen-hero-wide.jpg") center/cover no-repeat;
}

.closing-band h2 {
  margin: 0 auto;
  max-width: 700px;
  font-family: var(--lh-serif);
  font-weight: 400;
  font-size: clamp(35px, 5vw, 60px);
  line-height: 1.05;
}

.content-area {
  padding: clamp(56px, 8vw, 100px) 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: start;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-header .entry-title {
  margin: 12px auto 18px;
  max-width: 830px;
  font-size: clamp(45px, 7vw, 82px);
}

.featured-image {
  margin: 0 auto 46px;
  max-width: 1120px;
}

.featured-image img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--lh-serif);
  font-size: 20px;
  line-height: 1.75;
}

.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--lh-serif);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 1.8em;
  color: var(--lh-text);
}
.entry-content h2 { font-size: clamp(32px, 5vw, 48px); }
.entry-content h3 { font-size: clamp(26px, 4vw, 36px); }
.entry-content a { border-bottom: 1px solid currentColor; }
.entry-content blockquote {
  margin-left: 0;
  padding-left: 24px;
  border-left: 2px solid var(--lh-sand);
  color: var(--lh-sand-dark);
  font-size: 1.16em;
}

.wp-caption,
.wp-caption img { max-width: 100%; }
.wp-caption-text,
.gallery-caption {
  color: var(--lh-muted);
  font-size: 14px;
  font-family: var(--lh-sans);
}

.post-navigation,
.posts-navigation {
  max-width: 900px;
  margin: 60px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--lh-line);
}

.post-navigation .nav-links,
.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.sidebar .widget {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--lh-line);
}

.widget-title {
  margin: 0 0 14px;
  font-family: var(--lh-serif);
  font-size: 24px;
  font-weight: 400;
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: 8px; }

.site-footer {
  padding: 56px 0;
  background: var(--lh-text);
  color: rgba(255,255,255,.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: var(--lh-serif);
  font-size: 38px;
  color: var(--lh-white);
  line-height: 1;
}

.site-footer p { color: rgba(255,255,255,.68); max-width: 420px; }
.site-footer a:hover { color: var(--lh-sand); }
.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  color: var(--lh-white);
  font-family: var(--lh-serif);
  font-weight: 400;
}

.footer-menu,
.footer-socials {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li + li,
.footer-socials li + li { margin-top: 8px; }

.copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.no-posts,
.not-found-card {
  background: rgba(255,253,248,.78);
  padding: 34px;
  border: 1px solid var(--lh-line);
}

.search-form { display: flex; gap: 8px; }
.search-field {
  width: 100%;
  border: 1px solid var(--lh-line);
  background: var(--lh-paper);
  padding: 12px 14px;
  font: inherit;
}
.search-submit {
  border: 0;
  background: var(--lh-sand);
  color: var(--lh-white);
  padding: 12px 16px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .category-grid,
  .posts-grid,
  .about-grid,
  .footer-grid,
  .content-layout {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid > :first-child,
  .content-layout > :first-child { grid-column: 1 / -1; }
  .hero__note { display: none; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-top {
    grid-template-columns: 1fr auto;
    padding-top: 12px;
  }
  .site-branding {
    grid-column: 1 / -1;
    order: -1;
  }
  .language-switcher { justify-content: flex-start; }
  .header-socials { justify-content: flex-end; }
  .site-brand__symbol { width: 178px; }
  .site-brand__name { font-size: 42px; }
  .site-brand__descriptor { letter-spacing: .24em; font-size: 9px; }
  .menu-row { padding: 10px 0; }
  .menu-toggle { display: inline-flex; margin-left: 14px; }
  .main-navigation { display: none; padding: 6px 14px 10px; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; }
  .main-navigation a { padding: 11px 0; }
  .hero { min-height: 620px; align-items: end; }
  .hero::after {
    background: linear-gradient(0deg, rgba(251,246,239,.96) 0%, rgba(251,246,239,.72) 50%, rgba(251,246,239,.20) 100%);
  }
  .hero__content { padding: 260px 0 48px; }
  .hero h1 { font-size: 48px; }
  .category-grid,
  .posts-grid,
  .about-grid,
  .footer-grid,
  .content-layout { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .entry-content { font-size: 18px; }
  .post-navigation .nav-links,
  .posts-navigation .nav-links { flex-direction: column; }
}
