/* =====================================================================
   Personal theme: a family scrapbook from the house on the Nile.
   Tibeb borders from the habesha kemis, handwritten notes, taped snapshots.
   Loaded after site.css, which holds the layout.
   ===================================================================== */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.08; }
h1 { font-weight: 800; }
h3 { line-height: 1.2; }
body { font-size: 1.08rem; }

/* Tibeb ribbon: woven-border diamonds in the logo's colours */
.tibeb {
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14'%3E%3Crect width='56' height='14' fill='%232C5524'/%3E%3Crect width='56' height='2' fill='%23F4CD18'/%3E%3Crect y='12' width='56' height='2' fill='%23F4CD18'/%3E%3Cpath d='M7 3l4 4-4 4-4-4z' fill='%23F4CD18'/%3E%3Cpath d='M21 3l4 4-4 4-4-4z' fill='%23D9486F'/%3E%3Cpath d='M35 3l4 4-4 4-4-4z' fill='%23F4CD18'/%3E%3Cpath d='M49 3l4 4-4 4-4-4z' fill='%238CCBE0'/%3E%3Ccircle cx='14' cy='7' r='1.2' fill='%23fff'/%3E%3Ccircle cx='28' cy='7' r='1.2' fill='%23fff'/%3E%3Ccircle cx='42' cy='7' r='1.2' fill='%23fff'/%3E%3Ccircle cx='0' cy='7' r='1.2' fill='%23fff'/%3E%3Ccircle cx='56' cy='7' r='1.2' fill='%23fff'/%3E%3C/svg%3E") repeat-x;
}
.site-header .tibeb, .tibeb.thin { height: 8px; background-size: auto 8px; }

/* Handwritten labels replace the uppercase eyebrows */
.eyebrow {
  font: 700 1.65rem/1 var(--font-hand); letter-spacing: 0; text-transform: none;
  color: var(--rose); margin-bottom: 10px; gap: 8px;
}
.eyebrow::before {
  width: 26px; height: 22px; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M13 20C8 16 2 12 2.5 6.8 3 3 7.5 1.6 10.2 4.2L13 7l2.6-2.9c2.9-2.6 7.6-1 8 2.8C24 12 18 16 13 20z' fill='none' stroke='%23D9486F' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section-leaf .eyebrow { color: var(--sun); }
.section-leaf .eyebrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M13 20C8 16 2 12 2.5 6.8 3 3 7.5 1.6 10.2 4.2L13 7l2.6-2.9c2.9-2.6 7.6-1 8 2.8C24 12 18 16 13 20z' fill='none' stroke='%23F4CD18' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
.hand { font-family: var(--font-hand); font-weight: 700; }
.amharic { font-family: var(--font-ethiopic); font-weight: 700; }

/* Hand-drawn underline instead of a highlighter block */
.hero h1 .hl::after {
  left: -3%; right: -3%; bottom: -.12em; height: .42em; border-radius: 0; opacity: 1; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 20C60 8 140 6 296 14M18 26c70-9 160-10 262-4' fill='none' stroke='%23F4CD18' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.hero h1 em { color: var(--leaf); font-style: normal; }
.welcome { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.welcome .amharic { font-size: 1.2rem; color: var(--leaf-deep); }
.welcome .hand { font-size: 1.6rem; color: var(--rose); }

/* Snapshots: taped photos with handwritten captions */
.snap {
  margin: 0; background: var(--paper-warm); padding: 10px 10px 0; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(42,32,36,.12), 0 14px 28px -14px rgba(42,32,36,.45);
  position: relative; transition: transform .25s ease;
}
.snap img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; }
.snap figcaption { font: 700 1.35rem/1.15 var(--font-hand); color: var(--ink-2); padding: 10px 4px 12px; text-align: center; }
.snap::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(244, 205, 24, .6); box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 1;
}
.snap.tape-rose::before { background: rgba(217, 72, 111, .45); }
.snap.tape-sky::before { background: rgba(140, 203, 224, .7); }
.snap:hover { transform: rotate(0deg) scale(1.02) !important; z-index: 5; }

.scrapbook { position: relative; min-height: 580px; }
.scrapbook .snap { position: absolute; }
.scrapbook .s1 { width: 58%; left: 3%; top: 3%; transform: rotate(-4deg); z-index: 2; }
.scrapbook .s1 img { aspect-ratio: 4/4.6; }
.scrapbook .s2 { width: 44%; right: 0; top: 0; transform: rotate(5deg); }
.scrapbook .s3 { width: 45%; right: 3%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.scrapbook .sticky {
  position: absolute; left: 4%; bottom: 2%; z-index: 4; background: var(--sun); padding: 14px 18px 16px; width: 205px;
  transform: rotate(3deg); box-shadow: 0 10px 20px -10px rgba(42,32,36,.5); font: 700 1.45rem/1.1 var(--font-hand); color: var(--ink);
}
.scrapbook .sticky b { display: block; font: 800 2.4rem/1 var(--font-display); color: var(--leaf-deep); }
@media (max-width: 880px) { .scrapbook { min-height: 0; aspect-ratio: 1/1.08; max-width: 560px; margin: 28px auto 0; width: 100%; } }
@media (max-width: 480px) {
  .scrapbook .snap { padding: 6px 6px 0; }
  .scrapbook .snap figcaption { font-size: 1.05rem; padding: 6px 2px 8px; }
  .scrapbook .sticky { width: 140px; font-size: 1.1rem; padding: 10px 12px; }
  .scrapbook .sticky b { font-size: 1.7rem; }
}

/* Children & stories as snapshots */
.photo-card { border-radius: 4px; padding: 10px; background: var(--paper-warm); box-shadow: 0 1px 2px rgba(42,32,36,.12), 0 16px 30px -16px rgba(42,32,36,.45); transition: transform .25s ease, opacity .6s ease; }
.photo-card img { border-radius: 2px; }
.photo-card .body { padding: 14px 8px 10px; }
.photo-card h3 { font: 700 1.9rem/1 var(--font-hand); color: var(--leaf-deep); margin-bottom: .25em; }
.grid > .photo-card:nth-child(4n+1) { transform: rotate(-1.4deg); }
.grid > .photo-card:nth-child(4n+2) { transform: rotate(1deg); }
.grid > .photo-card:nth-child(4n+3) { transform: rotate(-.6deg); }
.grid > .photo-card:nth-child(4n) { transform: rotate(1.5deg); }
.grid > .photo-card:hover { transform: rotate(0) translateY(-4px); }
.grid > .photo-card.reveal:not(.in) { transform: translateY(18px); }
.item-card h3 { font: 700 1.35rem/1.2 var(--font-display); color: var(--ink); }
.photo-card .tag { background: var(--rose-soft); color: #A72F52; }

/* Cards: paper notes with a coloured strip instead of emoji icons */
.card { border-radius: 6px; box-shadow: 0 1px 2px rgba(42,32,36,.08), 0 12px 26px -16px rgba(42,32,36,.35); border-top: 6px solid var(--leaf); }
.grid > .card:nth-child(4n+2) { border-top-color: var(--sun); }
.grid > .card:nth-child(4n+3) { border-top-color: #8CCBE0; }
.grid > .card:nth-child(4n) { border-top-color: var(--rose); }
.card-icon { display: none; }
.num { font: 700 2.4rem/1 var(--font-hand); color: var(--rose); display: block; margin-bottom: 4px; }

/* Therapy snapshots on the home page */
.therapies .snap img { aspect-ratio: 4/3.6; }
.therapies .snap figcaption { text-align: left; padding: 14px 6px 16px; font: 400 1rem/1.5 var(--font-body); color: var(--ink-2); }
.therapies .snap figcaption strong { display: block; font: 700 1.8rem/1.05 var(--font-hand); color: var(--leaf-deep); margin-bottom: 4px; }
.therapies .snap:nth-child(odd) { transform: rotate(-1.2deg); }
.therapies .snap:nth-child(even) { transform: rotate(1.2deg); margin-top: 18px; }
@media (max-width: 960px) { .therapies .snap:nth-child(even) { margin-top: 0; } }

/* A note from Mena: a letter on lined paper */
.letter {
  background-color: var(--paper-warm); border-radius: 4px; padding: 30px clamp(24px, 4vw, 52px) 34px clamp(40px, 5vw, 64px);
  box-shadow: 0 1px 2px rgba(42,32,36,.1), 0 24px 40px -22px rgba(42,32,36,.5);
  background-image: repeating-linear-gradient(transparent 0 37px, rgba(140,203,224,.5) 37px 38px);
  background-position: 0 30px; position: relative; transform: rotate(.6deg);
}
.letter::before { content: ""; position: absolute; left: clamp(22px, 3vw, 40px); top: 0; bottom: 0; width: 2px; background: rgba(217,72,111,.35); }
.letter p { font: 600 clamp(1.4rem, 2vw, 1.7rem)/38px var(--font-hand); color: var(--ink); margin: 0 0 38px; }
.letter .sign { font: 700 2.4rem/38px var(--font-hand); color: var(--rose); margin: 0; }
.letter .who { font: 700 .95rem/1.4 var(--font-body); color: var(--ink-2); margin: 6px 0 0; }
.split-media.arch img { border-radius: 4px; padding: 10px; background: var(--paper-warm); transform: rotate(-2deg); }

/* Stats on a framed band */
.stats { border-radius: 6px; box-shadow: none; border: 2px solid var(--leaf-deep); }
.stat b { font-family: var(--font-display); font-weight: 800; color: var(--leaf-deep); }
.stat:nth-child(2) b { color: var(--rose); }
.stat:nth-child(3) b { color: #2E86A6; }
.stat:nth-child(4) b { color: var(--plum); }

/* Shapes and photo frames on inner pages */
.quote { font-family: var(--font-hand); font-weight: 700; }
.page-hero::after { border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%; }
.page-hero::before { content: ""; position: absolute; left: -60px; bottom: -40px; width: 160px; aspect-ratio: 1; border-radius: 58% 42% 39% 61% / 55% 59% 41% 45%; background: var(--rose-soft); z-index: -1; }
.page-hero-grid img { border-radius: 4px; padding: 10px; background: var(--paper-warm); box-shadow: 0 1px 2px rgba(42,32,36,.12), 0 18px 32px -16px rgba(42,32,36,.45); transform: rotate(2deg); }
.split-media img { border-radius: 4px; }

/* Buttons: rounder, with a little press-down edge */
.btn { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; padding-top: .78em; }
.btn-sun { box-shadow: 0 4px 0 var(--sun-deep); }
.btn-sun:hover { box-shadow: 0 6px 0 var(--sun-deep); }
.btn-leaf { box-shadow: 0 4px 0 #1C3A16; }

/* Awards band */
.award-list li { border-radius: 6px; }
.award-list b { font-family: var(--font-display); font-weight: 800; }
.awards img { border-radius: 4px; padding: 10px; background: var(--paper-warm); transform: rotate(-2deg); }

/* Gallery, events, lists */
.masonry a { border-radius: 4px; padding: 8px; background: var(--paper-warm); }
.masonry a:nth-child(3n+1) { transform: rotate(-.8deg); }
.masonry a:nth-child(3n+2) { transform: rotate(.6deg); }
.masonry img { border-radius: 2px; }
.event { border-radius: 6px; }
.event-photos img { border-radius: 3px; }
.bank, .contact-list li, .faq details { border-radius: 8px; }
.faq summary { font-family: var(--font-display); font-weight: 700; }
.prose p:first-of-type::first-letter { font-family: var(--font-display); font-weight: 800; color: var(--rose); }
.prose blockquote { font-family: var(--font-hand); font-weight: 700; font-size: 2rem; color: var(--leaf-deep); border-left-color: var(--rose); }
.prose figure img { border-radius: 4px; padding: 10px; background: var(--paper-warm); box-shadow: var(--shadow); transform: rotate(-1deg); }
.prose figcaption { font: 700 1.4rem/1.2 var(--font-hand); }

/* Header and footer */
.site-header { background: rgba(250,244,232,.95); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.brand-name small { font-family: var(--font-hand); font-size: 1.2rem; letter-spacing: 0; text-transform: none; color: var(--rose); font-weight: 700; margin-top: 0; }
@media (min-width: 1141px) { .site-nav li a { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; } }
.site-footer { background: var(--plum-deep); }
.footer-cta { background: none; box-shadow: none; border-radius: 0; padding-left: 0; padding-right: 0; border-bottom: 1px dashed rgba(255,255,255,.2); }
.footer-cta h2 { font-family: var(--font-hand); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--sun); line-height: 1; }
.footer-cta p { color: #E2D4DB; }
.footer-grid h3 { font-family: var(--font-hand); font-size: 1.7rem; color: var(--sun); font-weight: 700; margin-bottom: 8px; }
.socials a { border-radius: 50%; }

/* Telebirr walkthrough: steps on the left, one phone on the right */
.telebirr { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .telebirr { grid-template-columns: 1fr; } }
.tb-find { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper-warm); border: 2px dashed var(--leaf); border-radius: 8px; padding: 12px 14px; margin: 6px 0 22px; }
.tb-find span { font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.tb-find strong { flex: 1 1 220px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.tb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: tb; }
.tb-steps button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 10px; border: 2px solid transparent; transition: background .2s, border-color .2s;
}
.tb-steps button:hover { background: var(--paper-warm); }
.tb-steps button:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 2px; }
.tb-steps li { counter-increment: tb; }
.tb-steps button::before {
  content: counter(tb); flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.1rem/1 var(--font-display); background: var(--cream-2); color: var(--ink-2); transition: background .2s, color .2s;
}
.tb-steps button[aria-current="step"] { background: var(--paper-warm); border-color: var(--leaf); box-shadow: 0 10px 22px -16px rgba(42,32,36,.5); }
.tb-steps button[aria-current="step"]::before { background: var(--leaf); color: #fff; }
.tb-steps .t { display: block; font: 700 1.1rem/1.3 var(--font-display); color: var(--ink); }
.tb-steps .d { display: block; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.phone {
  width: min(290px, 78vw); margin-inline: auto; aspect-ratio: 9/18.6; border-radius: 42px; padding: 12px;
  background: #1E1A1C; box-shadow: 0 0 0 2px #3a3336 inset, 0 30px 50px -24px rgba(42,32,36,.65); position: relative; transform: rotate(2.5deg);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 12px; background: #1E1A1C; z-index: 2; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s ease; }
.phone-screen img.on { opacity: 1; }
.phone-wrap { position: relative; padding: 10px 0; }
.phone-wrap .scribble { position: absolute; right: 0; top: 0; font: 700 1.5rem/1.1 var(--font-hand); color: var(--rose); transform: rotate(6deg); max-width: 130px; text-align: center; }
@media (max-width: 560px) { .phone-wrap .scribble { display: none; } }
.tb-nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.tb-nav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tb-nav button:hover { background: var(--ink); color: #fff; }
.tb-nav .prev .ic { transform: rotate(180deg); }
