/* SEF website. SEF identity: teal, charcoal; Sora headings, Geist body. */
/* Self-hosted variable fonts (OFL), subset to Latin. Sources: Rory's Branding & Design/Fonts folder. */
@font-face { font-family: "Sora"; src: url("/fonts/sora-var.woff") format("woff"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
:root {
  --teal: #08a0b8;
  --teal-dark: #067a8c;     /* teal text on white at small sizes (AA) */
  --teal-wash: #eef8fa;
  --charcoal: #353a3a;
  --charcoal-2: #2c3030;
  --ink: #111414;
  --grey: #5b6262;
  --line: #d9dede;
  --white: #ffffff;
  --head: "Sora", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --gap: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--white); color: var(--ink); font: 400 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
section.dark :focus-visible, .consent :focus-visible { outline-color: var(--white); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; color: var(--teal); margin: 0 0 var(--gap); line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.015em; }
h4 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; max-width: 780px; }
.sub { font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--ink); margin-top: calc(var(--gap) * -0.5); }
.prose { max-width: 780px; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 780px; }
.wrap.legal > * { max-width: 820px; }
.small { font-size: 15px; color: var(--grey); }
section.dark .small { color: #d5dcdc; }
.h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.015em; }
.prose em, .lede em { font-style: italic; }

/* Bullets: hollow teal circles */
ul.bullets, .prose ul { list-style: none; padding: 0; margin: 0 0 16px; }
ul.bullets li, .prose ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.bullets li::before, .prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border: 2px solid var(--teal); border-radius: 50%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { width: 132px; }
.site-nav { display: flex; align-items: center; gap: 4px; font-family: var(--head); font-size: 16px; }
.site-nav a, .nav-parent { color: var(--teal-dark); text-decoration: none; padding: 10px 14px; border: 0; background: none; font: inherit; cursor: pointer; border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.site-nav a:hover, .nav-parent:hover { color: var(--ink); }
.site-nav [aria-current="page"], .nav-parent.current { color: var(--ink); border-color: var(--ink); }
.nav-group { position: relative; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); border: 1px solid var(--line); padding: 6px 0; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.nav-sub a { display: block; border: 0; }
.nav-sub a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group.open .nav-sub { display: block; }
.nav-toggle { display: none; font: 600 16px var(--head); background: none; border: 1px solid var(--teal-dark); color: var(--teal-dark); padding: 8px 14px; cursor: pointer; }

/* Sections */
section { padding: 72px 0; position: relative; overflow: hidden; }
section.tight { padding-top: 0; }
section.dark { background: var(--charcoal); color: var(--white); }
section.dark a:not(.button) { color: #7fd6e4; }
section.dark .sub { color: var(--white); }
section.wash { background: var(--teal-wash); }
.stack > * + * { margin-top: var(--gap); }

/* Diamond motif: outlined squares turned 45 degrees, as in the logo */
.diamonds::before, .diamonds::after { content: ""; position: absolute; border: 26px solid var(--teal); transform: rotate(45deg); pointer-events: none; opacity: .16; }
.diamonds::before { width: 360px; height: 360px; right: -120px; top: -150px; }
.diamonds::after { width: 240px; height: 240px; right: 120px; bottom: -190px; opacity: .1; }
section.dark.diamonds::before { opacity: .55; border-color: #127c8c; }
section.dark.diamonds::after { opacity: .35; border-color: #127c8c; }
.diamonds > .wrap { position: relative; z-index: 1; }

/* Page head */
.page-head { padding: 72px 0 56px; background: var(--white) url("/assets/diamond-bg.jpg") no-repeat center center / cover; }
.page-head h1 { max-width: 900px; }
.home-hero h1 { max-width: 760px; }

/* Two-column feature (text + image); stacks on mobile, heading always above copy */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: .9fr 1.1fr; }
.feature.flip .feature-media { order: -1; }
.feature-media img { width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.feature-media.portrait img { max-width: 380px; margin-inline: auto; }
.page-all-to-play-for .feature-media img { box-shadow: none; }
.event-meta { font-family: var(--head); font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.event-meta span { display: block; font-weight: 400; }
section.dark .event-meta { color: var(--white); }

/* Buttons: square, SEF teal with white text. 19px bold counts as large text, so white on teal meets AA (3.1:1). */
.button { display: inline-block; background: var(--teal); color: var(--white); border: 1px solid var(--teal); padding: 13px 28px; font: 700 19px var(--head); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.button:disabled { opacity: .6; cursor: wait; }
section.dark .button:hover { background: #0bb4cf; border-color: #0bb4cf; }
.button-ghost { background: none; border-color: currentColor; color: inherit; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards: audiences, what we do */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card h3 { font-size: 24px; margin-bottom: 12px; }

/* People */
.people { display: grid; gap: 24px; }
.person { display: grid; grid-template-columns: 220px 1fr; gap: 32px; background: var(--charcoal); color: var(--white); padding: 28px; }
.person img { width: 220px; height: 220px; object-fit: cover; }
.person h3 { color: var(--white); font-size: 26px; margin-bottom: 4px; }
.person .role { font-size: 15px; line-height: 1.45; margin-bottom: 16px; color: #d5dcdc; }

/* Speakers (event) */
.speakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 24px; padding: 0; list-style: none; }
.speakers li { font-family: var(--head); }
.speakers strong { display: block; font-size: 18px; }
.speakers span { font-size: 15px; color: var(--grey); }
section.dark .speakers span { color: #d5dcdc; }

/* Events list */
.event { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.event h3 { margin-bottom: 8px; }
.event .when { font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--grey); margin-bottom: 12px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font: 600 15px var(--head); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 17px var(--body); padding: 12px 14px; border: 1px solid #9aa3a3; background: var(--white); color: var(--ink); border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-dark); outline: 2px solid var(--teal); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal-dark); flex: none; }
.req { color: var(--teal-dark); }
.form-status { font-size: 16px; min-height: 1.4em; }
.form-status[data-state="ok"] { color: #11664a; }
.form-status[data-state="error"] { color: #a3361a; }
.download-ready { border-left: 4px solid var(--teal); padding: 12px 0 12px 18px; }
.form-box { background: var(--teal-wash); padding: 32px; }
section.dark .form-box { background: var(--charcoal-2); }
.signup { display: flex; gap: 12px; flex-wrap: wrap; max-width: 640px; }
.signup .field { flex: 1 1 280px; }

/* Legal pages */
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal { max-width: 820px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; }
.footer-logo { width: 104px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--grey); margin: 8px 0 0; }
.footer-legal a, .link-button { color: var(--grey); }
.link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Cookie banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--charcoal); color: var(--white); padding: 18px 0; font-size: 15px; }
.consent a { color: #7fd6e4; }
.consent-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent .button { padding: 10px 20px; font-size: 19px; }
.consent .button-ghost { border-color: var(--white); color: var(--white); }

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .cards, .cards.two { grid-template-columns: 1fr; gap: 28px; }
  .speakers { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  .page-head { background-position: 30% center; background-size: cover; }
  body { font-size: 17px; }
  section { padding: 52px 0; }
  .page-head { padding: 48px 0 40px; }
  .header-inner { min-height: 68px; }
  .logo img { width: 104px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a, .nav-parent { padding: 12px 0; text-align: left; border: 0; }
  .site-nav [aria-current="page"] { text-decoration: underline; }
  .nav-sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .site-nav .nav-sub a { color: var(--teal-dark); }
  .person { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .person img { width: 160px; height: 160px; }
  .field-row { grid-template-columns: 1fr; }
  .form-box { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-direction: column; }
  .consent-inner { flex-direction: column; align-items: flex-start; }
  .diamonds::before { width: 220px; height: 220px; border-width: 16px; right: -110px; top: -110px; }
  .diamonds::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.feature-media.mockup img { box-shadow: none; }
.feature-media.atpf img { width: 135%; max-width: none; margin-left: -10%; }
@media (max-width: 900px) { .feature-media.atpf img { width: 115%; margin-left: -5%; } }
.feature.next { margin-top: 72px; }
section.rule { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .feature.next { margin-top: 52px; } }

/* Publications index */
.reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.report { display: grid; gap: 18px; align-content: start; color: inherit; text-decoration: none; }
.report .cover { aspect-ratio: 4 / 3; background: var(--teal-wash); padding: 20px; overflow: hidden; }
.report .cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.report .cover { min-height: 0; }
.report:hover .cover img { transform: translateY(-4px); }
.report h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.015em; }
.report .report-meta { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--grey); margin-bottom: 10px; }
.report .more { font-family: var(--head); font-weight: 700; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .reports { grid-template-columns: 1fr; gap: 44px; } }
.prose > h2:not(:first-child) { margin-top: 48px; }
