/* Big Buck Mounts Taxidermy.
   Colours: bone paper, olive-black ink and a blaze-orange accent,
   with a dark scheme that follows the visitor's system setting. */

:root {
  color-scheme: light dark;

  --bg: #f4efe4;
  --bg-glow: #fbf8f0;
  --surface: #fbf8f0;
  --band: #ebe4d3;
  --ink: #23291f;
  --muted: #5d6455;
  --accent: #a8430f;
  --plaque: #c8571b;
  --rule: #d9d1bf;
  --button-bg: #a8430f;
  --button-ink: #fffaf2;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141812;
    --bg-glow: #1d231a;
    --surface: #1b2018;
    --band: #1b2018;
    --ink: #ece6d8;
    --muted: #a3a898;
    --accent: #e98a47;
    --plaque: #d9662a;
    --rule: #333a2d;
    --button-bg: #e98a47;
    --button-ink: #141812;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  text-wrap: balance;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 3.5rem;
  background: radial-gradient(ellipse at 50% 40%, var(--bg-glow), var(--bg) 70%);
  text-align: center;
}

.mark {
  width: clamp(8rem, 30vw, 11rem);
  height: auto;
  margin-bottom: 1.75rem;
}

.mark-antlers {
  stroke: var(--ink);
}

.mark-plaque {
  fill: var(--plaque);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.lede {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.1875rem;
  text-wrap: balance;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.375rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  background: var(--ink);
  color: var(--bg);
}

.button-primary {
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-ink);
}

.button-primary:hover {
  border-color: var(--ink);
}

.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Sections */

.section,
.band-inner {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--plaque);
  border-radius: 0.5rem;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.band {
  border-block: 1px solid var(--rule);
  background: var(--band);
  text-align: center;
}

.band h2 {
  margin-bottom: 0.5rem;
}

.band p {
  margin: 0;
  color: var(--muted);
}

.band .actions {
  margin-top: 1.5rem;
}

/* Photo gallery: two columns on phones, four from tablet width up.
   Upright photos are 3:4 tiles; wide photos span two columns. */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.shot {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--rule);
}

.shot-wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.shot a {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
}

.shot a:focus-visible {
  outline-offset: -4px;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot span {
  position: absolute;
  inset: auto 0 0;
  padding: 2.25rem 0.875rem 0.625rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* A wide tile takes the height of the upright tiles beside it. */
  .shot-wide {
    aspect-ratio: auto;
  }
}

.band .gallery-more {
  margin-top: 2rem;
}

.section-ruled {
  border-top: 1px solid var(--rule);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 1rem;
  margin: 0;
}

.contact dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact dd {
  margin: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

/* Footer */

.footer {
  padding: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.footer p {
  margin: 0;
}
