:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #241d18;
  background: #f4efe6;
  --ink: #241d18;
  --muted-ink: #514237;
  --paper: #fffaf0;
  --sand: #f4efe6;
  --clay: #9a5d35;
  --cedar: #5b3a25;
  --sage: #667052;
  --sky: #d8e4e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fffaf0;
  background: linear-gradient(rgba(36, 29, 24, 0.82), rgba(36, 29, 24, 0));
}

.site-header.dark {
  position: sticky;
  color: #fffaf0;
  background: #2d241d;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 64px) clamp(48px, 9vw, 96px);
  color: #fffaf0;
  background:
    linear-gradient(90deg, rgba(31, 25, 20, 0.84), rgba(31, 25, 20, 0.34) 64%),
    linear-gradient(0deg, rgba(31, 25, 20, 0.52), rgba(31, 25, 20, 0.12)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.hero-content {
  width: min(840px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero .eyebrow {
  color: #f3c487;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.5vw, 3.2rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.lede,
.page-intro p {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6;
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px);
  background: var(--sand);
}

.section.compact {
  padding-top: 36px;
}

.section.muted {
  background: #e4dacb;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.section p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tile,
.profile-card,
.project-card {
  display: block;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(36, 29, 24, 0.16);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(54, 39, 26, 0.08);
}

.tile h2,
.tile h3,
.profile-card h2,
.project-card h2 {
  margin-top: 14px;
}

.tile p,
.profile-card p,
.project-card p {
  margin-top: 10px;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(54, 39, 26, 0.12);
}

.tile-image,
.profile-photo,
.gallery-item {
  display: block;
  width: 100%;
  border-radius: 6px;
  background-color: var(--sky);
  background-position: center;
  background-size: cover;
}

.tile-image {
  aspect-ratio: 4 / 3;
}

.profile-photo {
  aspect-ratio: 1 / 1;
}

.gallery-item {
  min-height: 220px;
}

.horse {
  background-image:
    linear-gradient(rgba(55, 38, 25, 0.08), rgba(55, 38, 25, 0.18)),
    url("https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=900&q=80");
}

.foal {
  background-image:
    linear-gradient(rgba(55, 38, 25, 0.08), rgba(55, 38, 25, 0.16)),
    url("https://images.unsplash.com/photo-1551479460-3de7a562dfb9?auto=format&fit=crop&w=900&q=80");
}

.dog {
  background-image:
    linear-gradient(rgba(55, 38, 25, 0.08), rgba(55, 38, 25, 0.16)),
    url("https://images.unsplash.com/photo-1507146426996-ef05306b995a?auto=format&fit=crop&w=900&q=80");
}

.ferret {
  background-image:
    linear-gradient(rgba(55, 38, 25, 0.08), rgba(55, 38, 25, 0.18)),
    url("https://images.unsplash.com/photo-1611003229186-80e40cd54966?auto=format&fit=crop&w=900&q=80");
}

.cat {
  background-image:
    linear-gradient(rgba(55, 38, 25, 0.08), rgba(55, 38, 25, 0.18)),
    url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=900&q=80");
}

.field {
  background-image:
    linear-gradient(rgba(55, 38, 25, 0.08), rgba(55, 38, 25, 0.18)),
    url("https://images.unsplash.com/photo-1495107334309-fcf20504a5ab?auto=format&fit=crop&w=900&q=80");
}

.subpage {
  background: var(--sand);
}

.page-intro {
  padding: clamp(64px, 10vw, 116px) clamp(20px, 5vw, 64px) 26px;
  background: #e4dacb;
}

.page-intro > * {
  width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .feature-grid,
  .profile-grid,
  .profile-grid.six,
  .gallery-grid,
  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-header.dark {
    position: sticky;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 84vh;
  }

  .two-column,
  .feature-grid,
  .profile-grid,
  .profile-grid.six,
  .gallery-grid,
  .project-list {
    grid-template-columns: 1fr;
  }
}
