/* Ag360 — base: reset, typography, layout primitives */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: var(--lh-display);
  font-variation-settings: 'opsz' 60;
  letter-spacing: -0.021em;
}
h2 {
  font-size: var(--t-h2);
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.016em;
}
h3 {
  font-size: var(--t-h3);
  font-variation-settings: 'opsz' 20;
  font-weight: 500;
}

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--ag-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; }
li { margin-bottom: var(--s-2); }

.prose table,
.program table,
.entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.prose table th, .prose table td,
.program table th, .program table td,
.entry-content table th, .entry-content table td {
  min-width: 8rem;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule-invert);
  text-align: left;
  vertical-align: top;
}
.on-bone table th, .on-bone table td,
.why table th, .why table td { border-bottom-color: var(--rule); }

.prose pre,
.program pre,
.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-4);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  line-height: 1.55;
  tab-size: 2;
}
.on-bone pre, .why pre { background: rgba(11, 20, 32, 0.06); }
:where(.prose, .program, .entry-content) code { overflow-wrap: break-word; }

:where(.prose, .program, .entry-content) :is(iframe, embed, object, video) {
  display: block;
  max-width: 100%;
}
:where(.prose, .program, .entry-content) :is(iframe, video) { height: auto; }

:where(.prose, .program, .entry-content) a { overflow-wrap: break-word; }

:where(.prose, .program) :is(.alignwide, .alignfull) {
  max-width: none;
  margin-inline: auto;
}
:where(.prose, .program) .alignwide { width: min(var(--wrap), 100vw - var(--gutter) * 2); }
:where(.prose, .program) .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
:where(.prose, .program) .aligncenter { margin-inline: auto; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--t-small);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--text { max-width: calc(var(--wrap-text) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--alt { background: var(--bg-alt); }

/* Hairline. The site's only divider. */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}

/* Mono is data only: dates, prices, seat counts, the countdown. */
.data {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--text-muted); }

.sr-only,
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
