/* LifeofMaya 1.3.0. Local fonts, warm charcoal, phone-first editorial layout. */
@font-face {
  font-family: "Maya Editorial";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Maya Sans";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  --bg: #171615;
  --surface: #211e1b;
  --ink: #f0e8df;
  --muted: #bdb4aa;
  --accent: #d0a489;
  --rule: #3e3731;
  --font-editorial: "Maya Editorial", Georgia, serif;
  --font-body: "Maya Sans", "Segoe UI", sans-serif;
}
body {
  background: radial-gradient(ellipse 100% 700px at 24% 0, #30271f80, transparent 100%), var(--bg);
  font-family: var(--font-body);
  line-height: 1.65;
}
::selection { background: #d0a489; color: #171615; }
h1, h2, .brand, .entry-title, .diary-preview-copy h3, .day-number,
.diary-note h4, .motion-copy h4, .undated-heading h3, .journal-end>p {
  font-family: var(--font-editorial);
  font-weight: 500;
  letter-spacing: -.035em;
}
.masthead { height: 72px; min-height: 0; margin: 0 18px; gap: 16px; flex-wrap: nowrap; padding: 0; }
.masthead .brand { font-size: 1.85rem; letter-spacing: -.04em; white-space: nowrap; }
.masthead-caption { display: none; }
.masthead nav { width: auto; margin-left: auto; justify-content: normal; gap: 16px; font-size: .75rem; }
.masthead nav>a { display: inline-flex; align-items: center; min-height: 44px; }
.opening { display: flex; flex-direction: column; gap: 24px; margin: 30px 18px 0; align-items: stretch; }
.opening-copy { padding: 0; }
.opening-copy .eyebrow { margin: 0 0 10px; font-size: .625rem; letter-spacing: .2em; }
.lifeof-title { font-size: clamp(3.4rem, 15vw, 5rem); line-height: .98; font-weight: 500; }
.lifeof-title>br { display: block; }
.opening-story { margin-top: 16px; max-width: 32ch; font-size: .875rem; line-height: 1.8; }
.opening-copy .text-link { margin-top: 16px; font-size: .75rem; min-height: 38px; display: inline-flex; align-items: center; gap: 28px; padding-bottom: 0; }
.cover .photo-button { width: 100%; height: auto; aspect-ratio: 5/4; }
.cover img { object-position: 50% 49%; }
.cover figcaption { margin-top: 12px; font-size: .625rem; gap: 14px; line-height: 1.6; }
.cover figcaption>span:last-child { text-align: right; }
.journal, .development { margin-left: 18px; margin-right: 18px; }
.journal { margin-top: 64px; }
.journal-heading { align-items: baseline; gap: 16px; }
.journal-heading h2 { font-size: clamp(2rem, 8.5vw, 2.8rem); line-height: 1.1; }
.journal-heading>p { font-size: .625rem; letter-spacing: .06em; white-space: nowrap; max-width: none; }
.month-picker { margin: 24px 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.month-picker summary { min-height: 58px; display: flex; gap: 14px; align-items: center; cursor: pointer; list-style: none; }
.month-picker summary::-webkit-details-marker { display: none; }
.month-picker-label { color: var(--muted); font-size: .75rem; }
.month-picker-value { margin-left: auto; font-size: .8125rem; text-align: right; }
.month-picker-icon { color: var(--accent); font-size: 1.4rem; width: 22px; text-align: center; transition: transform .2s; }
.month-picker[open] .month-picker-icon { transform: rotate(45deg); }
.month-filter { border: 0; padding: 0 0 20px; margin: 0; gap: 10px; }
.month-filter label { width: 100%; font-size: .75rem; }
.month-filter select { min-width: 0; flex: 1; font-size: 1rem; min-height: 48px; border-color: #756558; border-radius: 0; padding: 10px; }
.month-filter button { flex: 0 0 auto; min-height: 48px; font-size: .75rem; padding: 10px 14px; }
.month-result { margin: -8px 0 26px; font-size: .75rem; }
.diary-previews { grid-template-columns: 1fr; gap: 38px; }
.diary-preview-image { aspect-ratio: 4/3; }
.diary-preview-image img { object-position: center; }
.diary-preview-copy { padding: 17px 0 20px; }
.preview-date, .preview-media { font-size: .75rem; }
.diary-preview-copy h3 { font-size: 2rem; line-height: 1.12; margin: 8px 0 16px; }
.preview-media>span { font-size: 1.25rem; }
.preview-video { background: #171615ed; font-size: .625rem; padding: 5px 10px; }
.diary-preview-link { -webkit-tap-highlight-color: #d0a48920; }
.archive-pagination { margin: 36px 0; gap: 10px; }
.archive-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.single-entry { margin-top: 32px; }
.single-entry .entry-back { min-height: 44px; display: inline-flex; align-items: center; font-size: .75rem; }
.single-entry>.day { margin-top: 24px; }
.single-heading { margin-bottom: 28px; }
.single-heading>p { font-size: .75rem; margin-bottom: 14px; }
.single-heading h1 { font-size: clamp(2.6rem, 10.5vw, 4rem); line-height: 1.05; }
.entry-title { font-size: 2rem; }
.entry-content { font-size: 1rem; line-height: 1.85; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-editorial); font-weight: 500; }
.entry-content .wp-block-gallery img, .entry-content .wp-block-gallery .photo-button { aspect-ratio: auto; }
.entry-content .wp-block-gallery img { height: auto!important; object-fit: contain; }
.entry-content .postie-post img:not(.maya-mail-symbol):not(.emoji):not(.wp-smiley) { max-height: none; }
.day-entry+.day-entry { margin-top: 44px; padding-top: 36px; }
.development { margin-top: 72px; }
.development h2 { font-size: clamp(2.5rem, 10vw, 3.5rem); line-height: 1.05; }
.measurement-controls { padding: 18px 0; }
.measurement-controls select { min-height: 48px; border-color: #756558; }
.chart-metric button, #viewer-location { min-height: 44px; }
.lightbox { background: #171615; padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.viewer-top h2 { font-family: var(--font-body); }
.viewer-close { min-height: 44px; }
.photo-button, .diary-preview-image { background: var(--surface); }
.footer { margin: 72px 18px 0; padding-bottom: env(safe-area-inset-bottom); min-height: 130px; }
.footer>.brand { font-size: 1.9rem; }
.footer .text-link { min-height: 44px; display: inline-flex; align-items: center; }
@media(min-width:701px) {
  .masthead { margin: 0 5%; height: 90px; }
  .masthead .brand { font-size: 2.5rem; }
  .masthead-caption { display: block; font-size: .625rem; }
  .masthead nav { gap: 30px; font-size: .8125rem; }
  .opening { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 7%; margin: 48px 5% 0; }
  .lifeof-title { font-size: clamp(4.2rem, 7.2vw, 7.5rem); }
  .opening-copy .eyebrow { font-size: .6875rem; margin-bottom: 22px; }
  .opening-story { font-size: .9375rem; margin-top: 24px; }
  .opening-copy .text-link { margin-top: 22px; font-size: .8125rem; min-height: 44px; }
  .cover .photo-button { aspect-ratio: 4/5; max-height: 720px; }
  .cover figcaption { font-size: .6875rem; }
  .journal, .development { margin-left: 5%; margin-right: 5%; }
  .journal { margin-top: 100px; }
  .journal-heading h2 { font-size: 3.5rem; }
  .journal-heading>p { font-size: .75rem; }
  .month-picker { margin: 28px 0 38px; }
  .month-picker summary { min-height: 64px; }
  .month-picker-label, .month-picker-value { font-size: .8125rem; }
  .month-filter { max-width: 560px; }
  .month-filter label { width: auto; }
  .diary-previews { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px 28px; }
  .diary-preview-copy h3 { font-size: 2.2rem; }
  .single-entry { margin-top: 48px; }
  .single-heading h1 { font-size: clamp(3.5rem, 6vw, 6rem); }
  .entry-content .wp-block-gallery img, .entry-content .wp-block-gallery .photo-button { aspect-ratio: 3/4; object-fit: cover; }
  .development { margin-top: 110px; }
  .development h2 { font-size: 4rem; }
  .footer { margin: 100px 5% 0; }
}
@media(min-width:1001px) {
  .opening, .journal, .development { margin-left: 7.1%; margin-right: 7.1%; }
  .diary-previews { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 32px; }
  .diary-preview-copy h3 { font-size: 2.35rem; }
}
@media(min-width:1700px) {
  .opening, .journal, .development { max-width: 1460px; margin-left: auto; margin-right: auto; }
}
@media(max-width:359px) {
  .masthead { gap: 10px; }
  .masthead .brand { font-size: 1.6rem; }
  .masthead nav { gap: 12px; font-size: .6875rem; }
  .cover figcaption { flex-wrap: wrap; }
  .cover figcaption>span:last-child { text-align: left; }
}
@media(prefers-reduced-motion:reduce) {
  .month-picker-icon { transition: none; }
}
