/* Hobby pages and their cards. */
/* Hobby pages */
.hobby-page h1 { font-family: Caprasimo, serif; font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; margin: 0; text-wrap: balance; }
.back { align-self: flex-start; display: inline-block; font-weight: 700; color: var(--ink); padding: 8px 16px; border-radius: 999px; background: var(--sand); font-size: 15px; }
.back:hover { background: var(--sand-deep); color: var(--ink); }
.hobby-page .lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.hobby-page .others { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -12px 0 0; padding: 0; }   /* directly under "All hobbies" */
@media (max-width: 639px) {
  .hobby-page .others { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .hobby-page .others::-webkit-scrollbar { display: none; }
  .hobby-page .others a { white-space: nowrap; }
}
.hobby-page .others a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 700; font-size: 14px; }
.hobby-page .others a[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* Apps */
.hobby-page { max-width: 1240px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 24px; }
.hobby-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 620px; }
.hobby-page h2 { font-family: Caprasimo, serif; font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; margin: 0; text-wrap: balance; }
.hobby-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.app { background: var(--paper); border-radius: 24px; padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(80, 50, 20, .08); }
.shot { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--sand-deep); background: var(--sand); aspect-ratio: 16 / 11; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.03); }
.badge { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.app h3 { font-family: Caprasimo, serif; font-weight: 400; font-size: 24px; margin: 0; padding: 0 8px; }
.app p { margin: -6px 0 0; padding: 0 8px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; flex: 1; }
.app .buttons { padding: 0 8px; gap: 8px; }
.app .btn { padding: 11px 18px; font-size: 15px; }
@media (max-width: 1023px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .app-grid { grid-template-columns: 1fr; } }

/* My animals */
.pet-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pet-grid li { grid-column: span 2; }
.pet-grid li.wide { grid-column: span 3; }
.pet-grid img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 6px solid var(--paper); box-shadow: 0 10px 30px rgba(80, 50, 20, .1); }
.pet-grid li.wide img { aspect-ratio: 4 / 3; }
.pet-grid li.full { grid-column: 1 / -1; }
.pet-grid li.full img { aspect-ratio: 16 / 9; }
@media (max-width: 639px) { .pet-grid { grid-template-columns: 1fr 1fr; } .pet-grid li, .pet-grid li.wide { grid-column: span 1; } .pet-grid li.full { grid-column: 1 / -1; } .pet-grid li.wide img { aspect-ratio: 1; } .pet-grid li:last-child:nth-child(odd) { grid-column: span 2; } .pet-grid li:last-child:nth-child(odd) img { aspect-ratio: 4 / 3; } }

/* Animal volunteering */
.cause-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.cause { background: var(--paper); border-radius: 24px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(80, 50, 20, .08); }
.cause .where { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sage-ink); background: var(--sage-tint); padding: 4px 10px; border-radius: 999px; }
.cause h3 { font-family: Caprasimo, serif; font-weight: 400; font-size: 22px; line-height: 1.15; margin: 4px 0 0; }
.cause p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; flex: 1; }
.cause a.visit { align-self: flex-start; margin-top: 6px; font-weight: 700; font-size: 15px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--paper); border-radius: 24px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 10px 30px rgba(80, 50, 20, .08); }
.story h3 { font-family: Caprasimo, serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 12px 0 12px; }
.story p { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.story { align-items: start; }
.story-text p + p { margin-top: 12px; }
.story blockquote { margin: 18px 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--rust); font-family: Caprasimo, serif; font-size: 20px; line-height: 1.35; color: var(--ink); }
.story .small { font-size: 15px; }
.story-media { display: flex; flex-direction: column; gap: 12px; }
.story video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--sand); }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-photos img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
@media (max-width: 767px) { .story { grid-template-columns: 1fr; } }
@media (max-width: 1023px) { .cause-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cause-grid { grid-template-columns: 1fr; } }

/* Reading stats (Books) */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.stat { background: var(--paper); border-radius: 20px; padding: 22px 22px 20px; box-shadow: 0 6px 18px rgba(80, 50, 20, .08); display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: Caprasimo, serif; font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; color: var(--ink); }
.stat span { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.years { background: var(--paper); border-radius: 20px; padding: 24px 24px 18px; box-shadow: 0 6px 18px rgba(80, 50, 20, .08); }
.years h2 { font-family: Caprasimo, serif; font-weight: 400; font-size: 26px; margin: 0 0 20px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; height: 300px; list-style: none; margin: 0; padding: 0; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; min-height: 2px; background: var(--sage); border-radius: 4px 4px 0 0; transition: filter .15s ease; }
.bar:hover i { filter: brightness(.9); }
.bar.partial i { background: var(--sage-tint); box-shadow: inset 0 0 0 2px var(--sage); }
.bar em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.bar span { font-size: 13px; color: var(--ink-soft); padding-top: 8px; border-top: 1px solid var(--sand-deep); width: 100%; text-align: center; }
@media (max-width: 767px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) {
  .years { padding: 18px 12px 14px; }
  .bars { height: 220px; gap: 4px; }
  .bar em { font-size: 11px; }
  .bar span { font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); border-top: 0; padding: 6px 0 0; }
}
