/* Link-in-bio feed for the Theodore Roosevelt Presidential Library.
   Deliberately matches hootbio.com/trlibrary rather than the calendar: someone
   taps through from the Hootbio page and should not feel a seam.

   Values sampled from the live Hootbio page - Gray Sky #99ADC5 background,
   Night Sky #092A4D buttons, Source Sans 3, 280px column, 4px radius, 16px
   gap. Both of those are TRPL brand colours, so this is on-brand either way. */

:root {
  --gray-sky:   #99ADC5;   /* Hootbio page background */
  --night-sky:  #092A4D;   /* Hootbio button fill */
  --night-lift: #0d3a68;   /* hover */
  --ink:        #2F3638;   /* Hootbio social-icon colour */
  --white:      #FFFFFF;
  --sand:       #D1CCBD;
  --deep-orange:#E7805D;
  --col:        280px;     /* Hootbio button width */
  --wide:       420px;     /* cards get a little more room than a button */
  --radius:     4px;
  --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--gray-sky);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------- bio head */

.bio { text-align: center; display: grid; justify-items: center; gap: .35rem; }

/* The brand stamp ships as a transparent ring in near-black, so it sits on a
   Dark Forest disc and is driven to white - matching the Hootbio avatar. */
.avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: #1B4532;
  display: grid; place-items: center; overflow: hidden;
}
.avatar img {
  width: 84px; height: 84px; display: block;
  filter: brightness(0) invert(1);
}

.bio h1 {
  font-size: 20px; font-weight: 700; margin: .5rem 0 0;
  color: var(--white); line-height: 1.2;
}

.tagline {
  font-size: 16px; line-height: 20px; margin: 0;
  color: var(--white); max-width: 34rem;
}

.socials { display: flex; gap: 1rem; align-items: center; margin: .1rem 0 .35rem; }
.socials a { color: var(--ink); display: block; line-height: 0; }
.socials a:hover { color: var(--night-sky); }
.socials svg { width: 20px; height: 20px; display: block; }

.section {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--night-sky);
  margin: .75rem 0 -.15rem; align-self: center;
}

/* ------------------------------------------------------------------ feed */

.feed { display: flex; flex-direction: column; gap: 16px; width: 100%; }

.loading, .empty {
  text-align: center; color: var(--night-sky); font-size: 15px; margin: 1rem 0;
}

.card {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: stretch;
  gap: 0;
  background: var(--night-sky);
  border: 2px solid var(--night-sky);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: background .14s ease, transform .14s ease;
}
.card:hover, .card:focus-visible {
  background: var(--night-lift); border-color: var(--night-lift);
  transform: translateY(-1px);
}
.card:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

.card.no-thumb { grid-template-columns: 1fr; }

.card .shot {
  width: 84px; height: 100%; min-height: 84px;
  object-fit: cover; display: block; background: #0b2540;
}

.card .body {
  padding: .7rem .85rem .75rem;
  display: flex; flex-direction: column; justify-content: center; gap: .22rem;
  min-width: 0;
}

.card .headline {
  font-size: 15px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .blurb {
  font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.78);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .meta {
  font-size: 11.5px; color: rgba(255,255,255,.62);
  display: flex; align-items: center; gap: .4rem; margin-top: .12rem;
}
.card .meta .host { font-weight: 600; color: rgba(255,255,255,.8); }
.card .meta .sep { opacity: .5; }

.card .isnew {
  background: var(--deep-orange); color: var(--night-sky);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: .05rem .3rem; border-radius: 2px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  width: var(--col); max-width: 100%;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--night-sky);
  border: 2px solid var(--night-sky);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background .14s ease;
}
.btn:hover { background: var(--night-lift); border-color: var(--night-lift); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.btn { margin-top: .5rem; }

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: .75rem; font-size: 11.5px; color: rgba(9,42,77,.65); text-align: center;
}

@media (max-width: 420px) {
  .wrap { padding: 1.75rem 1rem 2.5rem; }
  .card { grid-template-columns: 72px 1fr; }
  .card .shot { width: 72px; min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
