/* LA5 Adami Ranch - public site. Brand gold #c08100 (the longhorn badge), black LA5 mark, caliche and mesquite. */
:root {
  --bg: #f6f1e7;
  --paper: #fffdf8;
  --ink: #241d16;
  --muted: #6e6253;
  --line: #e2d7c3;
  --rust: #a86f00;
  --rust-ink: #fffaf0;
  --gold: #c08100;
  --sage: #5f7151;
  --gone: #8a7d6c;
  --shadow: 0 1px 2px rgb(60 40 20 / .08), 0 8px 24px rgb(60 40 20 / .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f; --paper: #211b16; --ink: #efe6d8; --muted: #b3a690; --line: #3a3027;
    --rust: #e0a42e; --rust-ink: #1b1209; --gold: #c08100; --sage: #9db08a; --gone: #a29681;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2em 0 .8em; }
h3 { font-size: 1.15rem; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; justify-content: space-between;
  padding: 12px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 600; letter-spacing: .01em; }
.site-head nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.site-head nav a:hover { background: var(--line); }
.site-head nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* hero */
.hero { min-height: min(78vh, 720px); display: grid; align-items: end; color: #fff8ee;
  background-color: #3b2a1c; background-position: center 60%; background-size: cover; background-repeat: no-repeat; }
.hero-in { max-width: 1180px; width: 100%; margin: 0 auto; padding: 40px 20px 56px; }
.hero h1 { color: #fff8ee; font-size: clamp(2.8rem, 8vw, 5.4rem); margin: 0; text-shadow: 0 2px 20px rgb(0 0 0 / .35); }
.hero .lede { color: #f3e7d6; font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; margin: 0 0 .6em; opacity: .9; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--rust); color: var(--rust-ink); text-decoration: none; font-weight: 600; }
.btn.ghost { background: transparent; color: #fff8ee; border: 1.5px solid rgb(255 248 238 / .7); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-top: -34px; position: relative; box-shadow: var(--shadow); }
.stats div { background: var(--paper); padding: 18px 16px; text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--rust); }
.stats span { color: var(--muted); font-size: .9rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.prose p { max-width: 62ch; }
.feature { display: block; color: inherit; text-decoration: none; margin-top: 2.2em; }
.feature p { color: var(--muted); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); }
.card .ph { aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .cap { padding: 12px 14px 14px; }
.card .cap p { margin: 2px 0 8px; color: var(--muted); font-size: .9rem; }
.grid.small .card .cap h3 { font-size: 1rem; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--line) 0 10px, color-mix(in srgb, var(--line) 70%, var(--paper)) 10px 20px); }
.noimg img { width: 44px; opacity: .35; }
@media (prefers-color-scheme: dark) { .noimg img { filter: invert(1); } }
.noimg.big { aspect-ratio: 4 / 3; border-radius: 14px; }
.noimg.big p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; padding: 2px 9px; border-radius: 999px; font-weight: 600; font-family: var(--sans); }
.tag.here { background: color-mix(in srgb, var(--sage) 18%, transparent); color: var(--sage); }
.tag.gone { background: color-mix(in srgb, var(--gone) 18%, transparent); color: var(--gone); }

.page-head { padding-top: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.filters button { font: inherit; font-size: .92rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* photos */
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; }
figure { margin: 0; }
figure a { display: block; border-radius: 12px; overflow: hidden; background: var(--line); cursor: zoom-in; }
figure img { width: 100%; height: auto; transition: transform .3s ease; }
figure a:hover img { transform: scale(1.03); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
figure.lead a { border-radius: 16px; box-shadow: var(--shadow); }
.more { text-align: center; margin: 18px 0 0; }

/* animal page */
.animal header { margin: 10px 0 24px; }
.crumbs { margin: 36px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.facts dt { color: var(--muted); font-size: .9rem; padding-top: 2px; }
.facts dd { margin: 0; }
.story { margin: 18px 0 0; padding: 18px 22px; border-left: 4px solid var(--rust); background: var(--paper); border-radius: 0 14px 14px 0;
  font-family: var(--serif); font-size: 1.12rem; font-style: italic; }
.kids { columns: 2 260px; padding-left: 1.2em; }
.kids li { margin: 0 0 6px; break-inside: avoid; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 4px 0 22px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--rust); }
.timeline .yr { font-family: var(--serif); font-size: 1.6rem; color: var(--rust); line-height: 1.2; }
.timeline p { margin: 0 0 4px; }
.timeline .names { color: var(--muted); font-size: .95rem; }

/* footer */
.site-foot { margin-top: 80px; padding: 40px 20px 50px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.site-foot img { margin: 0 auto 14px; }
.site-foot .badge { width: 240px; max-width: 70%; border-radius: 14px; box-shadow: var(--shadow); }
.est img { border-radius: 14px; box-shadow: var(--shadow); margin: 0 0 10px; }
.site-foot p { margin: 4px 0; }
.site-foot .fine { font-size: .85rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(12 8 4 / .94); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { grid-column: 2; margin: 0; text-align: center; }
.lightbox img { max-height: 84vh; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #e9dcc8; font-size: .95rem; margin-top: 10px; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px; }
.lightbox button:first-child { position: absolute; top: 8px; right: 14px; }
.lightbox .prev { grid-column: 1; grid-row: 1; }
.lightbox .next { grid-column: 3; grid-row: 1; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 16px; }
  .wrap { padding: 0 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
}

.hats { max-width: 520px; margin: 18px 0 0; }

/* gallery mosaic (justified rows) */
.mosaic-wrap { padding: 0 12px; max-width: 1600px; margin: 0 auto; }
.mosaic { display: flex; flex-wrap: wrap; gap: 6px; }
.mosaic .tile { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: var(--line); min-width: 0; max-width: 100%; flex-basis: calc(var(--r) * 230px); }
.mosaic .tile[hidden] { display: none; }
.mosaic .tile i { display: block; }
.mosaic .pic { position: absolute; inset: 0; border-radius: 0; }
.mosaic .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.mosaic .tile:hover .pic img { transform: scale(1.05); filter: brightness(1.06); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 10px 7px;
  background: linear-gradient(transparent, rgb(10 6 2 / .72)); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.mosaic .tile:hover figcaption, .mosaic .tile:focus-within figcaption { opacity: 1; }
.mosaic .who { color: #fff6e6; font-weight: 600; font-size: .9rem; text-decoration: none; pointer-events: auto; }
.mosaic .who:hover { text-decoration: underline; }
.mosaic .filler { flex-grow: 1000; }   /* keeps the last row from stretching huge */
@media (hover: none) { .mosaic figcaption { opacity: 1; padding-top: 16px; } }
@media (max-width: 760px) { .mosaic { gap: 4px; } .mosaic .tile { border-radius: 3px; flex-basis: calc(var(--r) * 120px); } .mosaic-wrap { padding: 0 6px; } }
