/*
Theme Name: Mister Alley Easy Home
Author: Mister Alley
Description: A safer WordPress theme for Mister Alley with a normal editable Home page setup.
Version: 0.3
License: GNU General Public License v2 or later
Text Domain: mister-alley-easy-home
*/

:root {
  --ink: #1a1a18;
  --body: #3d3933;
  --muted: #756e63;
  --paper: #f5f0e8;
  --panel: #fffaf2;
  --line: #d8ccbb;
  --accent: #8e6235;
  --accent-dark: #684524;
  --dark: #12120f;
  --olive: #465042;
  --soft: #ece3d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-topbar {
  background: var(--dark);
  color: #e9dfd2;
  text-align: center;
  padding: 10px 16px;
  font: 12px/1.4 Arial, sans-serif;
}

.site-header {
  background: rgba(245,240,232,0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.site-main,
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header-inner { padding-top: 20px; padding-bottom: 16px; }

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}

.site-title {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin: 0;
}

.site-description {
  font: 16px Georgia, serif;
  color: var(--body);
  margin-top: 6px;
}

.header-note {
  color: var(--muted);
  font: 13px/1.45 Arial, sans-serif;
  max-width: 320px;
  text-align: right;
}

.nav-row {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 700 13px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-menu a:hover { color: var(--accent); }

.button,
.wp-block-button__link {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 17px;
  border-radius: 999px;
  font: 700 13px Arial, sans-serif;
  border: 0;
}

.button:hover,
.wp-block-button__link:hover { background: var(--accent-dark); color: white; }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.site-main { padding-top: 42px; }

.hero {
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.hero-image {
  min-height: 620px;
  border: 1px solid var(--line);
  background-color: var(--soft);
  background-image:
    linear-gradient(rgba(18,18,15,0.03), rgba(18,18,15,0.08)),
    url("assets/mister-alley-founder.png");
  background-size: cover;
  background-position: center top;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.eyebrow {
  font: 800 11px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 5.8vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero-copy p {
  margin: 0 0 16px;
  color: var(--body);
  font: 17px/1.65 Arial, sans-serif;
}

.sub { color: var(--muted); }

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

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font: 14px/1.55 Arial, sans-serif;
  max-width: 430px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.article-card,
.edit-card,
.product-card,
.about-card,
.newsletter-box {
  background: var(--panel);
  border: 1px solid var(--line);
}

.article-copy,
.edit-copy,
.product-copy { padding: 16px; }

.product-photo {
  min-height: 190px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font: 700 13px/1.35 Arial, sans-serif;
}

.card-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font: 800 11px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1, h2, h3 { color: var(--ink); }

.article-card h3,
.edit-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.article-copy p,
.edit-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font: 13.5px/1.55 Arial, sans-serif;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.edit-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.promise {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.about-card {
  background: var(--dark);
  color: white;
  padding: 30px;
}

.about-card h2 {
  color: white;
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.about-card p {
  color: #d5cdc0;
  font: 15px/1.65 Arial, sans-serif;
}

.rules {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 22px;
}

.rule {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rule:last-child { border-bottom: 0; }

.num {
  color: var(--accent);
  font: 800 13px Arial, sans-serif;
}

.rule strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.1;
}

.rule span {
  color: var(--muted);
  font: 13.5px/1.5 Arial, sans-serif;
}

.newsletter-box {
  margin-top: 18px;
  background: var(--olive);
  color: white;
  padding: 30px;
}

.newsletter-box h2 {
  color: white;
  margin: 0 0 10px;
}

.disclosure {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.45 Arial, sans-serif;
}

.entry-page {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 34px;
  margin-bottom: 34px;
}

.entry-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.entry-content {
  color: var(--body);
  font-size: 18px;
  max-width: 820px;
}

.entry-content a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-footer {
  padding: 34px 0 44px;
  color: var(--muted);
  font: 13px Arial, sans-serif;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .hero, .edit-feature, .promise { grid-template-columns: 1fr; }
  .grid-4, .product-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-image { min-height: 520px; }
}

@media (max-width: 680px) {
  .brand-row, .nav-row, .section-head { display: block; }
  .header-note { text-align: left; margin-top: 10px; }
  .grid-4, .product-row { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 22px; }
  .hero-image { min-height: 460px; }
}
