/* Tronar Red Angus
   Colours come from the farm: the Red Angus coat, ironbark, Beermullah sand
   and the purple champion sash (used only to mark show awards). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --coat: #6b2915;
  --bark: #2a1f19;
  --sand: #e9d9b5;
  --paper: #fff;
  --dust: #6a6158;
  --sash: #5b2c83;
  --rule: #ddd2bd;
  --on-coat: #f4e4d9;

  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Literata", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 76rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--bark);
  font: 400 1.125rem/1.65 var(--serif);
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

h1, h2, h3, p, ul, figure { margin: 0; }

h1, h2 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); }
h3 { font-family: var(--sans); font-weight: 700; line-height: 1.2; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.5rem 1rem;
  background: var(--paper);
  font-family: var(--sans);
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 2px;
  background: var(--coat);
  color: #fff;
  font: 700 1rem/1.2 var(--sans);
  text-decoration: none;
}
.button:hover { background: var(--bark); }

.sash {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  background: var(--sash);
  color: #fff;
  font: 600 0.75rem/1.5 var(--sans);
  font-stretch: 100%;
  vertical-align: 0.2em;
  white-space: nowrap;
}

/* Masthead */

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2.5rem;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  font-family: var(--sans);
}
.brand img { width: auto; height: 42px; }
.masthead nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.75rem; }
.masthead nav a { font-weight: 500; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.masthead-phone {
  font-weight: 700;
  font-stretch: 112%;
  color: var(--coat);
  text-decoration: none;
  white-space: nowrap;
}
.masthead-phone:hover { text-decoration: underline; }

/* Hero: the photograph, with the coat-coloured headline block set into its lower edge */

.hero {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, 44rem)
    minmax(0, 32rem)
    minmax(var(--gutter), 1fr);
  grid-template-rows: minmax(18rem, min(52vh, 40rem)) 6rem auto;
}
.hero-photo {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero-band {
  grid-column: 2;
  grid-row: 2 / 4;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--coat);
  color: #fff;
}
.hero h1 { font-size: clamp(2.1rem, 0.9rem + 3.8vw, 4.25rem); }
.hero-aside {
  grid-column: 3;
  grid-row: 3;
  padding: 2rem 0 0 clamp(1.5rem, 4vw, 3.5rem);
}
.hero-aside p { max-width: 30em; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-weight: 600;
}

/* Story */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 2rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.story-text p + p { margin-top: 1rem; }
.story-text p:first-child { font-size: 1.45rem; line-height: 1.45; }
.further { margin-top: 1.75rem; padding: 0; list-style: none; font-family: var(--sans); font-weight: 600; }
.further li + li { margin-top: 0.4rem; }
.traits h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.traits ul { padding: 0; list-style: none; font-family: var(--sans); }
.traits li { padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.traits li:last-child { border-bottom: 1px solid var(--rule); }

/* Cattle */

.herd { background: var(--coat); color: #fff; }
.herd-intro { max-width: 36em; margin-top: 1.25rem; color: var(--on-coat); }
.lots { margin-top: 2.5rem; padding: 0; list-style: none; }
.lots li { border-top: 1px solid rgb(255 255 255 / 0.25); }
.lots li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.25); }
.lot {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) minmax(0, 24rem);
  align-items: center;
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
  padding: 1.5rem 0;
  text-decoration: none;
}
.lot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lot h3 {
  font-size: clamp(1.8rem, 0.9rem + 3vw, 3.5rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
}
.lot p { color: var(--on-coat); }
.lot:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

/* Land */

.land {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.film figcaption { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.9rem; color: var(--dust); }
.film-poster { position: relative; display: block; }
.film-poster img, .film iframe { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.film-play {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.3rem;
  background: var(--coat);
  color: #fff;
  font: 700 1.05rem/1 var(--sans);
  font-stretch: 112%;
}
.film-poster:hover .film-play { background: var(--bark); }
.land h2 { margin-bottom: 1.25rem; }
.land p + p { margin-top: 1rem; }
.land p:last-child { font-family: var(--sans); font-weight: 600; font-size: 1rem; }

/* Journal entries, on the home page and the journal page */

.journal { padding-top: 0; }
.journal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.journal-head a { font-family: var(--sans); font-weight: 600; }
.entries { border-bottom: 1px solid var(--rule); }
.entry {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 9rem;
  align-items: center;
  gap: 0.25rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.entry time { font-family: var(--sans); font-size: 0.95rem; color: var(--dust); }
.entry-title {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.25;
}
.entry img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.entry:hover .entry-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

.journal-page { padding-top: clamp(2.5rem, 5vw, 4rem); }
.journal-page h1, .gallery h1, .compact h1 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4rem); }
.intro { max-width: 36em; margin: 1.25rem 0 2.5rem; font-size: 1.25rem; }

/* Visit */

.visit { background: var(--sand); }
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}
.visit h2 { margin-bottom: 1.25rem; }
.visit-details p + p { margin-top: 1.25rem; }
.phones { display: flex; flex-direction: column; }
.phones a {
  color: var(--coat);
  font: 800 clamp(1.8rem, 1rem + 2.6vw, 3rem)/1.15 var(--sans);
  font-stretch: 125%;
  text-decoration: none;
}
.phones a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.email { overflow-wrap: anywhere; }

/* Footer */

.footer { background: var(--bark); color: #e8ddd0; font-size: 0.95rem; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 3.5rem var(--gutter);
}
.footer-brand img { width: min(17rem, 100%); }
.footer address { font-style: normal; }
.footer nav { display: flex; flex-direction: column; gap: 0.35rem; font-family: var(--sans); }

/* Articles */

.article { max-width: calc(46rem + 2 * var(--gutter)); margin-inline: auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 5rem; }
.article-date { margin-bottom: 1rem; font-family: var(--sans); font-size: 0.95rem; color: var(--dust); }
.article h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem); }
.article-photo {
  width: min(62rem, 100vw - 2 * var(--gutter));
  max-width: none;
  max-height: 80vh;
  margin: 2.5rem 0 2.5rem calc(50% - min(31rem, 50vw - var(--gutter)));
  object-fit: cover;
}
.article-head + .prose { margin-top: 2rem; }
.prose { font-size: 1.2rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  margin-top: 2em;
  font-family: var(--sans);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.2;
}
.prose h2 { font-size: 1.6rem; }
.prose h3, .prose h4 { font-size: 1.3rem; }
.prose h5, .prose h6 { font-size: 1.05rem; }
.prose :is(h2, h3, h4, h5, h6):empty { display: none; }
.prose img { margin-block: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose blockquote { margin: 2.25rem 0; padding-left: 1.25rem; border-left: 3px solid var(--coat); }
.prose blockquote p:first-child { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-style: italic; line-height: 1.35; }
.prose blockquote p + p { margin-top: 0.75rem; font-family: var(--sans); font-size: 0.95rem; color: var(--dust); }
.prose a { text-decoration-color: var(--coat); }
.article-call { margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--sand); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-weight: 700; line-height: 1.3; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager span { display: block; margin-bottom: 0.3rem; font-size: 0.9rem; font-weight: 400; color: var(--dust); }
.pager-older { grid-column: 2; text-align: right; }

/* Photographs */

.photos { columns: 3 16rem; column-gap: 1.25rem; }
.photos figure { break-inside: avoid; margin-bottom: 1.5rem; }
.photos figcaption { margin-top: 0.5rem; font-family: var(--sans); font-size: 0.9rem; color: var(--dust); }
.credit { margin-top: 1rem; font-size: 0.95rem; color: var(--dust); }

.compact { min-height: 50vh; }
.compact p { margin: 1.25rem 0 2rem; }

/* Smaller screens */

@media (max-width: 960px) {
  .masthead { grid-template-columns: auto auto; justify-content: space-between; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
  .masthead nav a:last-child { display: none; }
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .traits { grid-column: 2; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .brand img { height: 32px; }
  .hero {
    grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
    grid-template-rows: minmax(15rem, min(48vh, 26rem)) 3rem auto auto;
  }
  .hero-band { grid-column: 2; grid-row: 2 / 4; }
  .hero-aside { grid-column: 2; grid-row: 4; padding: 1.5rem 0 0; }
  .story, .land, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .traits { grid-column: auto; }
  .story-text p:first-child { font-size: 1.3rem; }
  .lot { grid-template-columns: minmax(0, 1fr); padding: 1.75rem 0; }
  .entry { grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 0.25rem 1rem; }
  .entry time { grid-column: 1; grid-row: 1; }
  .entry-title { grid-column: 1; grid-row: 2; }
  .entry img { grid-column: 2; grid-row: 1 / 3; }
  .prose { font-size: 1.1rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
