/*
Theme Name: Aster Grove Notes
Author: Nolan Pierce Studio
Description: A classic PHP WordPress theme with editable Framer-inspired layout, dynamic navigation, dynamic categories, and Customizer-controlled colors and typography.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ago-theme
*/

:root {
  --ago-bg: #ffffff;
  --ago-hero-bg: #f7efe5;
  --ago-text: #000000;
  --ago-muted: #616161;
  --ago-line: #0000001a;
  --ago-headline: #e3cfb3;
  --ago-accent: #005eff;
  --ago-nav-bg: #ffffffe6;
  --ago-card-bg: #ffffff;
  --ago-button-bg: #0000004d;
  --ago-body-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ago-display-font: "Ranchers", "Arial Black", Impact, sans-serif;
  --ago-hero-font-size: 180px;
  --ago-hero-font-size-mobile: 76px;
  --ago-section-font-size: 64px;
  --ago-radius: 26px;
  --ago-shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ago-bg);
  color: var(--ago-text);
  font-family: var(--ago-body-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover,
a:focus-visible {
  color: var(--ago-accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ago-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ago-site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ago-nav-wrap {
  width: min(100% - 28px, 520px);
  pointer-events: auto;
}

.ago-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: max-content;
  max-width: 100%;
  min-height: 40px;
  margin: 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--ago-line);
  border-radius: 999px;
  background: var(--ago-nav-bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
}

.ago-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  min-height: 22px;
  color: var(--ago-text);
  font-weight: 900;
  line-height: 1;
}

.ago-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 8px;
  color: var(--ago-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ago-brand__logo {
  width: auto;
  max-width: 86px;
  max-height: 24px;
  object-fit: contain;
}

.ago-desktop-nav {
  display: none;
}

.ago-menu,
.ago-mobile-menu,
.ago-footer-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ago-menu a,
.ago-mobile-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #424242;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.ago-menu-item {
  position: relative;
}

.ago-sub-menu {
  display: none;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--ago-line);
  border-radius: 18px;
  background: var(--ago-nav-bg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.ago-menu-item:hover > .ago-sub-menu,
.ago-menu-item:focus-within > .ago-sub-menu {
  display: grid;
  gap: 2px;
}

.ago-desktop-nav .ago-sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
}

.ago-sub-menu a {
  display: flex;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
}

.ago-sub-menu a:hover,
.ago-sub-menu a:focus-visible {
  background: #f5f5f5;
}

.ago-menu a:hover,
.ago-menu a:focus-visible,
.ago-mobile-menu a:hover,
.ago-mobile-menu a:focus-visible {
  color: var(--ago-text);
}

.ago-menu-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ago-menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f0f0f0;
  color: var(--ago-text);
  cursor: pointer;
}

.ago-menu-toggle__icon {
  position: relative;
  display: block;
  width: 14px;
  height: 10px;
}

.ago-menu-toggle__icon::before,
.ago-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  transition: transform 160ms ease, top 160ms ease;
}

.ago-menu-toggle__icon::before {
  top: 1px;
}

.ago-menu-toggle__icon::after {
  top: 7px;
}

.ago-menu-toggle[aria-expanded="true"] .ago-menu-toggle__icon::before,
.ago-menu-checkbox:checked + .ago-nav-shell .ago-menu-toggle__icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.ago-menu-toggle[aria-expanded="true"] .ago-menu-toggle__icon::after,
.ago-menu-checkbox:checked + .ago-nav-shell .ago-menu-toggle__icon::after {
  top: 4px;
  transform: rotate(-45deg);
}

.ago-mobile-panel {
  width: min(100%, 340px);
  margin: 10px auto 0;
  padding: 12px;
  border: 1px solid var(--ago-line);
  border-radius: 24px;
  background: var(--ago-nav-bg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.ago-menu-checkbox:not(:checked) ~ .ago-mobile-panel,
.ago-mobile-panel[hidden] {
  display: none;
}

.ago-mobile-menu {
  align-items: stretch;
  flex-direction: column;
  gap: 2px;
}

.ago-mobile-menu .ago-sub-menu {
  display: grid;
  margin: 2px 0 8px 12px;
  padding: 6px;
  box-shadow: none;
}

.ago-mobile-menu a {
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 16px;
}

.ago-mobile-menu a:hover,
.ago-mobile-menu a:focus-visible {
  background: #f5f5f5;
}

.ago-main {
  min-height: 70vh;
}

.ago-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 96px 18px 40px;
  background:
    linear-gradient(180deg, var(--ago-bg) 0%, var(--ago-hero-bg) 43%, var(--ago-bg) 100%);
}

.ago-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 210px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--ago-bg) 74%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.76) 0 42px, rgba(247, 239, 229, 0.10) 42px 92px);
  opacity: 0.92;
}

.ago-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1220px);
  min-height: 590px;
  margin: 0 auto;
}

.ago-hero__kicker,
.ago-section-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(0, 0, 0, 0.20);
  border-radius: 999px;
  color: #858585;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.ago-hero__kicker span,
.ago-section-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(227, 207, 179, 0.48);
  color: #7a6d5b;
}

.ago-hero__title {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 30px auto 0;
  color: var(--ago-headline);
  font-family: var(--ago-display-font);
  font-size: clamp(var(--ago-hero-font-size-mobile), 14vw, var(--ago-hero-font-size));
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
  text-align: center;
  word-break: keep-all;
}

.ago-hero__visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(80vw, 500px);
  min-height: 350px;
  margin: -58px auto 0;
}

.ago-hero__image {
  position: relative;
  z-index: 3;
  width: min(78vw, 390px);
  margin: 0;
  filter: drop-shadow(0 36px 34px rgba(80, 65, 42, 0.16));
  transform: rotate(-3deg);
}

.ago-hero__image img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
}

.ago-hero__placeholder {
  width: min(78vw, 390px);
  aspect-ratio: 1.55;
  border-radius: 48% 52% 46% 54%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.80), rgba(227, 207, 179, 0.82)),
    linear-gradient(20deg, rgba(186, 166, 138, 0.44), rgba(255, 255, 255, 0));
  box-shadow: var(--ago-shadow-soft);
}

.ago-hero__stage {
  position: relative;
  z-index: 1;
  width: min(72vw, 460px);
  height: min(35vw, 210px);
  margin-top: -10px;
  transform: perspective(760px) rotateX(58deg) rotateZ(45deg);
  transform-origin: center;
}

.ago-hero__stage::before,
.ago-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.ago-hero__stage::before {
  background: linear-gradient(135deg, rgba(233, 220, 198, 0.94), rgba(255, 255, 255, 0.72));
  box-shadow: 26px 26px 70px rgba(119, 90, 48, 0.18);
}

.ago-hero__stage::after {
  transform: translate(42px, 42px);
  background: linear-gradient(135deg, rgba(224, 206, 178, 0.44), rgba(192, 167, 121, 0.28));
  filter: blur(4px);
  opacity: 0.65;
}

.ago-hero__panel {
  position: relative;
  z-index: 4;
  width: min(100%, 280px);
  margin: -52px 0 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.ago-hero__panel-title {
  margin: 0 0 6px;
  color: var(--ago-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.ago-hero__panel-text {
  margin: 0;
  color: var(--ago-muted);
  font-size: 13px;
  line-height: 1.35;
}

.ago-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ago-button-bg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.ago-button:hover,
.ago-button:focus-visible {
  color: #ffffff;
  background: var(--ago-text);
  transform: translateY(-1px);
}

.ago-button--accent {
  background: var(--ago-accent);
}

.ago-hero__swatches {
  position: absolute;
  left: 2px;
  bottom: 98px;
  z-index: 5;
  display: inline-flex;
  gap: 6px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.ago-hero__swatch {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

.ago-hero__swatch--one {
  background: #e3cfb3;
}

.ago-hero__swatch--two {
  background: #ccedff;
}

.ago-hero__swatch--three {
  background: #ffa230;
}

.ago-section {
  padding: 90px 18px;
}

.ago-section--tight {
  padding-top: 64px;
}

.ago-section__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.ago-section__heading {
  max-width: 850px;
  margin: 20px auto 38px;
  color: var(--ago-text);
  font-size: clamp(38px, 7vw, var(--ago-section-font-size));
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-align: center;
}

.ago-post-grid,
.ago-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ago-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--ago-radius);
  background: var(--ago-card-bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.05);
}

.ago-post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  background: #f5f5f5;
}

.ago-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.ago-post-card:hover .ago-post-card__media img {
  transform: scale(1.035);
}

.ago-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.ago-post-card__date,
.ago-single__meta,
.ago-archive__description {
  color: var(--ago-muted);
  font-size: 13px;
}

.ago-post-card__title {
  margin: 0;
  color: var(--ago-text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.ago-post-card__excerpt {
  margin: 0;
  color: var(--ago-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ago-read-more {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: auto;
  color: var(--ago-text);
  font-size: 13px;
  font-weight: 800;
}

.ago-read-more::after {
  content: "";
  width: 18px;
  height: 1px;
  margin-left: 8px;
  background: currentColor;
  transition: width 160ms ease;
}

.ago-read-more:hover::after,
.ago-read-more:focus-visible::after {
  width: 28px;
}

.ago-category-card {
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  min-height: 310px;
  padding: 20px;
  border-radius: var(--ago-radius);
  background: #f5f5f5;
  color: #ffffff;
  isolation: isolate;
}

.ago-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.ago-category-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ago-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ago-category-card__label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.ago-category-card__title {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  line-height: 0.98;
}

.ago-about {
  display: block;
  padding: 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.ago-about__copy {
  max-width: 720px;
}

.ago-about__label {
  margin: 0 0 12px;
  color: var(--ago-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ago-about__title {
  margin: 0 0 16px;
  color: var(--ago-text);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.ago-about__text {
  margin: 0;
  color: var(--ago-muted);
  font-size: 16px;
}

.ago-archive {
  padding: 130px 18px 80px;
}

.ago-archive__inner,
.ago-single {
  width: min(100%, 920px);
  margin: 0 auto;
}

.ago-archive__header,
.ago-single__header {
  margin-bottom: 38px;
  text-align: center;
}

.ago-archive__title,
.ago-single__title {
  margin: 0 0 14px;
  color: var(--ago-text);
  font-size: clamp(40px, 8vw, 86px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.ago-single {
  padding: 140px 18px 80px;
}

.ago-single__content {
  color: var(--ago-text);
  font-size: 18px;
  line-height: 1.75;
}

.ago-single__content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.ago-single__content h2,
.ago-single__content h3,
.ago-single__content h4 {
  line-height: 1.08;
  letter-spacing: 0;
}

.ago-single__content h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.ago-single__content h3 {
  font-size: clamp(24px, 4vw, 34px);
}

.ago-single__content a {
  color: var(--ago-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ago-single__content img {
  border-radius: 22px;
}

.ago-single__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.ago-single__categories a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--ago-line);
  border-radius: 999px;
  color: var(--ago-muted);
  font-size: 12px;
}

.ago-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 56px;
}

.ago-post-nav a {
  display: block;
  padding: 18px;
  border: 1px solid var(--ago-line);
  border-radius: 20px;
  background: #fafafa;
  font-weight: 800;
}

.ago-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 42px;
}

.ago-pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ago-line);
  border-radius: 999px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.ago-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 42px 24px;
  border: 1px solid var(--ago-line);
  border-radius: 24px;
  background: #fafafa;
  color: var(--ago-muted);
  text-align: center;
}

.ago-site-footer {
  overflow: hidden;
  padding: 64px 18px 28px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ago-footer__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.ago-footer__brand-row {
  position: relative;
  display: grid;
  gap: 24px;
  padding-bottom: 54px;
}

.ago-footer__letters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--ago-headline);
  font-family: var(--ago-display-font);
  font-size: clamp(64px, 15vw, 170px);
  line-height: 0.8;
  letter-spacing: 0;
}

.ago-footer__summary {
  max-width: 330px;
  color: var(--ago-muted);
}

.ago-footer__title {
  margin: 0 0 8px;
  color: var(--ago-text);
  font-size: 20px;
  font-weight: 900;
}

.ago-footer__columns {
  display: grid;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ago-footer__heading {
  margin: 0 0 14px;
  color: var(--ago-muted);
  font-size: 13px;
  font-weight: 800;
}

.ago-footer-menu {
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.ago-footer-menu a,
.ago-footer__list a {
  color: var(--ago-text);
  font-size: 14px;
}

.ago-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ago-footer__list li + li {
  margin-top: 9px;
}

.ago-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 46px;
  color: var(--ago-muted);
  font-size: 13px;
}

@media (min-width: 680px) {
  .ago-desktop-nav {
    display: block;
  }

  .ago-menu-toggle,
  .ago-mobile-panel {
    display: none;
  }

  .ago-hero {
    min-height: 760px;
    padding-top: 104px;
  }

  .ago-hero__visual {
    margin-top: -80px;
  }

  .ago-hero__panel {
    position: absolute;
    right: 16px;
    bottom: 80px;
    margin: 0;
  }

  .ago-hero__swatches {
    left: 8px;
    bottom: 112px;
  }

  .ago-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ago-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ago-about {
    padding: 34px;
  }

  .ago-footer__brand-row,
  .ago-footer__columns {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  }

  .ago-footer__summary {
    align-self: end;
  }

  .ago-post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .ago-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ago-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ago-post-card__title {
    font-size: 20px;
  }
}

@media (max-width: 679px) {
  .ago-nav-shell {
    width: 100%;
  }

  .ago-hero {
    min-height: 690px;
  }

  .ago-hero__inner {
    min-height: 540px;
  }

  .ago-hero__title {
    margin-top: 28px;
  }

  .ago-hero__visual {
    min-height: 300px;
    margin-top: -18px;
  }

  .ago-hero__panel {
    margin-right: auto;
  }

  .ago-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .ago-section__heading {
    margin-bottom: 28px;
  }

  .ago-footer__letters {
    justify-content: center;
  }
}
