/*
Theme Name: Amirah Blog
Theme URI: https://amirahap.com/
Author: Bapak
Description: A warm, cozy, gallery-first family blog theme built for photos and stories of Amirah. Soft rounded typography (Fredoka + Nunito), handwritten Caveat accents, portrait-photo-friendly masonry grids, and a gentle circular page-transition wipe on navigation.
Version: 3.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: amirah-blog
*/

/* ---------- Design tokens ---------- */
:root{
  --cream:#FBF6EF;
  --cream-card:#FFFDF8;
  --ink:#3A2E26;
  --ink-soft:#6B5B4F;
  --ink-faint:#9C8B7C;
  --terracotta:#E8A87C;
  --terracotta-deep:#B97A50;
  --rose:#D9A5B3;
  --sage:#8FA998;
  --border:#F0E2CE;
  --tan:#F3E8DA;
  --tan2:#E9D9C4;
  --banner:#F6E3D8;
  --shadow-soft:0 6px 18px rgba(150,110,70,0.12);
  --shadow-deep:0 10px 24px rgba(150,110,70,0.18);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Nunito',sans-serif;
  font-size:16px;
  line-height:1.5;
}

a{ color:inherit; }
img{ max-width:100%; display:block; }

h1,h2,h3,h4{
  font-family:'Fredoka',sans-serif;
  font-weight:600;
  margin:0;
}

.site-wrap{ min-height:100vh; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 56px;
  background:rgba(251,246,239,0.92);
  backdrop-filter:blur(6px);
  border-bottom:2px solid var(--border);
}
.site-branding{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--ink);
}
.site-branding .dot{
  width:14px; height:14px; border-radius:50%;
  background:var(--terracotta); display:inline-block; flex-shrink:0;
}
.site-branding .site-title{
  font-family:'Fredoka',sans-serif; font-weight:600; font-size:21px;
}
.primary-nav{
  display:flex; align-items:center; gap:24px; flex-wrap:nowrap;
}
.primary-nav ul{
  display:flex; align-items:center; gap:24px; list-style:none; margin:0; padding:0;
}
.primary-nav a{
  color:var(--ink-soft); text-decoration:none; font-weight:600; font-size:15px;
  white-space:nowrap; flex-shrink:0; padding-bottom:3px; border-bottom:2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a{
  color:var(--ink); border-bottom-color:var(--terracotta); font-weight:700;
}
.menu-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap:4px;
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background:var(--cream-card); border:2px solid var(--border); cursor:pointer; padding:0;
}
.menu-toggle span{
  display:block; width:16px; height:2px; border-radius:1px; background:var(--ink);
  transition:transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-active span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2){ opacity:0; }
.menu-toggle.is-active span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
.search-toggle{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background:var(--cream-card); border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.header-search-form{
  display:none; align-items:center; gap:8px;
  position:absolute; right:56px; top:70px;
  background:var(--cream-card); border:2px solid var(--border);
  border-radius:14px; padding:8px; box-shadow:var(--shadow-soft);
}
.header-search-form.is-open{ display:flex; }
.header-search-form input[type="search"]{
  border:none; background:transparent; font-family:'Nunito'; font-size:14px;
  padding:6px 8px; outline:none; width:200px;
}
.header-search-form button{
  border:none; background:var(--terracotta); color:var(--cream-card);
  border-radius:8px; padding:7px 12px; font-weight:700; cursor:pointer;
}

/* ---------- Hero ---------- */
.hero{
  padding:72px 56px 40px;
  display:grid; grid-template-columns:1fr 300px; gap:48px; align-items:center;
  background-image:radial-gradient(rgba(184,122,80,0.14) 1.2px, transparent 1.2px);
  background-size:24px 24px;
}
.hero-kicker{
  font-family:'Nunito',sans-serif; font-weight:800; letter-spacing:1.5px;
  font-size:13px; color:var(--terracotta-deep); text-transform:uppercase; margin-bottom:14px;
}
.hero h1{
  font-size:52px; line-height:1.15; margin:0 0 18px; color:var(--ink);
}
.hero h1 .highlight{
  font-family:'Caveat',cursive; font-weight:700; color:var(--terracotta);
  font-size:1.25em; padding:0 4px;
}
.hero p{
  font-size:18px; line-height:1.6; color:var(--ink-soft); max-width:540px; margin:0;
}
.hero-photo-wrap{ position:relative; justify-self:end; }
.hero-photo-wrap .washi{
  position:absolute; top:-14px; left:22px; width:64px; height:22px;
  background:rgba(255,253,248,0.65); border:1px solid rgba(255,253,248,0.9);
  transform:rotate(-7deg); z-index:2; box-shadow:0 2px 6px rgba(150,110,70,0.15);
}
.hero-photo-wrap .hero-photo{
  width:280px; aspect-ratio:3/4; object-fit:cover; display:block; border-radius:18px;
  transform:rotate(3deg); box-shadow:0 14px 30px rgba(150,110,70,0.22); border:5px solid var(--cream-card);
}
.hero-photo-wrap .hero-photo-placeholder{
  width:280px; aspect-ratio:3/4; border-radius:18px; transform:rotate(3deg);
  box-shadow:0 14px 30px rgba(150,110,70,0.22); border:5px solid var(--cream-card);
  background:repeating-linear-gradient(45deg,var(--border),var(--border) 10px,var(--cream) 10px,var(--cream) 20px);
  display:flex; align-items:center; justify-content:center; text-align:center; padding:16px;
  font-family:monospace; font-size:11px; color:var(--terracotta-deep);
}

/* ---------- Photo grid: Pinterest-style masonry (natural photo ratios) ---------- */
.grid-section{ padding:16px 56px 8px; }
.grid-eyebrow{
  font-family:'Caveat',cursive; font-weight:700; font-size:20px; color:var(--terracotta-deep); margin-bottom:14px;
}
.photo-grid{
  column-count:4; column-gap:18px;
}
.photo-card{
  display:block; width:100%; margin:0 0 18px; break-inside:avoid; -webkit-column-break-inside:avoid;
  text-decoration:none;
}
.photo-card-media{
  position:relative; border-radius:22px; overflow:hidden;
  border:3px solid var(--cream-card); box-shadow:var(--shadow-soft);
  transition:transform .25s ease, box-shadow .25s ease;
  will-change:transform;
}
.photo-card:hover .photo-card-media{
  transform:scale(1.035);
  box-shadow:0 16px 32px rgba(150,110,70,0.24);
}
.photo-card.is-portrait .photo-card-media{ aspect-ratio:3/4; }
.photo-card.is-landscape .photo-card-media{ aspect-ratio:8/5; }
.photo-card-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo-card-placeholder{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:repeating-linear-gradient(45deg,var(--border),var(--border) 10px,var(--cream) 10px,var(--cream) 20px);
  color:var(--terracotta-deep); font-family:monospace; font-size:12px; text-align:center; padding:14px;
}
.photo-card-vignette-top{
  position:absolute; left:0; right:0; top:0; height:64px;
  background:linear-gradient(to bottom, rgba(40,28,20,0.30), rgba(40,28,20,0)); pointer-events:none;
}
.photo-card-caption{
  position:absolute; left:0; right:0; bottom:0; padding:16px 18px;
  background:linear-gradient(to top, rgba(40,28,20,0.72), rgba(40,28,20,0));
}
.photo-card-caption .date-pill{
  display:inline-block; font-family:'Caveat',cursive; font-weight:700; font-size:15px;
  color:#F3D8B8; background:rgba(0,0,0,0.18); padding:2px 10px; border-radius:10px; margin-bottom:6px;
}
.photo-card-caption .card-title{
  font-family:'Fredoka',sans-serif; font-weight:600; font-size:17px; color:var(--cream-card); line-height:1.25;
}

/* Gallery page: smaller cards, caption on hover only */
.gallery-grid .photo-card-caption{
  padding:12px 14px; opacity:0; transition:opacity .2s ease;
}
.gallery-grid .photo-card:hover .photo-card-caption{ opacity:1; }
.gallery-grid .photo-card-caption .card-title{ font-size:13px; }
.gallery-month{ padding:36px 56px 8px; }
.gallery-month-head{ display:flex; align-items:baseline; gap:12px; margin-bottom:16px; }
.gallery-month-head .caveat-tag{ font-family:'Caveat',cursive; font-weight:600; font-size:16px; color:var(--terracotta-deep); }

/* ---------- Gallery CTA tiles (home) ---------- */
.gallery-cta{ padding:48px 56px 8px; display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:20px; }
.gallery-cta-card{
  position:relative; height:220px; border-radius:24px; overflow:hidden; text-decoration:none; display:block;
}
.gallery-cta-card img, .gallery-cta-card .photo-card-placeholder{ position:absolute; inset:0; width:100%; height:100%; }
.gallery-cta-card .tint{ position:absolute; inset:0; }
.gallery-cta-card.tint-sage .tint{ background:linear-gradient(135deg, rgba(143,169,152,0.94) 0%, rgba(143,169,152,0.5) 55%, rgba(143,169,152,0.16) 100%); }
.gallery-cta-card.tint-rose .tint{ background:linear-gradient(135deg, rgba(217,165,179,0.94) 0%, rgba(217,165,179,0.5) 55%, rgba(217,165,179,0.16) 100%); }
.gallery-cta-card.tint-terracotta .tint{ background:linear-gradient(135deg, rgba(232,168,124,0.94) 0%, rgba(232,168,124,0.5) 55%, rgba(232,168,124,0.16) 100%); }
.gallery-cta-card .washi{
  position:absolute; top:18px; right:22px; width:60px; height:20px;
  background:rgba(255,253,248,0.45); border:1px solid rgba(255,253,248,0.7);
}
.gallery-cta-card.tint-sage .washi{ transform:rotate(6deg); }
.gallery-cta-card.tint-rose .washi{ transform:rotate(-6deg); }
.gallery-cta-card .cta-text{ position:absolute; left:28px; bottom:24px; color:var(--cream-card); }
.gallery-cta-card .cta-text .cta-title{ font-family:'Fredoka',sans-serif; font-weight:600; font-size:26px; }
.gallery-cta-card .cta-text .cta-sub{ font-size:14px; opacity:0.9; margin-top:4px; }

/* ---------- Birthday / album banner ---------- */
.album-banner-wrap{ padding:20px 56px 56px; }
.album-banner{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  background:var(--banner); border-radius:24px; padding:32px 40px; text-decoration:none; color:var(--ink);
}
.album-banner .eyebrow{ font-family:'Caveat',cursive; font-weight:700; font-size:22px; color:var(--terracotta-deep); margin-bottom:4px; }
.album-banner .title{ font-family:'Fredoka',sans-serif; font-weight:600; font-size:24px; }
.album-banner .arrow{
  width:52px; height:52px; border-radius:50%; background:var(--cream-card);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--tan); padding:56px 56px 32px;
  background-image:radial-gradient(rgba(184,122,80,0.10) 1.2px, transparent 1.2px); background-size:22px 22px;
}
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:48px; }
.footer-subscribe{
  background:var(--cream-card); border:1px solid var(--border); border-radius:20px; padding:26px 28px;
  box-shadow:var(--shadow-soft);
}
.footer-subscribe h4{ font-size:19px; margin-bottom:6px; }
.footer-subscribe .caveat-note{ font-family:'Caveat',cursive; font-weight:700; font-size:16px; color:var(--terracotta-deep); margin-bottom:10px; }
.footer-subscribe p{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0 0 16px; max-width:320px; }
.footer-subscribe form{ display:flex; gap:8px; }
.footer-subscribe input[type="email"]{
  flex:1; padding:11px 14px; border-radius:12px; border:2px solid var(--border);
  font-family:'Nunito'; font-size:14px; background:var(--cream);
}
.footer-subscribe button{
  padding:11px 20px; border-radius:12px; border:none; background:var(--terracotta);
  color:var(--cream-card); font-weight:700; font-size:14px; cursor:pointer;
}
.footer-col h4{ font-size:17px; margin-bottom:12px; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col ul li{ font-size:14.5px; color:var(--ink-soft); margin-bottom:9px; }
.footer-col ul li a{ color:var(--ink-soft); text-decoration:none; }
.footer-col ul li a:hover{ color:var(--ink); }
.archives-dropdown{
  width:100%; max-width:260px; padding:11px 14px; border-radius:12px; border:2px solid var(--border);
  font-family:'Nunito',sans-serif; font-size:14.5px; color:var(--ink); background:var(--cream-card);
  cursor:pointer;
}
.category-pill{
  display:inline-block; font-size:14px; font-weight:700; color:var(--ink);
  background:var(--tan2); padding:7px 14px; border-radius:20px; text-decoration:none; margin:0 6px 6px 0;
}
.footer-bottom{
  margin-top:44px; padding-top:20px; border-top:1px solid #E4D3BC; font-size:13px; color:var(--ink-faint);
}
.site-footer.simple{ text-align:center; }

/* ---------- Single post ---------- */
.breadcrumb{ max-width:1080px; margin:0 auto; padding:28px 24px 0; font-size:14px; color:var(--ink-faint); }
.breadcrumb a{ color:var(--ink-faint); text-decoration:none; }
.post-hero{
  max-width:1080px; margin:0 auto; padding:20px 24px 0;
  display:grid; grid-template-columns:380px 1fr; gap:40px; align-items:start;
}
.post-hero.is-landscape{
  grid-template-columns:1fr; gap:24px;
}
.post-hero-media, .post-hero > div{ min-width:0; }
.post-hero.is-portrait .post-hero-media{ position:sticky; top:96px; }
.post-hero-media img{ width:100%; aspect-ratio:3/4; object-fit:cover; display:block; border-radius:24px; }
.post-hero-media .photo-card-placeholder{ width:100%; aspect-ratio:3/4; border-radius:24px; }
.post-hero.is-landscape .post-hero-media img,
.post-hero.is-landscape .post-hero-media .photo-card-placeholder{
  aspect-ratio:16/9; border-radius:24px;
}
.post-category-pill{
  display:inline-block; font-size:13px; font-weight:700; color:var(--ink); background:var(--tan2);
  padding:6px 14px; border-radius:20px; margin-bottom:18px;
}
.post-title{ font-size:36px; line-height:1.2; margin:0 0 14px; overflow-wrap:break-word; }
.post-date{ font-family:'Caveat',cursive; font-weight:700; font-size:20px; color:var(--terracotta-deep); margin-bottom:22px; display:block; }
.post-content{ font-size:18px; line-height:1.8; color:#4A3B30; overflow-wrap:break-word; }
.post-content p{ margin:0 0 1em; }
.post-content img{ height:auto; border-radius:18px; }
.post-content iframe, .post-content embed, .post-content video, .post-content object{ max-width:100%; }
.post-nav{ max-width:1080px; margin:0 auto; padding:44px 24px 60px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.post-nav a{
  background:var(--cream-card); border:2px solid var(--border); border-radius:18px; padding:18px 22px;
  text-decoration:none; color:var(--ink); display:block; min-width:0; overflow-wrap:break-word;
}
.post-nav .next-link{ text-align:right; }
.post-nav .nav-label{ font-size:12.5px; color:var(--ink-faint); margin-bottom:4px; }
.post-nav .nav-title{ font-family:'Fredoka',sans-serif; font-weight:600; font-size:16px; }

/* ---------- Comments ---------- */
.post-comments{ max-width:1080px; margin:0 auto; padding:0 24px 60px; }
.comments-title{ font-size:22px; margin-bottom:20px; }
.comment-list{ list-style:none; margin:0 0 8px; padding:0; }
.comment-list .children{ list-style:none; margin:0; padding:0 0 0 32px; }
.comment-list > li + li,
.comment-list .children > li{ margin-top:16px; }
.comment-body{
  background:var(--cream-card); border:2px solid var(--border); border-radius:16px; padding:18px 20px; min-width:0;
}
.comment-author{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.comment-author .avatar{ border-radius:50%; display:block; }
.comment-author .fn{ font-style:normal; font-weight:700; font-size:15px; }
.comment-metadata{ font-size:12.5px; color:var(--ink-faint); margin-bottom:10px; }
.comment-metadata a{ color:inherit; text-decoration:none; }
.comment-content p{ margin:0 0 0.8em; font-size:15px; line-height:1.6; overflow-wrap:break-word; }
.comment-content p:last-child{ margin-bottom:0; }
.comment-reply-link{ font-size:13px; font-weight:700; color:var(--terracotta-deep); text-decoration:none; }
.comment-awaiting-moderation{ display:block; font-size:13px; color:var(--terracotta-deep); margin-top:8px; }
.comments-closed{ color:var(--ink-faint); font-size:14.5px; }
.comment-respond{ margin-top:24px; }
#reply-title{ font-size:20px; margin-bottom:16px; }
.comment-form p{ margin:0 0 14px; }
.comment-form label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%; min-width:0; padding:11px 14px; border-radius:12px; border:2px solid var(--border);
  font-family:'Nunito'; font-size:14.5px; background:var(--cream);
}
.comment-form textarea{ min-height:120px; resize:vertical; }
.form-submit input[type="submit"]{
  padding:11px 24px; border-radius:12px; border:none; background:var(--terracotta);
  color:var(--cream-card); font-weight:700; font-size:14.5px; cursor:pointer;
}
.comment-notes, .logged-in-as{ font-size:13px; color:var(--ink-faint); margin-bottom:14px; }
.comment-form-cookies-consent{ display:flex; align-items:center; gap:8px; }
.comment-navigation{ font-size:13.5px; margin-bottom:20px; }

/* ---------- Pagination (Older posts) ---------- */
.older-posts{ max-width:920px; margin:0 auto; padding:0 56px 60px; text-align:center; }
.older-posts a{
  display:inline-block; padding:12px 26px; border-radius:20px; background:var(--cream-card);
  border:2px solid var(--border); text-decoration:none; color:var(--ink); font-weight:700;
}

/* ---------- 404 ---------- */
.error-404{ max-width:640px; margin:0 auto; padding:100px 24px; text-align:center; }
.error-404 .big{ font-family:'Caveat',cursive; font-size:64px; color:var(--terracotta); }

/* ---------- Custom brush pointer + paint-dab cursor trail ---------- */
body.amirah-cursor-on{
  cursor:url('assets/img/brush-cursor-v2.png') 7 7, auto;
}
body.amirah-cursor-on input, body.amirah-cursor-on textarea, body.amirah-cursor-on select, body.amirah-cursor-on [contenteditable="true"]{
  cursor:text;
}
body.amirah-cursor-on button, body.amirah-cursor-on a, body.amirah-cursor-on .photo-card, body.amirah-cursor-on .gallery-cta-card, body.amirah-cursor-on .album-banner, body.amirah-cursor-on .search-toggle, body.amirah-cursor-on .category-pill{
  cursor:url('assets/img/brush-cursor-v2.png') 7 7, pointer;
}
.amirah-paint-dab{
  position:fixed; top:0; left:0; pointer-events:none; z-index:2147483000;
  border-radius:48% 52% 55% 45%;
  opacity:0.85;
  animation-name:amirah-paint-linger;
  animation-timing-function:ease-in;
  animation-fill-mode:forwards;
}
@keyframes amirah-paint-linger{
  0%{ transform:scale(1); opacity:0.85; }
  100%{ transform:scale(0.8); opacity:0; }
}
@media (hover: none){
  .amirah-paint-dab{ display:none; }
  body.amirah-cursor-on, body.amirah-cursor-on button, body.amirah-cursor-on a, body.amirah-cursor-on .photo-card, body.amirah-cursor-on .gallery-cta-card, body.amirah-cursor-on .album-banner, body.amirah-cursor-on .search-toggle, body.amirah-cursor-on .category-pill{
    cursor:auto;
  }
}

@media (max-width: 900px){
  .site-header{ padding:16px 20px; }
  .menu-toggle{ display:flex; }
  .primary-nav{ gap:10px; }
  .primary-nav ul{
    display:none; flex-direction:column; align-items:stretch; gap:2px;
    position:absolute; top:100%; left:20px; right:20px; margin-top:14px;
    background:var(--cream-card); border:2px solid var(--border); border-radius:16px;
    padding:10px; box-shadow:var(--shadow-deep); z-index:30;
  }
  .primary-nav ul.is-open{ display:flex; }
  .primary-nav ul li{ width:100%; }
  .primary-nav ul a{
    display:block; width:100%; padding:12px 14px; border-radius:10px; border-bottom:none !important;
  }
  .primary-nav ul a:hover,
  .primary-nav ul .current-menu-item > a,
  .primary-nav ul .current_page_item > a{
    background:var(--tan2);
  }
  .header-search-form{ right:20px; }
  .hero{ grid-template-columns:1fr; padding:48px 20px 24px; }
  .hero-photo-wrap{ justify-self:start; }
  .grid-section, .gallery-month, .gallery-cta, .album-banner-wrap{ padding-left:20px; padding-right:20px; }
  .photo-grid, .gallery-grid .photo-grid{ column-count:2; }
  .gallery-cta{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .post-hero{ grid-template-columns:1fr; }
  .post-hero.is-portrait .post-hero-media{ position:static; top:auto; }
  .post-nav{ grid-template-columns:1fr; }
  .older-posts{ padding-left:20px; padding-right:20px; }
  .comment-list .children{ padding-left:16px; }
  .comment-body{ padding:14px 16px; }
}

@media (max-width: 480px){
  .photo-grid, .gallery-grid .photo-grid{ column-count:1; }
  .hero-photo-wrap .hero-photo, .hero-photo-wrap .hero-photo-placeholder{ width:220px; }
  .album-banner{ flex-direction:column; align-items:flex-start; gap:16px; }
  .footer-subscribe{ padding:20px; }
  .footer-subscribe form{ flex-direction:column; align-items:stretch; }
  .footer-subscribe input[type="email"]{ width:100%; }
  .footer-subscribe button{ width:100%; }
}
