/*
Theme Name: Absolutely Gardens
Theme URI: https://www.absolutelygardens.co.uk/
Author: Absolutely Gardens
Description: An editorial, wide-canvas block theme for garden and horticulture storytelling. Includes reusable patterns for hero, featured posts grid and content areas.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: absolutely-gardens
Tags: block-patterns, blog, full-site-editing, editorial, wide-blocks
*/

/* Editorial refinements */
body {
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
}

/* Wider gutters on desktop */
:where(.is-layout-constrained) > * {
  max-width: var(--wp--style--global--content-size);
}
:where(.is-layout-constrained) > .alignwide {
  max-width: var(--wp--style--global--wide-size);
}

/* Editorial card treatment */
.ag-card {
  overflow: hidden;
  border-radius: 6px;
  transition: transform .5s ease, box-shadow .5s ease;
}
.ag-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(31, 41, 32, .35); }
.ag-card img { transition: transform .8s ease; display:block; width:100%; height:auto; }
.ag-card:hover img { transform: scale(1.04); }

.ag-eyebrow {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  color: var(--wp--preset--color--terracotta);
}

.ag-rule {
  width: 48px;
  height: 2px;
  background: var(--wp--preset--color--terracotta);
  border: 0;
  margin: 0 0 1.25rem;
}

/* Asymmetric featured grid */
.ag-featured-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
}
.ag-featured-grid > article:nth-child(1) { grid-column: span 6; }
.ag-featured-grid > article:nth-child(2),
.ag-featured-grid > article:nth-child(3) { grid-column: span 3; }
.ag-featured-grid > article:nth-child(4),
.ag-featured-grid > article:nth-child(5),
.ag-featured-grid > article:nth-child(6) { grid-column: span 2; }

@media (max-width: 900px) {
  .ag-featured-grid > article { grid-column: span 6 !important; }
}

.ag-featured-grid article { background: var(--wp--preset--color--cream); }
.ag-featured-grid .ag-body { padding: 1.5rem 1.5rem 2rem; }
.ag-featured-grid h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  line-height: 1.15;
  margin: .5rem 0 .75rem;
  letter-spacing: -0.01em;
}
.ag-featured-grid > article:nth-child(1) h3 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  max-width: 32ch;
}
.ag-featured-grid p {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--wp--preset--color--ink-soft);
  margin: 0 0 1rem;
}
.ag-featured-grid a.ag-more {
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--moss);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Content-area section */
.ag-areas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
}
.ag-areas > .ag-areas-title { grid-column: span 4; }
.ag-areas > .ag-areas-body  { grid-column: span 8; }
@media (max-width: 900px) {
  .ag-areas > * { grid-column: span 12 !important; }
}
.ag-areas h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
