/*
Theme Name: LIFEROOM Info
Theme URI: https://liferoom-j.com
Author: LIFEROOM
Description: A clean, fast, Korean information blog theme for health and everyday life articles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: liferoom-info
*/

:root {
  --lr-bg: #fbfaf7;
  --lr-surface: #ffffff;
  --lr-surface-muted: #f2f6f4;
  --lr-text: #1f2933;
  --lr-muted: #667085;
  --lr-line: #dde5df;
  --lr-primary: #24745a;
  --lr-primary-dark: #185843;
  --lr-accent: #d6803f;
  --lr-accent-soft: #fff2e8;
  --lr-radius: 8px;
  --lr-shadow: 0 18px 46px rgba(38, 54, 44, 0.08);
  --lr-container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lr-bg);
  color: var(--lr-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--lr-primary);
}

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

.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;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 32px, var(--lr-container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(221, 229, 223, 0.85);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--lr-radius);
  background: var(--lr-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 20px;
}

.brand-tagline {
  color: var(--lr-muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--lr-radius);
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: var(--lr-surface-muted);
  color: var(--lr-primary-dark);
}

.header-search {
  width: 220px;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: var(--lr-surface);
  overflow: hidden;
}

.search-field {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--lr-text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.search-submit {
  width: 42px;
  min-height: 42px;
  border: 0;
  border-left: 1px solid var(--lr-line);
  background: var(--lr-surface-muted);
  color: var(--lr-primary-dark);
  cursor: pointer;
  font-size: 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: var(--lr-surface);
  color: var(--lr-text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--lr-line);
  background:
    linear-gradient(115deg, rgba(36, 116, 90, 0.12), rgba(214, 128, 63, 0.10)),
    var(--lr-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 18px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(36, 116, 90, 0.24);
  border-radius: var(--lr-radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--lr-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.archive-title,
.entry-title {
  margin: 14px 0 12px;
  color: #17251e;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: #475467;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.topic-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(36, 116, 90, 0.22);
  border-radius: var(--lr-radius);
  background: rgba(255, 255, 255, 0.68);
  color: var(--lr-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.button,
.wp-block-button__link,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--lr-primary);
  border-radius: var(--lr-radius);
  background: var(--lr-primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: var(--lr-surface);
  color: var(--lr-primary-dark);
}

.hero-panel {
  align-self: end;
  border: 1px solid rgba(36, 116, 90, 0.16);
  border-radius: var(--lr-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--lr-shadow);
  overflow: hidden;
}

.hero-panel-head {
  padding: 18px 18px 0;
}

.hero-panel h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.featured-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.featured-list a {
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  border-top: 1px solid var(--lr-line);
}

.featured-list strong {
  font-size: 15px;
  line-height: 1.45;
}

.featured-list span {
  color: var(--lr-muted);
  font-size: 13px;
}

.main-area {
  padding: 30px 0 56px;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--lr-muted);
  font-size: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: var(--lr-surface);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lr-shadow);
}

.post-thumb {
  aspect-ratio: 16 / 9;
  background: var(--lr-surface-muted);
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--lr-primary-dark);
  font-size: 42px;
  font-weight: 900;
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--lr-muted);
  font-size: 13px;
  font-weight: 700;
}

.post-category {
  color: var(--lr-primary-dark);
}

.post-title {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.36;
  letter-spacing: 0;
}

.post-excerpt {
  margin: 0;
  color: #5d6675;
  font-size: 15px;
}

.read-more {
  margin-top: auto;
  padding-top: 16px;
  color: var(--lr-primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.widget {
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: var(--lr-surface);
  padding: 18px;
}

.widget-title,
.widget h2,
.widget h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.35;
}

.widget ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lr-line);
}

.widget li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article {
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: var(--lr-surface);
  overflow: hidden;
}

.article-header {
  padding: 30px 30px 20px;
}

.entry-title {
  font-size: clamp(31px, 4vw, 48px);
}

.article-thumb {
  max-height: 460px;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
}

.liferoom-ad {
  display: block;
  min-height: 90px;
  margin: 24px 30px;
  padding: 8px 0;
  overflow: hidden;
  text-align: center;
}

.entry-content .liferoom-ad {
  margin-right: 0;
  margin-left: 0;
}

.entry-content {
  padding: 8px 30px 34px;
  font-size: 18px;
}

.entry-content h2,
.entry-content h3 {
  margin: 34px 0 12px;
  line-height: 1.32;
  letter-spacing: 0;
}

.entry-content h2 {
  font-size: 28px;
}

.entry-content h3 {
  font-size: 22px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table {
  margin-top: 0;
  margin-bottom: 18px;
}

.entry-content a {
  color: var(--lr-primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--lr-primary);
  background: var(--lr-surface-muted);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--lr-line);
  padding: 10px;
  text-align: left;
}

.entry-footer,
.post-navigation,
.comments-area {
  padding: 0 30px 30px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  padding: 5px 9px;
  border-radius: var(--lr-radius);
  background: var(--lr-surface-muted);
  color: var(--lr-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pagination .page-numbers {
  min-width: 38px;
  min-height: 38px;
  margin: 0 3px;
  padding: 7px 10px;
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-radius);
  background: var(--lr-surface);
  text-align: center;
  font-weight: 800;
}

.pagination .current {
  border-color: var(--lr-primary);
  background: var(--lr-primary);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--lr-line);
  background: #17251e;
  color: #ecf2ee;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}

.footer-inner p {
  margin: 0;
  color: #b9c9c0;
  font-size: 14px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    display: none;
    width: 100%;
  }

  .nav-wrap.is-open {
    display: grid;
    gap: 12px;
  }

  .primary-menu {
    display: grid;
  }

  .header-search {
    width: 100%;
  }

  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--lr-container));
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    padding: 12px 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .article-header,
  .entry-content,
  .entry-footer,
  .post-navigation,
  .comments-area {
    padding-left: 18px;
    padding-right: 18px;
  }

  .liferoom-ad {
    margin-right: 18px;
    margin-left: 18px;
  }

  .entry-content .liferoom-ad {
    margin-right: 0;
    margin-left: 0;
  }

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