/*
Theme Name: Heinels Clone
Theme URI: https://heinels.com/
Author: Codex
Author URI: https://openai.com/
Description: A static WordPress theme clone of the Heinels homepage with desktop and mobile responsive layouts.
Version: 1.0.1
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heinels-clone
Tags: blog, one-column, two-columns, responsive-layout, custom-homepage
*/

:root {
  --page-bg: #ffffff;
  --text: #111111;
  --muted: #8b8b8b;
  --soft: #f5f5f5;
  --line: #eeeeee;
  --logo: #cfd5dd;
  --accent: #b5ad57;
  --footer: #050505;
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  width: 100%;
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
}

.desktop-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1084px, calc(100vw - 56px));
  height: 67px;
  margin: 0 auto;
}

.logo-box {
  display: block;
  flex: none;
  width: 121px;
  height: 32px;
  background: var(--logo);
}

.desktop-header > .logo-box {
  position: absolute;
  left: 0;
  top: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.main-nav a,
.social-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.social-nav a:hover,
.footer-social a:hover,
.footer-bottom a:hover {
  color: #666;
}

.social-nav {
  position: absolute;
  right: 8px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 67px;
  font-size: 14px;
  font-weight: 800;
  text-transform: lowercase;
}

.mobile-header,
.mobile-drawer {
  display: none;
}

.hero {
  width: min(1084px, calc(100vw - 56px));
  margin: 50px auto 0;
}

.hero-placeholder {
  position: relative;
  height: 514px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(230, 230, 230, 0.98) 0%, rgba(226, 226, 226, 0.96) 48%, rgba(94, 94, 94, 0.92) 100%),
    #dedede;
}

.hero-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 31px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.hero-copy h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 800;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  line-height: 1.17;
  letter-spacing: 0;
}

.hero-copy p,
.meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy strong,
.meta strong {
  font-weight: 800;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 710px) 326px;
  gap: 52px;
  width: min(1084px, calc(100vw - 56px));
  margin: 48px auto 0;
}

.feed {
  min-width: 0;
}

.post-card {
  position: relative;
  padding-bottom: 62px;
  margin-bottom: 38px;
  border-bottom: 1px solid #e7e7e7;
}

.post-card:last-of-type {
  margin-bottom: 26px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 35px;
  padding: 0 22px;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  color: #aaa;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.post-card h2 {
  max-width: 710px;
  margin: 30px 0 22px;
  font-size: 34px;
  font-weight: 800;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  line-height: 1.22;
  letter-spacing: 0;
}

.post-card .meta {
  color: #999;
}

.post-card .meta strong {
  color: #111;
}

.comment-badge {
  position: absolute;
  top: 180px;
  right: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: #222;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.comment-badge::after {
  position: absolute;
  right: 2px;
  bottom: -4px;
  width: 0;
  height: 0;
  border-top: 4px solid #222;
  border-left: 4px solid transparent;
  content: "";
}

.media-gap {
  height: 472px;
}

.excerpt {
  max-width: 675px;
  margin: 0;
  color: #898989;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.58;
}

.read-more,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 43px;
  min-width: 147px;
  margin-top: 35px;
  padding: 0 25px;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  color: #a9a9a9;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.read-more span,
.load-more span {
  margin-left: 12px;
  font-size: 18px;
  line-height: 0;
}

.read-more:hover,
.load-more:hover {
  color: #333;
  border-color: #cfcfcf;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin: -3px 0 63px;
}

.load-more {
  min-width: 96px;
  height: 30px;
  margin: 0;
  padding: 0 18px;
  font-size: 10px;
}

.sidebar {
  padding-top: 0;
}

.author-card {
  text-align: center;
}

.avatar {
  width: 198px;
  height: 198px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--logo);
}

.author-card h2 {
  margin: 0 0 27px;
  color: #555;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.author-card > p {
  max-width: 300px;
  margin: 0 auto 35px;
  color: #777;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.social-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 59px;
}

.social-stats a {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 98px;
  padding: 13px 8px 11px;
  border: 1px solid #ededed;
  color: #555;
}

.stat-icon {
  color: #555;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.social-stats strong {
  font-size: 14px;
  font-weight: 800;
}

.social-stats span:last-child {
  font-size: 14px;
  font-weight: 700;
}

.dont-miss h2 {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid #ebebeb;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.dont-miss h2::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 31px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.dont-miss ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dont-miss li {
  padding: 20px 0 21px;
  border-bottom: 1px solid #e5e5e5;
}

.dont-miss a {
  display: block;
  color: #6d6d6d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
}

.dont-miss p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: #999;
  font-size: 11px;
  font-weight: 700;
}

.dont-miss strong {
  color: #111;
  font-weight: 800;
}

.site-footer {
  padding: 29px 0 30px;
  color: #fff;
  background: var(--footer);
  text-align: center;
}

.footer-logo {
  width: 101px;
  height: 36px;
  margin: 0 auto 25px;
}

.footer-tagline {
  width: min(560px, calc(100vw - 32px));
  margin: 0 auto 13px;
  color: #dfdfdf;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.55;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 31px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #202020;
  color: #f4f4f4;
  font-size: 10px;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1084px, calc(100vw - 56px));
  margin: 0 auto;
  color: #9b9b9b;
  font-size: 8px;
  font-weight: 700;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: 17px;
}

@media (max-width: 900px) {
  .desktop-header {
    display: none;
  }

  .site-header {
    position: relative;
    border-bottom: 0;
    background: #000;
  }

  .mobile-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    background: #000;
  }

  .mobile-header .logo-box {
    width: 100px;
    height: 30px;
  }

  .menu-button {
    position: absolute;
    left: 17px;
    top: 15px;
    display: grid;
    gap: 4px;
    width: 23px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 23px;
    height: 3px;
    background: #fff;
  }

  .mobile-drawer {
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #171717;
    background: #000;
  }

  .mobile-drawer.is-open {
    display: grid;
  }

  .mobile-drawer a {
    padding: 15px 18px;
    border-bottom: 1px solid #171717;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }

  .hero {
    width: 100%;
    margin-top: 28px;
  }

  .hero-placeholder {
    height: 238px;
  }

  .hero-copy {
    left: 9px;
    right: 0;
    bottom: 20px;
    width: 620px;
  }

  .hero-copy h1 {
    width: 430px;
    margin-bottom: 14px;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.78;
    white-space: normal;
  }

  .hero-copy p {
    font-size: 10px;
  }

  .content-shell {
    display: block;
    width: 100%;
    margin-top: 27px;
  }

  .feed {
    width: 100%;
    overflow: hidden;
  }

  .post-card {
    padding: 0 18px 34px;
    margin-bottom: 27px;
  }

  .category-pill {
    min-width: 84px;
    height: 28px;
    padding: 0 18px;
    font-size: 10px;
  }

  .post-card h2 {
    width: 455px;
    max-width: none;
    margin: 27px 0 21px;
    font-size: 26px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.16;
  }

  .post-card .meta {
    font-size: 10px;
  }

  .comment-badge {
    display: none;
  }

  .media-gap {
    height: 315px;
  }

  .excerpt {
    width: 540px;
    max-width: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.46;
  }

  .read-more {
    min-width: 126px;
    height: 42px;
    margin-top: 28px;
    padding: 0 21px;
    font-size: 13px;
  }

  .sidebar {
    display: none;
  }

  .load-more-row {
    display: none;
  }

  .site-footer {
    padding-top: 27px;
  }

  .footer-bottom {
    display: block;
    width: calc(100vw - 36px);
    text-align: center;
  }

  .footer-bottom nav {
    justify-content: center;
    margin-top: 16px;
  }
}

@media (min-width: 901px) and (max-width: 1140px) {
  .content-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

  .post-card h2 {
    font-size: 30px;
  }
}
