/* An archival, editorial treatment, scoped to the history page. */
.history-page {
  --history-paper: #f5f1e8;
  --history-ink: #343c33;
  --history-muted: #65665b;
  --history-wine: #743b42;
  --history-line: #d5cebf;
  background: var(--history-paper);
  color: var(--history-ink);
  font: 400 17px/1.8 var(--font-sansserif), sans-serif;
  overflow: clip;
}
.history-page *, .history-page *::before, .history-page *::after { box-sizing: border-box; }
.history-page :is(h1, h2, h3) {
  color: inherit;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.035em;
  margin: 0;
}
.history-page p { margin: 0; }
.history-page img { display: block; max-width: 100%; }
.history-page a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.history-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 620px;
  border-bottom: 1px solid var(--history-line);
}
.history-hero-content {
  align-self: center;
  padding: 76px 40px 90px max(6vw, calc((100vw - 1280px) / 2));
  position: relative;
  z-index: 2;
}
.history-hero h1 { font-size: clamp(64px, 6.7vw, 104px); line-height: 1.04; }
.history-hero-kicker {
  display: block;
  margin-bottom: 28px;
  font: 600 11px/1.6 var(--font-sansserif), sans-serif;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--history-wine);
}
.history-hero h1 em { display: block; color: var(--history-wine); font-weight: 400; }
.history-hero .lead-text {
  max-width: 370px;
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--history-muted);
}
.history-hero-visual { position: relative; display: grid; align-items: center; padding: 65px 8% 65px 0; isolation: isolate; }
.history-hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: grayscale(1) sepia(.4);
  mix-blend-mode: multiply;
  opacity: .16;
  z-index: -1;
}
.history-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--history-paper), transparent 25%);
  z-index: -1;
}
.history-hero-photo { margin: 0; padding: 11px; border: 1px solid #d5c9b6; background: #fdfbf5; box-shadow: 0 20px 55px #342b2224; transform: rotate(-3deg); }
.history-hero-photo img { width: 100%; height: clamp(370px, 32vw, 490px); object-fit: cover; object-position: 47% center; }
.history-hero-rule { position: absolute; bottom: 0; left: 6%; height: 45px; width: 1px; background: #a49375; }
.history-timeline-container { width: min(1240px, 88%); margin: auto; }
.intro-section { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; padding: 94px 0 100px; border-bottom: 1px solid var(--history-line); }
.intro-section h2 { font-size: clamp(34px, 3.2vw, 47px); line-height: 1.25; max-width: 380px; }
.intro-section p.lead { font: inherit; font-size: 17px; color: var(--history-muted); }
.decorative-divider { position: absolute; left: 0; bottom: 78px; width: 65px; height: 1px; background: #a49375; }
.history-timeline { position: relative; padding-left: 54px; }
.history-timeline-track { position: absolute; left: 0; top: 85px; bottom: 110px; width: 1px; background: var(--history-line); }
.history-timeline-track span { display: block; width: 100%; height: 100%; transform: scaleY(var(--history-progress, 0)); transform-origin: top; background: #8b7961; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 8%;
  align-items: center;
  padding: 90px 0;
  border-bottom: 1px solid var(--history-line);
}
.timeline-item::before { content: ''; position: absolute; left: -59px; top: 100px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #998366; background: var(--history-paper); box-shadow: 0 0 0 7px var(--history-paper); transition: background .5s ease; }
.timeline-item.is-past::before { background: #998366; }
.timeline-year { display: block; margin-bottom: 18px; color: var(--history-wine); font: 400 italic 22px/1.4 'Playfair Display', Georgia, serif; }
.timeline-content h3 { font-size: clamp(32px, 3vw, 43px); line-height: 1.22; margin-bottom: 24px; }
.timeline-content p { color: var(--history-muted); font-size: 16px; line-height: 1.95; }
.timeline-item:nth-of-type(even) .timeline-content { grid-column: 2; grid-row: 1; }
.timeline-item:nth-of-type(even) > :is(.timeline-image, .timeline-image-dual) { grid-column: 1; grid-row: 1; }
.timeline-image, .timeline-image-dual { position: relative; min-width: 0; }
.timeline-image > img, .timeline-image-main > img { width: 100%; height: auto; }
.timeline-image:not(.timeline-image-dual), .timeline-image-main { padding: 9px; background: #fffcf5; border: 1px solid #d8cebc; box-shadow: 0 14px 30px #3c322013; }
.timeline-item--beginning .timeline-image { transform: rotate(1.5deg); }
.timeline-image-dual { padding-bottom: 70px; }
.timeline-image-newspaper { position: absolute; right: -12px; bottom: 0; width: 33%; transform: rotate(5deg); box-shadow: 0 9px 22px #2c251d30; border: 4px solid #f6eedf; background: #f6eedf; }
.timeline-image-newspaper img { width: 100%; height: auto; }
.timeline-image-newspaper-tall { width: 23%; right: -8px; transform: rotate(4deg); }
.timeline-item--families .timeline-image-dual { padding-right: 10%; padding-bottom: 110px; }
.timeline-image-newspaper-left { width: 45%; right: auto; left: -12px; transform: rotate(-5deg); }
.timeline-item--dairy .timeline-image-dual { padding-left: 5%; padding-bottom: 95px; }
.timeline-item--hospitality .timeline-image { transform: rotate(-1.5deg); }
.timeline-item--restoration {
  isolation: isolate;
  color: #f5f1e8;
  border: 0;
  padding: 85px 0 100px;
  margin-top: 12px;
  gap: 10%;
}
.timeline-item--restoration::after { content: ''; position: absolute; inset: 0 calc((min(1240px, 88vw) - 100vw) / 2) 0 calc((min(1240px, 88vw) - 100vw) / 2 - 54px); background: #303e34; z-index: -2; }
.timeline-item--restoration::before { background: #303e34; box-shadow: 0 0 0 7px #303e34; border-color: #c7b58e; }
.timeline-item--restoration .timeline-year { color: #d8c39c; }
.timeline-item--restoration .timeline-content h3 { font-size: clamp(39px, 4vw, 58px); }
.timeline-item--restoration .timeline-content p { color: #e0e2d8; }
.timeline-item--restoration .timeline-image { width: 90%; justify-self: end; padding: 0; background: transparent; border: 0; box-shadow: none; }
.timeline-item--restoration .timeline-image > img { max-height: 580px; object-fit: cover; object-position: center 44%; }
.history-page .photo-credit { display: block; margin-top: 14px; color: #e0e2d8; font-size: 11px; line-height: 1.7; text-align: right; text-decoration: none; }
.history-page .photo-credit:hover { text-decoration: underline; }
.history-page .history-hero-photo .photo-credit { margin: 9px 2px 1px; color: var(--history-muted); text-align: right; font-size: 11px; }
/* Content is always visible by default, including when JavaScript is unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .history-hero-content { animation: history-enter .9s ease both; }
  .history-hero-photo { animation: history-photo-enter 1.2s cubic-bezier(.22,.61,.36,1) both; }
  .history-reveal.is-pending { opacity: 0; translate: 0 24px; }
  .history-reveal { transition: opacity .8s ease, translate .8s cubic-bezier(.22,.61,.36,1); }
  .timeline-content + .history-reveal { transition-delay: .12s; }
}
@keyframes history-enter { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes history-photo-enter { from { opacity: 0; transform: translateY(24px) rotate(-1deg); } to { opacity: 1; transform: translateY(0) rotate(-3deg); } }
@media (min-width: 1600px) { .history-hero-visual { padding-right: max(8%, calc((100vw - 1370px) / 2)); } }
@media (max-width: 1050px) {
  .history-hero { min-height: 550px; grid-template-columns: 1fr 1fr; }
  .history-hero-content { padding-left: 6vw; padding-right: 18px; }
  .history-hero h1 { font-size: clamp(57px, 7vw, 74px); }
  .history-hero-photo img { height: 370px; }
  .intro-section { gap: 7%; padding: 75px 0; }
  .decorative-divider { bottom: 65px; }
  .history-timeline { padding-left: 32px; }
  .timeline-item { gap: 6%; padding: 70px 0; }
  .timeline-item::before { left: -37px; top: 80px; }
  .history-timeline-track { top: 75px; }
  .timeline-item--restoration::after { left: calc((min(1240px, 88vw) - 100vw) / 2 - 32px); }
  .timeline-item--restoration .timeline-image { width: 100%; }
}
@media (max-width: 760px) {
  .history-hero { grid-template-columns: 1fr; }
  .history-hero-content { padding: 52px 7% 38px; }
  .history-hero h1 { max-width: 600px; font-size: clamp(57px, 11vw, 80px); }
  .history-hero-kicker { margin-bottom: 23px; font-size: 10px; }
  .history-hero .lead-text { max-width: 430px; margin-top: 22px; font-size: 15px; }
  .history-hero-visual { padding: 15px 8% 50px; }
  .history-hero-photo { width: 100%; padding: 7px; }
  .history-hero-photo img { height: auto; aspect-ratio: 1.4; }
  .history-hero-visual::after { background: linear-gradient(var(--history-paper), transparent 35%); }
  .history-hero-rule { display: none; }
  .history-timeline-container { width: 86%; }
  .intro-section { display: block; padding: 55px 0; }
  .intro-section h2 { font-size: 36px; max-width: 420px; margin-bottom: 25px; }
  .intro-section p.lead { font-size: 16px; }
  .decorative-divider { position: static; margin-bottom: 25px; width: 52px; }
  .history-timeline { padding-left: 25px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 52px 0 58px; }
  .timeline-item::before { left: -30px; top: 61px; }
  .history-timeline-track { top: 56px; bottom: 0; }
  .timeline-item:nth-of-type(even) .timeline-content,
  .timeline-item:nth-of-type(even) > :is(.timeline-image, .timeline-image-dual) { grid-column: 1; grid-row: auto; }
  .timeline-year { font-size: 19px; margin-bottom: 14px; }
  .timeline-content h3 { font-size: 34px; margin-bottom: 19px; }
  .timeline-content p { font-size: 15px; line-height: 1.9; }
  .timeline-image:not(.timeline-image-dual), .timeline-image-main { padding: 6px; }
  .timeline-image-dual { padding-bottom: 62px; }
  .timeline-item--families .timeline-image-dual { padding-bottom: 95px; }
  .timeline-item--dairy .timeline-image-dual { padding-bottom: 68px; }
  .timeline-image-newspaper { right: -5px; }
  .timeline-image-newspaper-left { left: -5px; right: auto; }
  .timeline-item--restoration { padding-bottom: 55px; margin-top: 0; gap: 30px; }
  .timeline-item--restoration::after { left: calc(-7vw - 25px); right: -7vw; }
  .timeline-item--restoration .timeline-content h3 { font-size: 39px; }
  .timeline-item--restoration .timeline-image { padding: 0; }
  .timeline-item--restoration .timeline-image > img { max-height: 540px; }
  .history-page .photo-credit { font-size: 10px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .history-page *, .history-page *::before { animation: none !important; transition: none !important; }
}
@media print {
  .history-page { overflow: visible; background: white; color: black; }
  .history-reveal { opacity: 1 !important; translate: none !important; }
  .history-hero, .timeline-item { break-inside: avoid; }
  .history-timeline-track { display: none; }
  .timeline-item--restoration { color: black; }
  .timeline-item--restoration::after { background: transparent; }
  .timeline-item--restoration :is(.timeline-year, .timeline-content p, .photo-credit) { color: black; }
}
