/*
Theme Name: ALINBB Editorial
Theme URI: https://example.com/alinbb-editorial
Author: ALINBB
Description: An editorial WordPress blog theme for beauty, skincare, wellness, and lifestyle publishing. Designed to work alongside the ALINBB Elementor homepage template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alinbb-editorial
Tags: blog, news, magazine, beauty, health, custom-logo, custom-menu, featured-images
*/

:root {
  --alinbb-paper: #f3f3ef;
  --alinbb-ink: #222220;
  --alinbb-muted: #6f6f68;
  --alinbb-line: #d9d8d0;
  --alinbb-blush: #f7a9c7;
  --alinbb-black: #050505;
  --alinbb-shell: min(1500px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--alinbb-paper);
  color: var(--alinbb-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button, input { font: inherit; }
.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 {
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  background: #fff;
  color: #000;
}

.site-shell { width: var(--alinbb-shell); margin-inline: auto; }
.site-main { min-height: 60vh; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--alinbb-line);
  background: rgba(243, 243, 239, .97);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  gap: 28px;
}
.site-branding { min-width: 0; }
.site-title {
  display: inline-block;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .32em;
}
.custom-logo-link img { max-height: 42px; width: auto; }
.primary-navigation .menu,
.footer-menu .menu {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.primary-navigation a,
.header-search-button,
.footer-menu a {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.primary-navigation a::after {
  display: block;
  width: 0;
  height: 1px;
  content: '';
  background: var(--alinbb-ink);
  transition: width .2s ease;
}
.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after { width: 100%; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.header-search-button,
.menu-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--alinbb-ink);
  cursor: pointer;
}
.menu-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--alinbb-ink); }
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  content: '';
  background: var(--alinbb-ink);
}
.header-search { display: none; padding: 0 0 16px; }
.header-search.is-open { display: block; }
.header-search .search-form { display: flex; max-width: 420px; margin-left: auto; border-bottom: 1px solid var(--alinbb-ink); }
.search-field { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--alinbb-ink); }
.search-submit { padding: 10px 0 10px 18px; border: 0; background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

.editorial-hero { padding: 48px 0 36px; border-bottom: 1px solid var(--alinbb-line); }
.eyebrow,
.post-category,
.post-meta,
.archive-label,
.post-byline,
.pagination .nav-links,
.comment-metadata,
.reply a {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 14px; color: var(--alinbb-muted); }
.editorial-hero h1,
.archive-heading,
.page-header h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
}
.editorial-hero p:not(.eyebrow),
.archive-description {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--alinbb-muted);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.45;
}
.featured-story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr); gap: 34px; padding: 42px 0; border-bottom: 1px solid var(--alinbb-line); }
.featured-story-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--alinbb-line); }
.featured-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.featured-story:hover .featured-story-media img { transform: scale(1.025); }
.featured-story-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.post-category { margin: 0; color: var(--alinbb-muted); }
.post-category a:hover { text-decoration: underline; }
.featured-story-title { margin: 12px 0 0; font-size: clamp(30px, 3.2vw, 54px); font-weight: 700; line-height: 1.05; }
.featured-story-excerpt { margin: 18px 0 0; color: var(--alinbb-muted); font-family: Georgia, 'Times New Roman', serif; font-size: 18px; }
.post-meta { margin: 18px 0 0; color: var(--alinbb-muted); }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding: 42px 0 64px; }
.post-card { min-width: 0; }
.post-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alinbb-line); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card .post-category { margin-top: 16px; }
.post-card-title { margin: 8px 0 0; font-size: 20px; font-weight: 700; line-height: 1.18; }
.post-card .post-meta { margin-top: 16px; }
.pagination { padding: 0 0 72px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.pagination a,
.pagination span { min-width: 38px; padding: 8px 10px; border: 1px solid var(--alinbb-ink); text-align: center; }
.pagination .current { background: var(--alinbb-ink); color: #fff; }

.page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--alinbb-line); }
.archive-grid { padding-top: 36px; }
.empty-state { max-width: 640px; padding: 72px 0; }
.empty-state h1 { margin: 0; font-size: 42px; line-height: 1.05; }
.empty-state p { margin: 18px 0 0; color: var(--alinbb-muted); font-family: Georgia, 'Times New Roman', serif; font-size: 18px; }

.single-post { width: min(1050px, var(--alinbb-shell)); padding: 64px 0 72px; margin-inline: auto; }
.single-post-header { width: min(820px, 100%); margin-inline: auto; text-align: center; }
.single-post-header .post-category { display: inline-block; }
.single-post-title { margin: 14px 0 0; font-size: clamp(42px, 5.8vw, 80px); font-weight: 700; line-height: 1.02; }
.single-post-dek { margin: 22px auto 0; color: var(--alinbb-muted); font-family: Georgia, 'Times New Roman', serif; font-size: 21px; line-height: 1.45; }
.single-post-header .post-meta { margin-top: 20px; }
.single-post-image { aspect-ratio: 16 / 9; margin: 42px 0; overflow: hidden; background: var(--alinbb-line); }
.single-post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-content { width: min(720px, 100%); margin-inline: auto; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.72; }
.post-content > * { margin: 0 0 1.4em; }
.post-content h2,
.post-content h3,
.post-content h4 { margin-top: 2.1em; font-family: Inter, Arial, sans-serif; font-weight: 700; line-height: 1.12; }
.post-content h2 { font-size: 34px; }
.post-content h3 { font-size: 27px; }
.post-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-content blockquote { padding: 22px 28px; margin-inline: 0; border-left: 3px solid var(--alinbb-ink); background: #e8e7df; font-size: 24px; line-height: 1.35; }
.post-content img { height: auto; }
.post-content .wp-block-image { margin: 2em 0; }
.post-footer { display: flex; flex-wrap: wrap; gap: 10px; width: min(720px, 100%); padding-top: 28px; margin: 48px auto 0; border-top: 1px solid var(--alinbb-line); }
.post-footer a { padding: 7px 10px; border: 1px solid var(--alinbb-ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: min(1050px, 100%); padding: 32px 0; margin: 0 auto; border-top: 1px solid var(--alinbb-line); }
.post-navigation a { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.post-navigation .nav-next { text-align: right; }

.site-page { width: min(900px, var(--alinbb-shell)); padding: 64px 0; margin-inline: auto; }
.site-page h1 { margin: 0 0 32px; font-size: clamp(42px, 5vw, 72px); line-height: 1; }
.site-page .entry-content { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.7; }
.site-page .entry-content > * { margin: 0 0 1.3em; }

.comments-area { width: min(720px, 100%); padding-top: 40px; margin: 54px auto 0; border-top: 1px solid var(--alinbb-line); }
.comments-title { font-size: 28px; }
.comment-list { padding: 0; margin: 30px 0; list-style: none; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--alinbb-line); }
.comment-author { font-weight: 800; }
.comment-metadata { margin-top: 6px; color: var(--alinbb-muted); }
.comment-content { font-family: Georgia, 'Times New Roman', serif; }
.comment-respond { margin-top: 36px; }
.comment-form p { display: grid; gap: 8px; }
.comment-form input,
.comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--alinbb-ink); border-radius: 0; background: transparent; }
.comment-form .submit { width: auto; padding: 12px 20px; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.site-footer { background: #000; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0; }
.footer-brand { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .34em; }
.footer-signoff { margin: 28px 0 0; font-size: 20px; font-weight: 700; }
.newsletter-form { display: flex; max-width: 420px; margin-top: 18px; border: 1px solid rgba(255, 255, 255, .62); }
.newsletter-form input { min-width: 0; flex: 1; padding: 12px 14px; border: 0; outline: 0; background: transparent; color: #fff; }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter-form button { padding: 12px 18px; border: 0; border-left: 1px solid rgba(255, 255, 255, .62); background: transparent; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.footer-socials { display: flex; gap: 24px; margin-top: 26px; font-size: 22px; }
.footer-heading { margin: 0 0 16px; color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-menu .menu { display: grid; align-items: start; gap: 13px; }
.footer-menu a { color: rgba(255, 255, 255, .75); }
.footer-menu a:hover { color: #fff; }
.footer-legal { padding: 27px max(32px, calc((100vw - 1500px) / 2)); background: var(--alinbb-paper); color: var(--alinbb-ink); font-family: Georgia, 'Times New Roman', serif; font-size: 18px; }
.footer-legal strong { font-size: 23px; }
.back-to-top { position: fixed; right: 20px; bottom: 24px; z-index: 20; display: grid; width: 48px; height: 48px; place-items: center; border: 4px solid #fff; border-radius: 50%; background: var(--alinbb-blush); color: #fff; box-shadow: 0 18px 45px rgba(20, 20, 18, .12); font-size: 20px; }

@media (max-width: 1024px) {
  :root { --alinbb-shell: min(100% - 48px, 1500px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .primary-navigation { display: none; }
  .menu-toggle { display: block; }
  .header-inner.is-open .primary-navigation { display: block; grid-column: 1 / -1; padding: 12px 0 8px; border-top: 1px solid var(--alinbb-line); }
  .header-inner.is-open .primary-navigation .menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .featured-story { grid-template-columns: 1.15fr .85fr; }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-inner > :last-child { grid-column: 2 / 4; }
}

@media (max-width: 767px) {
  :root { --alinbb-shell: calc(100% - 40px); }
  .header-inner { min-height: 56px; }
  .site-title { font-size: 21px; }
  .header-search-button { display: none; }
  .header-inner.is-open .primary-navigation .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-hero { padding: 38px 0 30px; }
  .featured-story { grid-template-columns: 1fr; padding: 30px 0; }
  .featured-story-title { font-size: 34px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; padding: 30px 0 48px; }
  .post-card-title { font-size: 17px; }
  .single-post { padding: 42px 0; }
  .single-post-dek { font-size: 18px; }
  .single-post-image { margin: 30px 0; }
  .post-content { font-size: 18px; }
  .post-content h2 { font-size: 29px; }
  .post-navigation { gap: 14px; }
  .post-navigation a { font-size: 16px; }
  .site-page { padding: 42px 0; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 48px 0; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .footer-inner > :last-child { grid-column: auto; }
  .footer-legal { padding: 24px 20px; font-size: 16px; }
}
