/*
Theme Name: LifeIRL
Theme URI: https://lifeirl.in/
Author: LifeIRL
Author URI: https://lifeirl.in/
Description: A lightweight, editorial WordPress theme for LifeIRL — Real life. No filter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lifeirl
*/

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #efefeb;
  --text: #111111;
  --muted: #6f6f6a;
  --border: #deded8;
  --accent: #ff3b30;
  --accent-dark: #d92b22;
  --max: 1180px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 9999;
  padding: 10px 14px; background: #000; color: #fff;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,247,245,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: 76px; display: flex; align-items: center; gap: 28px;
}
.site-branding { display:flex; align-items:center; gap:12px; margin-right:auto; }
.custom-logo { max-height: 42px; width:auto; }
.site-title {
  font-weight: 950; letter-spacing: -1.7px; font-size: 25px;
}
.site-title span { color: var(--accent); }
.site-description { display:none; }

.primary-menu { display:flex; align-items:center; gap:22px; list-style:none; padding:0; margin:0; }
.primary-menu a { font-weight: 750; font-size: 14px; }
.primary-menu a:hover { color: var(--accent); }

.header-search {
  width: 38px; height: 38px; border:1px solid var(--border);
  border-radius: 50%; display:grid; place-items:center; font-weight:800;
}
.mobile-toggle { display:none; border:0; background:transparent; font-size:25px; }

.hero { padding: 78px 0 54px; }
.hero-grid {
  display:grid; grid-template-columns: 1.45fr .75fr; gap:32px; align-items:end;
}
.eyebrow {
  display:inline-flex; align-items:center; gap:8px; font-size:12px;
  font-weight:900; text-transform:uppercase; letter-spacing:1.4px; color:var(--accent);
}
.hero h1 {
  margin: 14px 0 12px; font-size: clamp(48px, 8vw, 94px);
  line-height:.91; letter-spacing:-5px; font-weight:950;
}
.hero h1 span { color:var(--accent); }
.hero-copy { color:var(--muted); font-size:18px; max-width:620px; }
.hero-side {
  border-left:3px solid var(--accent); padding-left:22px;
  color:#333; font-size:18px;
}

.section { padding: 30px 0 70px; }
.section-head {
  display:flex; align-items:end; justify-content:space-between; gap:20px;
  margin-bottom:20px;
}
.section-head h2 {
  margin:0; font-size:clamp(28px,4vw,44px); line-height:1; letter-spacing:-2px;
}
.section-head p { margin:0; color:var(--muted); max-width:540px; }
.section-link { font-weight:850; color:var(--accent); white-space:nowrap; }

.story-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.story-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:transform .2s ease, box-shadow .2s ease;
}
.story-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.story-image { aspect-ratio: 16/9; background:var(--surface-2); overflow:hidden; }
.story-image img { width:100%; height:100%; object-fit:cover; }
.story-body { padding:20px; }
.story-meta {
  display:flex; align-items:center; gap:10px; color:var(--muted);
  font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.7px;
}
.story-body h3 { margin:9px 0 0; font-size:22px; line-height:1.15; letter-spacing:-.7px; }
.story-body h3 a:hover { color:var(--accent); }

.featured-grid { display:grid; grid-template-columns:1.4fr .6fr; gap:18px; }
.featured-main, .featured-small {
  background:#111; color:#fff; border-radius:var(--radius); overflow:hidden; position:relative;
}
.featured-main { min-height:480px; }
.featured-small { min-height:231px; }
.featured-main img, .featured-small img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.68;
}
.featured-overlay {
  position:absolute; inset:0; padding:28px; display:flex; flex-direction:column; justify-content:flex-end;
  background:linear-gradient(transparent 25%, rgba(0,0,0,.88));
}
.featured-overlay h3 { font-size:clamp(28px,4vw,48px); line-height:1.03; letter-spacing:-1.5px; margin:8px 0 0; }
.featured-small .featured-overlay { padding:22px; }
.featured-small .featured-overlay h3 { font-size:25px; }
.featured-label { color:#fff; background:var(--accent); display:inline-block; width:max-content; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:900; text-transform:uppercase; }
.featured-stack { display:grid; gap:18px; }

.tools-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.tool-card {
  padding:24px; border:1px solid var(--border); background:var(--surface);
  border-radius:var(--radius);
}
.tool-card .tool-icon { font-size:30px; }
.tool-card h3 { margin:10px 0 5px; font-size:22px; }
.tool-card p { color:var(--muted); margin:0 0 18px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 16px; border-radius:10px; background:var(--text); color:#fff;
  border:1px solid var(--text); font-weight:850;
}
.btn:hover { background:var(--accent); border-color:var(--accent); }
.btn-outline { background:transparent; color:var(--text); border-color:var(--border); }

.newsletter {
  background:#111; color:#fff; border-radius:var(--radius); padding:34px;
  display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:center;
}
.newsletter h2 { margin:0 0 7px; font-size:34px; line-height:1.05; letter-spacing:-1.5px; }
.newsletter p { color:#c9c9c9; margin:0; }
.newsletter-form { display:flex; gap:8px; }
.newsletter-form input {
  flex:1; min-width:0; padding:13px 14px; border-radius:10px; border:1px solid #444;
  background:#fff; color:#111;
}
.newsletter-form .btn { background:var(--accent); border-color:var(--accent); }

.site-footer { border-top:1px solid var(--border); padding:42px 0; margin-top:25px; }
.footer-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:30px; }
.footer-title { font-weight:950; font-size:22px; }
.footer-title span { color:var(--accent); }
.footer-grid p { color:var(--muted); }
.footer-menu { list-style:none; margin:0; padding:0; display:grid; gap:7px; }
.footer-menu a:hover { color:var(--accent); }
.footer-bottom { margin-top:28px; padding-top:18px; border-top:1px solid var(--border); color:var(--muted); font-size:13px; display:flex; justify-content:space-between; gap:20px; }

.page-header { padding:65px 0 30px; }
.page-header h1 { font-size:clamp(40px,6vw,68px); line-height:1; letter-spacing:-3px; margin:0 0 12px; }
.page-header p { color:var(--muted); max-width:700px; }

.content-area { padding:20px 0 70px; }
.posts-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.pagination { margin-top:35px; display:flex; justify-content:center; gap:7px; }
.pagination .page-numbers { padding:8px 12px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.pagination .current { background:#111; color:#fff; border-color:#111; }

.single-layout { max-width:860px; margin-inline:auto; }
.single-header { padding:65px 0 25px; }
.single-header h1 { font-size:clamp(40px,6vw,72px); line-height:.98; letter-spacing:-3px; margin:10px 0 18px; }
.single-meta { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); font-size:13px; }
.single-featured { margin:20px 0 35px; border-radius:var(--radius); overflow:hidden; }
.entry-content { font-size:18px; }
.entry-content h2 { margin-top:45px; font-size:34px; line-height:1.1; letter-spacing:-1px; }
.entry-content h3 { margin-top:35px; font-size:26px; }
.entry-content a { color:var(--accent-dark); text-decoration:underline; text-underline-offset:3px; }
.entry-content blockquote {
  border-left:4px solid var(--accent); padding:10px 20px; margin:30px 0;
  background:#fff; font-size:21px; font-weight:650;
}
.entry-content table { width:100%; border-collapse:collapse; background:#fff; }
.entry-content th, .entry-content td { padding:11px; border:1px solid var(--border); text-align:left; }

.related { margin-top:60px; padding-top:35px; border-top:1px solid var(--border); }
.related h2 { font-size:30px; letter-spacing:-1px; }

.search-form { display:flex; gap:8px; max-width:650px; }
.search-form input[type="search"] {
  flex:1; padding:13px 14px; border:1px solid var(--border); border-radius:10px; background:#fff;
}
.search-form input[type="submit"] { border:0; }

.tool-wrap { max-width:820px; margin:0 auto; padding:55px 0 75px; }
.tool-card-large {
  background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:28px;
}
.tool-grid-form { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.field label { display:block; font-weight:800; margin-bottom:6px; }
.field input, .field select {
  width:100%; padding:12px; border:1px solid var(--border); border-radius:9px; background:#fff;
}
.tool-result {
  margin-top:24px; padding:20px; border-radius:12px; background:#111; color:#fff;
}
.tool-result strong { color:#fff; }
.result-number { font-size:34px; font-weight:950; letter-spacing:-1px; }
.tool-note { color:var(--muted); font-size:13px; margin-top:14px; }

.empty-state { padding:40px; background:#fff; border:1px dashed var(--border); border-radius:var(--radius); }
.no-results { padding:35px 0 70px; }

.wp-block-button__link { background:var(--text); }
.wp-block-button__link:hover { background:var(--accent); }

@media (max-width: 900px) {
  .primary-menu {
    display:none; position:absolute; top:76px; left:0; right:0; padding:16px 20px;
    background:var(--bg); border-bottom:1px solid var(--border); flex-direction:column; align-items:flex-start;
  }
  .primary-menu.is-open { display:flex; }
  .mobile-toggle { display:block; }
  .header-search { display:none; }
  .hero-grid, .newsletter, .footer-grid { grid-template-columns:1fr; }
  .featured-grid { grid-template-columns:1fr; }
  .featured-main { min-height:410px; }
  .tools-grid, .story-grid, .posts-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width:min(calc(100% - 28px), var(--max)); }
  .hero { padding-top:48px; }
  .hero h1 { letter-spacing:-3px; }
  .tools-grid, .story-grid, .posts-grid, .tool-grid-form { grid-template-columns:1fr; }
  .section { padding-bottom:48px; }
  .newsletter { padding:24px; }
  .newsletter-form { flex-direction:column; }
  .footer-bottom { flex-direction:column; }
}
