/*
Theme Name: farselo-front
Author: farselo-dev
Version: 1.7.7
Description: farselo
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Libre+Franklin:wght@300;400;500;600&display=swap');

:root {
  --bg: #f6f2ec;
  --bg-alt: #ede8df;
  --text: #1a1a2e;
  --text-light: #4a4a5a;
  --accent: #c45b3e;
  --accent-hover: #a84830;
  --rule: #1a1a2e;
  --rule-light: rgba(26,26,46,0.15);
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Libre Franklin', 'Helvetica Neue', sans-serif;
  --max-w: 1140px;
  --max-w-narrow: 740px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
a { display: inline-block; text-align: center; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  border-bottom: 3px solid var(--rule);
  padding: 1.2rem 2rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  text-align: left;
}
.site-logo:hover { color: var(--accent); }

.header-nav { display: flex; gap: 1.8rem; align-items: center; }
.header-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.header-nav a:hover::after { width: 100%; }
.header-nav a:hover { color: var(--accent); }

.breadcrumbs {
  max-width: var(--max-w-narrow);
  margin: 2rem auto 0;
  padding: 0 2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  text-align: left;
  display: inline;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.4rem; }

.article-hero {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 2rem 2rem 0;
}
.article-category {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-light);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-light);
  flex-wrap: wrap;
}
.article-meta-author { font-weight: 600; color: var(--text); }

.article-body {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  font-style: italic;
}
.article-body p {
  margin-bottom: 1.3rem;
  color: var(--text);
}
.article-body .lead-paragraph {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-light);
  font-weight: 300;
}

.pull-quote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  position: relative;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0;
}
.pull-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: -0.2rem;
  left: 0.8rem;
  opacity: 0.3;
}

.hr-editorial {
  border: none;
  border-top: 1px solid var(--rule-light);
  margin: 2rem 0;
}
.hr-thick {
  border: none;
  border-top: 3px solid var(--rule);
  margin: 2.5rem 0;
  max-width: 60px;
}

.article-image {
  margin: 2rem 0;
  position: relative;
}
.article-image img {
  width: 100%;
  border-radius: 2px;
}
.article-image figcaption {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

.tip-box {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-top: 3px solid var(--accent);
}
.tip-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.print-block {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  border-bottom: 1px solid var(--rule-light);
}
.print-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  border: 2px solid var(--rule);
  color: var(--text);
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.print-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.read-also {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.read-also-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.read-also-card {
  border: 1px solid var(--rule-light);
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  transition: all 0.25s ease;
  background: var(--white);
}
.read-also-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.read-also-card-category {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.read-also-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-align: left;
}

.subscribe-section {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 3rem 2rem;
}
.subscribe-box {
  background: var(--text);
  color: var(--bg);
  padding: 3rem;
  text-align: center;
}
.subscribe-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--bg);
}
.subscribe-box p {
  font-size: 0.92rem;
  color: rgba(246,242,236,0.7);
  margin-bottom: 1.5rem;
}
.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.subscribe-form button {
  padding: 0.85rem 1.8rem;
  border: none;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s;
}
.subscribe-form button:hover { background: var(--accent-hover); }

.site-footer {
  border-top: 3px solid var(--rule);
  padding: 3rem 2rem;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--text-light);
  border-top: 1px solid var(--rule-light);
  padding-top: 1.5rem;
  line-height: 1.65;
  text-align: left;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule-light);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  padding: 1.8rem;
  max-width: 380px;
  z-index: 9999;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.cookie-modal p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.cookie-modal-btns { display: flex; gap: 0.8rem; }
.cookie-accept {
  padding: 0.6rem 1.4rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--accent); }
.cookie-decline {
  padding: 0.6rem 1.4rem;
  background: none;
  color: var(--text-light);
  border: 1px solid var(--rule-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-decline:hover { border-color: var(--text); color: var(--text); }

/* Legal Pages */
.legal-page {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
}
.legal-page p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Success Page */
.success-page {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.success-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.success-btn {
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.25s;
}
.success-btn:hover { background: var(--accent); }

/* 404 */
.page-404 {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.page-404 .big-404 {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--rule-light);
  margin-bottom: 1rem;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.page-404 p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.sidebar-box {
  background: var(--bg-alt);
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  border-left: 3px solid var(--accent);
}
.sidebar-box h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.sidebar-box p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.numbered-list {
  counter-reset: item;
  margin: 1.5rem 0;
}
.numbered-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.numbered-item::before {
  counter-increment: item;
  content: counter(item);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  min-width: 2rem;
  line-height: 1.2;
}
.numbered-item p { margin-bottom: 0; }

@media print {
  .site-header, .site-footer, .cookie-modal, .subscribe-section, .print-block, .read-also { display: none; }
  body { font-size: 12pt; background: white; }
}

@media (max-width: 768px) {
  .site-header { padding: 1rem 1.2rem; }
  .header-nav { gap: 1rem; }
  .header-nav a { font-size: 0.7rem; }
  .article-hero, .article-body, .read-also, .subscribe-section, .print-block { padding-left: 1.2rem; padding-right: 1.2rem; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"], .subscribe-form button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .cookie-modal { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
  .pull-quote { padding: 1.5rem; margin: 1.5rem 0; }
  .subscribe-box { padding: 2rem 1.5rem; }
}
