/* ajlanigan.com — refined editorial profile.
   Warm bone paper · deep claret · brass hairline · Fraunces + Newsreader. */

:root {
  /* palette — warm, tinted neutrals (oklch) */
  --paper:      oklch(0.972 0.008 75);   /* warm bone */
  --paper-2:    oklch(0.945 0.012 72);   /* slightly deeper panel */
  --ink:        oklch(0.245 0.018 55);   /* warm near-black */
  --ink-soft:   oklch(0.405 0.020 55);   /* secondary text */
  --claret:     oklch(0.435 0.135 24);   /* deep accent */
  --claret-deep:oklch(0.360 0.120 25);
  --brass:      oklch(0.680 0.090 78);   /* hairline / fine accent */
  --line:       oklch(0.245 0.018 55 / 0.16);

  --maxw: 72rem;
  --measure: 38rem;

  --step--1: clamp(0.86rem, 0.83rem + 0.16vw, 0.95rem);
  --step-0:  clamp(1.06rem, 1.00rem + 0.30vw, 1.225rem);
  --step-1:  clamp(1.30rem, 1.17rem + 0.62vw, 1.66rem);
  --step-2:  clamp(1.62rem, 1.35rem + 1.30vw, 2.40rem);
  --step-3:  clamp(2.05rem, 1.55rem + 2.45vw, 3.60rem);
  --step-4:  clamp(2.90rem, 1.90rem + 5.00vw, 6.40rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint-ish */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-optical-sizing: auto;
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--claret); color: var(--paper); }

a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7em 1.1em; border-radius: 0 0 0.4em 0;
}
.skip-link:focus { left: 0; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: "Newsreader", serif;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--claret);
  margin: 0 0 0.9rem;
}
.eyebrow--light { color: var(--brass); }

.section-title {
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
}

.btn {
  --pad-y: 0.78em; --pad-x: 1.5em;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Newsreader", serif;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--claret); color: var(--paper); }
.btn--solid:hover { background: var(--claret-deep); }
.btn--line { background: transparent; color: var(--paper); border-color: oklch(1 0 0 / 0.55); }
.btn--line:hover { border-color: var(--paper); background: oklch(1 0 0 / 0.08); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--claret); color: var(--claret); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.972 0.008 75 / 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem clamp(1.1rem, 4vw, 2.5rem);
}
.nav__brand { display: inline-flex; margin-right: auto; }
.nav__brand img { height: 1.55rem; width: auto; }
.nav__links {
  display: flex; gap: clamp(1rem, 2.4vw, 2.1rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  text-decoration: none; font-size: var(--step--1);
  letter-spacing: 0.04em; color: var(--ink-soft);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--claret); border-color: var(--claret); }
@media (max-width: 620px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(30rem, 84vh, 50rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, oklch(0.20 0.02 55 / 0.92) 0%, oklch(0.20 0.02 55 / 0.45) 38%, oklch(0.20 0.02 55 / 0.12) 70%, transparent 100%),
    linear-gradient(to right, oklch(0.20 0.02 55 / 0.40), transparent 60%);
}
.hero__inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
  color: var(--paper);
}
.hero__title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__sub {
  font-size: var(--step-1);
  font-weight: 320;
  max-width: 30ch;
  margin: 0.7rem 0 1.8rem;
  color: oklch(1 0 0 / 0.88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- motto ---------- */
.motto {
  max-width: 54rem; margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.1rem, 4vw, 2.5rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.motto__label {
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink-soft); margin: 0 0 1.4rem;
}
.motto__quote {
  font-family: "Fraunces", serif;
  font-weight: 420;
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.motto__quote em { color: var(--claret); font-style: italic; }
.motto__cite {
  display: block; margin-top: 1.5rem;
  font-size: var(--step--1); font-style: normal; letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- story ---------- */
.story {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.story__intro { max-width: 48rem; }
.story__lead {
  font-size: var(--step-1);
  font-weight: 340;
  line-height: 1.5;
  margin: 1.1rem 0 0;
  color: var(--ink);
}
.story__lead + .story__lead { margin-top: 1rem; color: var(--ink-soft); }

.story__body {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.chapter { break-inside: avoid; margin: 0 0 2rem; }
.chapter h3 {
  font-family: "Fraunces", serif;
  font-weight: 540;
  font-size: var(--step-1);
  line-height: 1.12;
  letter-spacing: -0.008em;
  margin: 0 0 0.5rem;
}
.chapter p { margin: 0; }
.chapter--feature {
  column-span: all;
  background: var(--paper-2);
  border-left: 3px solid var(--claret);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 3.5vw, 2.6rem);
  border-radius: 0 0.5rem 0.5rem 0;
}
.chapter--feature h3 { font-size: var(--step-2); color: var(--claret-deep); }
.chapter--feature p { font-size: var(--step-0); max-width: var(--measure); }

@media (max-width: 720px) {
  .story__body { columns: 1; }
}

.honors {
  background: var(--ink);
  color: oklch(0.92 0.01 75);
  border-radius: 0.8rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
}
.honors .eyebrow { color: var(--brass); }
.honors p { max-width: var(--measure); }
.honors__pull {
  font-family: "Fraunces", serif;
  font-weight: 420;
  font-size: var(--step-2);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--brass);
  color: var(--paper);
}
.honors__pull cite {
  display: block; margin-top: 0.9rem;
  font-family: "Newsreader", serif; font-style: normal;
  font-size: var(--step--1); letter-spacing: 0.03em;
  color: oklch(0.78 0.02 75);
}

/* ---------- videos ---------- */
.videos {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
}
.videos--alt { background: var(--paper-2); max-width: none; }
.videos--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.videos__head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.videos__head .section-title { font-size: var(--step-2); }

.video-grid {
  display: grid; gap: clamp(1.2rem, 2.5vw, 2rem);
}
.video-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.video-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .video-grid[data-cols="3"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr !important; } }

.video__trigger {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: 0.6rem; overflow: hidden;
  background: var(--ink); cursor: pointer; aspect-ratio: 16 / 9;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.video__trigger img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.video__trigger:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -20px oklch(0.20 0.02 55 / 0.55); }
.video__trigger:hover img { transform: scale(1.04); opacity: 0.92; }
.video__trigger:focus-visible { outline: 3px solid var(--claret); outline-offset: 3px; }

.video__play {
  position: absolute; inset: 0; margin: auto;
  width: 4.2rem; height: 4.2rem; border-radius: 999px;
  background: oklch(0.972 0.008 75 / 0.92);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.video__play::after {
  content: ""; display: block;
  width: 0; height: 0; margin-left: 0.28rem;
  border-left: 1.15rem solid var(--claret);
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
}
.video__trigger:hover .video__play { transform: scale(1.08); background: var(--paper); }

.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 0.6rem; display: block; background: #000; }
.video__title {
  font-family: "Newsreader", serif;
  font-weight: 460;
  font-size: var(--step-0);
  line-height: 1.25;
  margin: 0.85rem 0 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: oklch(0.9 0.01 75);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.1rem, 4vw, 2.5rem);
}
.site-footer__inner {
  max-width: 42rem; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.3rem;
}
.site-footer__logo { height: 2rem; width: auto; filter: invert(1) brightness(1.6); }
.site-footer__tag {
  font-family: "Fraunces", serif; font-size: var(--step-1); font-weight: 380;
  line-height: 1.3; margin: 0; max-width: 28ch; color: var(--paper);
}
.site-footer__copy {
  font-size: var(--step--1); letter-spacing: 0.04em; margin: 0.5rem 0 0;
  color: oklch(0.72 0.015 75);
}

/* ---------- entrance motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn:hover, .video__trigger:hover { transform: none; }
}
