@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

/* Arial tuned to Schibsted Grotesk's width and vertical metrics, so the swap doesn't reflow the page. */
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 104.5%;
  ascent-override: 93.5%;
  descent-override: 24.7%;
  line-gap-override: 0%;
}

/* Season Ticket: white ticket stock on a cool ground, LMU navy ink, crimson only on the primary action. */
:root {
  --ground: #eef1f6;
  --paper: #ffffff;
  --ink: #0f1c33;
  --navy: #00285e;
  --crimson: #ab0c2f;
  --crimson-deep: #8a0925;
  --muted: #535d70;
  --line: #d3dae6;
  --perf: #9aa6bb;
  --on-navy: #ffffff;
  --on-navy-muted: #c3d0ee;
  color: var(--ink);
  background: var(--ground);
  accent-color: var(--navy);
  caret-color: var(--navy);
  font-family: "Schibsted Grotesk", "Schibsted Fallback", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  scrollbar-color: var(--perf) var(--ground);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--ground); margin: 0; }
::selection { background: var(--navy); color: var(--on-navy); }
a { color: inherit; text-underline-offset: .2em; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { color: var(--navy); font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
nav { display: flex; gap: 1.5rem; }
nav a, .links a { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--navy); text-decoration: underline; }
:focus-visible { border-radius: .25rem; outline: 2px solid var(--navy); outline-offset: 3px; }
.ticket-stub :focus-visible, .footer :focus-visible { outline-color: var(--on-navy-muted); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { color: var(--navy); font-size: clamp(3rem, 7.5vw, 5.75rem); font-weight: 800; letter-spacing: -.04em; line-height: .92; margin-bottom: 1.5rem; }
h2 { color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.75rem; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin-bottom: .2rem; }
.visually-hidden { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* The ticket: band | main | stub. The stub's left edge is the perforation, with a punched notch top and bottom. */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ticket {
  animation: ticket-in .7s cubic-bezier(.16, 1, .3, 1) both;
  /* drop-shadow follows the punched notches; a box-shadow would fill them in. */
  filter: drop-shadow(0 1px 1px rgb(15 28 51 / 8%)) drop-shadow(0 14px 22px rgb(15 28 51 / 16%));
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) minmax(240px, 30%);
}
.ticket-band {
  background: var(--navy);
  color: var(--on-navy-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .32em;
  padding-block: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  /* Rotated 180°, so these rounded corners land on the ticket's left edge. */
  border-radius: 0 14px 14px 0;
}
.ticket-main { --notch: 13px; background: var(--paper); display: flex; flex-direction: column; mask: radial-gradient(circle var(--notch) at 100% 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; padding: clamp(2rem, 5vw, 3.75rem); }
.ticket-foot { border-top: 1px dashed var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; margin: auto 0 0; overflow-wrap: anywhere; padding-top: 1rem; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 2rem 2.5rem; }
.button { border: 2px solid var(--navy); border-radius: 8px; color: var(--navy); display: inline-block; font-weight: 700; padding: .7rem 1.2rem; text-decoration: none; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.button-primary { background: var(--crimson); border-color: var(--crimson); color: var(--on-navy); }
.button-primary:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); }
.button-secondary:hover { background: var(--navy); color: var(--on-navy); }
.button:focus-visible { border-radius: 8px; }
.button-note { font-size: .75em; font-weight: 600; margin-left: .3em; }

.ticket-stub {
  animation: stub-in .9s cubic-bezier(.16, 1, .3, 1) .15s both;
  background: var(--navy);
  border-radius: 0 14px 14px 0;
  color: var(--on-navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  position: relative;
}
/* Perforation: a dashed rule on the seam, and a notch punched through both halves at each end. */
.ticket-stub::before { border-left: 2px dashed rgb(255 255 255 / 55%); bottom: 1.25rem; content: ""; left: 0; position: absolute; top: 1.25rem; }
.ticket-stub { --notch: 13px; mask: radial-gradient(circle var(--notch) at 0 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 0 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.facts { display: grid; font-size: 1.05rem; font-weight: 650; gap: 0; letter-spacing: -.005em; line-height: 1.35; list-style: none; margin: 0; padding: 0 0 0 .75rem; }
.facts li { border-bottom: 1px solid rgb(255 255 255 / 18%); padding-block: .7rem; }
.facts li:first-child { padding-top: 0; }
.facts li:last-child { border-bottom: 0; }
.now { border-top: 2px dashed rgb(255 255 255 / 45%); color: var(--on-navy-muted); font-size: .95rem; line-height: 1.45; margin: 0 0 0 .75rem; padding-top: 1.25rem; }
.now strong { color: var(--on-navy); display: block; font-size: 1.05rem; }
/* Tabular figures only on dates: this face widens commas and periods under tnum, so prose keeps proportional figures. */
.now-dates { display: block; font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 700; margin-top: .35rem; }

@keyframes ticket-in { from { transform: translateY(14px); } }
@keyframes stub-in { from { transform: translateX(-10px) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .ticket, .ticket-stub { animation: none; } }

.content-grid { display: grid; gap: clamp(3rem, 7vw, 6rem); grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); padding-block: 2.5rem 6rem; }
.section-note { color: var(--muted); margin: 0; max-width: 62ch; }
/* The sidebar rides along beside the long schedule instead of leaving dead space under it. */
.side-column { align-self: start; position: sticky; top: 1.5rem; }
.section { scroll-margin-top: 1.5rem; }
.main-column > .section + .section { margin-top: 4.5rem; }

/* Experience as a season schedule: row number, dates, then the fixture. Rows are split by perforations. */
.schedule { list-style: none; margin: 0; padding: 0; }
.fixture { border-top: 1px dashed var(--perf); column-gap: 1.25rem; display: grid; grid-template-columns: 2ch 8.5rem minmax(0, 1fr); padding-block: 1.6rem; }
.fixture:last-child { border-bottom: 1px dashed var(--perf); }
/* Involvement rows have no number or dates; indent them to the schedule's text column. */
.involvement .fixture { grid-template-columns: minmax(0, 1fr); padding-left: calc(2ch + 8.5rem + 2.5rem); }
.fixture-no, .role-dates { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.6; margin: 0; padding-top: .1rem; }
.fixture-no { color: var(--navy); }
.role-org { color: var(--navy); font-size: .95rem; font-weight: 600; margin-bottom: .5rem; }
.role-body { color: var(--muted); margin-bottom: 0; max-width: 62ch; }


/* Education and skills read as the ticket's fine print: smaller heads, tight rules. */
.side-column h2 { font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.side-column h3 { font-size: 1.05rem; }
.compact-section + .compact-section { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 2.5rem; }
.education-item + .education-item { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.2rem; }
.education-item p { color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }
.education-item p strong { color: var(--ink); }
.education-item span { white-space: nowrap; }
.education-item p span:first-child { font-variant-numeric: tabular-nums; }
.skill-list { display: flex; flex-wrap: wrap; font-size: .95rem; font-weight: 600; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }

.footer { background: var(--navy); color: var(--on-navy); padding-block: 4rem; }
.footer-inner { align-items: end; display: flex; gap: 3rem; justify-content: space-between; }
.footer h2 { color: var(--on-navy); max-width: 460px; }
.footer-email { color: var(--on-navy); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 40%); text-decoration-thickness: 2px; }
.footer-email:hover { text-decoration-color: var(--on-navy); }
.links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer .links a { color: var(--on-navy-muted); }
.ext { margin-left: .15em; vertical-align: -.05em; }
.footer .links a:hover { color: var(--on-navy); text-decoration: underline; }

.prose { max-width: 60ch; padding-block: clamp(3rem, 7vw, 5rem) 6rem; }
.prose h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
.prose h2 { font-size: 1.5rem; margin: 3rem 0 .75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--navy); font-weight: 600; }
.updated { color: var(--muted); font-size: .9rem; }
.footer-simple { padding-block: 2.5rem; }

@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 1120px); }
  .nav { min-height: 58px; }
  nav { gap: 1rem; }
  nav a { font-size: .85rem; }
  .hero { padding-block: 1.5rem 2.5rem; }
  /* The ticket turns upright: band on top, stub torn off below along a horizontal perforation. */
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket-band { border-radius: 14px 14px 0 0; letter-spacing: .28em; padding: .5rem 1rem; transform: none; writing-mode: horizontal-tb; }
  .ticket-main { padding: 1.5rem 1.5rem 1.75rem; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .ticket-main { mask: radial-gradient(circle var(--notch) at 0 100%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, transparent 98%, #000) right / 51% 100% no-repeat; }
  .ticket-stub { border-radius: 0 0 14px 14px; gap: 1.25rem; padding: 1.5rem 1.5rem 1.5rem; mask: radial-gradient(circle var(--notch) at 0 0, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, transparent 98%, #000) right / 51% 100% no-repeat; }
  .ticket-stub::before { border-left: 0; border-top: 2px dashed rgb(255 255 255 / 55%); bottom: auto; left: 1.25rem; right: 1.25rem; top: 0; }
  .facts { padding-left: 0; }
  .now { margin-left: 0; }
  /* Two rows of actions keep the stub's current role inside the first phone screen. */
  .hero-actions { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; margin-block: 1.5rem 0; }
  .hero-actions .button { padding-inline: .5rem; text-align: center; }
  .button-verb, .ticket-foot { display: none; }
  .hero-actions .button { text-transform: capitalize; }
  h1 { margin-bottom: 1rem; }
  .lede { font-size: 1.05rem; margin-bottom: 0; }
  @keyframes stub-in { from { transform: translateY(-8px); } }
  .content-grid { display: block; padding-block: 1rem 4rem; }
  .side-column { margin-top: 4rem; position: static; }
  .fixture { grid-template-columns: 2ch minmax(0, 1fr); row-gap: .2rem; }
  .role { grid-column: 1 / -1; }
  .involvement .fixture { padding-left: 0; }
  .footer-inner { align-items: start; flex-direction: column; }
}
