/* A Moment with Mateo — Calm UI foundation (FULL CLEAN CSS) */

:root{
  --bg: #f6f2ee;
  --paper: rgba(255,255,255,.72);
  --ink: #2b2420;
  --muted: #6a5f57;
  --line: rgba(43,36,32,.14);
  --shadow: 0 18px 50px rgba(0,0,0,.14);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.10);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(900px 600px at 15% 10%, #fff, transparent 60%),
    radial-gradient(900px 600px at 85% 20%, #efe7de, transparent 60%),
    linear-gradient(180deg, var(--bg), #efe7de);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  letter-spacing: .1px;
}

/* Accessibility */
.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow-soft);
  z-index:9999;
}

/* Layout */
.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.site-header{ position:sticky; top:0; z-index:20; }

/* Nav */
.nav{
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(246,242,238,.72);
  border-bottom: 1px solid var(--line);
}

.nav__inner{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  text-decoration:none;
  color:var(--ink);
  display:flex;
  align-items:baseline;
  gap:8px;
}
.brand__script{
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
}
.brand__plain{
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .2px;
}

.nav__menu{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav__link{
  text-decoration:none;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.65);
  color: var(--ink);
  transform: translateY(-1px);
}
.nav__link.is-active{
  background: rgba(255,255,255,.80);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Mobile menu button */
.nav__toggle{
  display:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
}
.nav__bars{
  display:block;
  width:18px; height:2px;
  background: var(--muted);
  position:relative;
}
.nav__bars::before,
.nav__bars::after{
  content:"";
  position:absolute; left:0;
  width:18px; height:2px;
  background: var(--muted);
}
.nav__bars::before{ top:-6px; }
.nav__bars::after{ top:6px; }

@media (max-width: 820px){
  .nav__toggle{ display:block; }
  .nav__menu{
    position:absolute;
    right:20px;
    top:64px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:10px;
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    min-width: 200px;
  }
  .nav__menu.is-open{ display:flex; }
  .nav__link{ text-align:left; }
}

/* Page layout */
main{ padding: 34px 0 44px; }

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card__pad{ padding: 22px; }

.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

/* Hero */
.hero{
  position:relative;
  min-height: 560px;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#ddd;
}
.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.16) 45%, rgba(0,0,0,0) 70%);
}

.hero__text{
  position:absolute;
  left:18px;
  bottom:18px;
  width:min(560px, calc(100% - 36px));
  color:#fff;
  z-index:2;
  padding:18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.h1{
  margin:0 0 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.03;
  letter-spacing: .2px;
  text-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.p{
  margin:0;
  color: rgba(255,255,255,.90);
  line-height:1.6;
  font-size: 15.5px;
}

.h2{
  margin:0 0 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing:.2px;
}

.body{
  margin: 0;
  line-height: 1.8;
  font-size: 15.5px;
  color: var(--muted);
}
.body + .body{
  margin-top: 20px;
}

.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(43,36,32,.18), transparent);
  margin: 14px 0;
}

/* Buttons / inputs */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  border-radius: 999px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-size: 14px;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
}

.input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  color: var(--ink);
  font-size: 14px;
  outline:none;
}
textarea{ min-height: 120px; resize: vertical; }

label{
  display:block;
  font-size: 13px;
  color: rgba(43,36,32,.65);
  margin: 10px 0 6px;
}

/* Footer */
.footer{
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: rgba(246,242,238,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer__inner{
  padding: 22px 0;
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer__brand{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}
.footer__note{
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  max-width: 420px;
  line-height: 1.6;
}
.footer__right{
  display:flex;
  gap:12px;
  align-items:center;
}
.footer__link{
  color: rgba(43,36,32,.65);
  text-decoration:none;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
}
.footer__link:hover{
  background: rgba(255,255,255,.75);
  color: var(--ink);
}
.footer__bottom{
  border-top: 1px solid rgba(43,36,32,.10);
}
.footer__bottomInner{
  padding: 12px 0 16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color: rgba(43,36,32,.55);
  font-size: 12px;
}
.footer__fine{ color: rgba(43,36,32,.45); }


/* =========================================================
   Moments: 3-up Gallery Cards (with YouTube thumbnails)
   ========================================================= */
.momentsGallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 980px){
  .momentsGallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .momentsGallery{ grid-template-columns: 1fr; }
}

.momentGalleryCard{
  display:flex;
  flex-direction:column;
  height:100%;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(43,36,32,.14);
  background: rgba(255,255,255,.60);
  box-shadow: 0 18px 55px rgba(0,0,0,.11);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.momentGalleryCard{
  transition: 
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.momentGalleryCard:hover{
  transform: translateY(-6px);

  /* subtle warm tint */
  background: rgba(43,36,32,.05);

  /* slightly stronger depth */
  box-shadow: 0 28px 80px rgba(0,0,0,.14);

  /* border becomes a little clearer */
  border-color: rgba(43,36,32,.25);
}

.momentGalleryCard:hover .momentTitle{
  color: rgba(43,36,32,.95);
}

.momentGalleryCard:hover .momentText{
  color: rgba(43,36,32,.80);
}

/* Media area same size across all cards */
.momentMedia{
  width:100%;
  aspect-ratio: 16 / 9;
  background: rgba(43,36,32,.06);
  border-bottom: 1px solid rgba(43,36,32,.12);
  position:relative;
}

/* Thumbnail link */
.momentThumbLink{
  display:block;
  position:relative;
  width:100%;
  height:100%;
  text-decoration:none;
}
.momentThumbnail{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .35s ease;
}
.momentGalleryCard:hover .momentThumbnail{
  transform: scale(1.04);
}

/* Play overlay */
.momentPlayOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.08);
  transition: background .3s ease;
}
.momentGalleryCard:hover .momentPlayOverlay{
  background: rgba(0,0,0,.16);
}
.momentPlay{
  width:54px;
  height:54px;
  border-radius:999px;
  background: rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.momentPlay::before{
  content:"";
  width:0; height:0;
  border-left: 14px solid rgba(43,36,32,.8);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left:3px;
}

/* Card content */
.momentContent{
  padding: 16px 16px 18px 16px;
  display:flex;
  flex-direction:column;
  flex:1; /* makes all cards same height */
}

.momentTitle{
  margin:0 0 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing:.2px;
}

/* Supports <br> line breaks in excerpts nicely */
.momentText{
  margin:0;
  color: rgba(43,36,32,.72);
  line-height: 1.75;
  font-size: 14.8px;
}

.momentGrow{ flex:1; }

.momentActions{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.momentQuietLink{
  font-size: 13px;
  color: rgba(43,36,32,.60);
  text-decoration:none;
  padding:10px 0;
}
.momentQuietLink:hover{
  color: rgba(43,36,32,.85);
  text-decoration: underline;
}


/* =========================================================
   About page: subtle typography polish + centered closing
   ========================================================= */
.reading{
  max-width: 74ch;     /* calm reading width */
  margin: 0 auto;      /* center inside the card */
}

.about-title{
  margin: 0 0 14px 0;
  letter-spacing: .2px;
}

.about-subtitle{
  margin: 6px 0 14px 0;
  font-size: 20px;
  letter-spacing: .2px;
}

.about-p{
  margin: 0 0 18px 0;
  line-height: 1.9;
}

/* Closing block */
.about-closing{
  text-align: center;
  margin-top: 28px;
}
.about-closing .about-p{
  max-width: 520px;
  margin: 0 auto 16px auto;
}
.about-signature{
  display:inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 24px;
  letter-spacing: .6px;
  margin-top: 22px;
  opacity: .92;
}

/* Mobile */
@media (max-width: 640px){
  .reading{ max-width: 100%; }
  .about-signature{ font-size: 19px; }
}




/* Connect section */
.connect-section{
  margin-top: 32px;
}

.connect-inner{
  text-align: center;
}

.connect-title{
  margin-bottom: 14px;
}

.connect-text{
  max-width: 560px;
  margin: 0 auto 16px auto;
}

.connect-links{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

.connect-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  text-decoration:none;
  color: var(--ink);
  font-size: 14px;
  transition: transform .2s ease, background .2s ease;
}

.connect-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.92);
}

.connect-icon{
  width:18px;
  height:18px;
  opacity:.75;
}

.connect-btn.youtube:hover{
  background: rgba(255, 0, 0, .06);
}

.connect-btn.instagram:hover{
  background: rgba(225, 48, 108, .06);
}
.connect-btn.youtube:hover{
  background: rgba(255, 0, 0, .06);
}

.connect-btn.instagram:hover{
  background: rgba(225, 48, 108, .06);
}

/* Clickable thumbnail button (keeps your existing thumbnail style) */
.momentThumbButton{
  appearance:none;
  border:0;
  padding:0;
  margin:0;
  width:100%;
  height:100%;
  display:block;
  background: transparent;
  cursor:pointer;
  position:relative;
}

/* Modal */
.videoModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.videoModal.is-open{ display:block; }

.videoModal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(20, 16, 14, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.videoModal__panel{
  position:relative;
  width:min(980px, calc(100% - 28px));
  margin: 7vh auto 0 auto;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(43,36,32,.16);
  border-radius: 22px;
  box-shadow: 0 26px 90px rgba(0,0,0,.22);
  overflow:hidden;
}

.videoModal__close{
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(43,36,32,.18);
  background: rgba(255,255,255,.78);
  color: rgba(43,36,32,.85);
  cursor:pointer;
  transition: transform .2s ease, background .2s ease;
  z-index:2;
}
.videoModal__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
}

.videoModal__title{
  padding: 16px 58px 10px 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: rgba(43,36,32,.85);
  border-bottom: 1px solid rgba(43,36,32,.10);
}

.videoModal__frameWrap{
  width:100%;
  aspect-ratio: 16 / 9;
  background: rgba(43,36,32,.06);
}
/* --- Letters --- */
.lettersList{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.letterCard{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(43,36,32,.14);
  background: rgba(255,255,255,.60);
  box-shadow: 0 18px 55px rgba(0,0,0,.11);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.letterCard:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.72);
  box-shadow: 0 26px 75px rgba(0,0,0,.13);
}

.letterCard__pad{ padding: 18px; }

.letterMeta{
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(43,36,32,.55);
  font-size: 12px;
  letter-spacing: .22px;
  text-transform: uppercase;
}

.letterMeta__label{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(43,36,32,.14);
  background: rgba(255,255,255,.55);
}

.letterMeta__dot{ opacity:.7; }

.letterTitle{
  margin: 12px 0 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: .2px;
  color: rgba(43,36,32,.88);
}

.letterExcerpt{
  margin: 0;
  color: rgba(43,36,32,.68);
  line-height: 1.8;
  font-size: 15px;
}

.letterActions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-start;
}

/* The long letter text */
.letterBody{
  color: rgba(43,36,32,.72);
  line-height: 1.95;
  font-size: 15.5px;
  white-space: normal; /* keeps nl2br working naturally */
}