:root {
  --bg: #fdfdfd;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #8a3324;
  --rule: #e5e5e5;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Charter", "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.award-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -3rem 0 2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.award-banner p {
  margin: 0;
}

.award-banner .award-amount {
  padding: 0;
  background: transparent;
}

.award-banner-logo {
  display: block;
  width: min(150px, 30%);
  flex-shrink: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.award-banner-logo:hover {
  opacity: 0.85;
  text-decoration: none;
}

.award-banner-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-visual {
  position: relative;
  margin: 0 0 0.8rem;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background: linear-gradient(
    to bottom,
    rgba(253, 253, 253, 0),
    rgba(253, 253, 253, 0.82) 68%,
    var(--bg)
  );
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 253, 253, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
}

.topbar-brand:hover {
  text-decoration: none;
}

.topbar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.005em;
}

.topbar-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
}

.topbar-sep {
  margin: 0 0.35em;
  color: #c8c8c4;
}

.topbar-logo {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: none;
}

.topbar-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.topbar-logo img {
  display: block;
  height: 36px;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.toc {
  position: fixed;
  top: 5rem;
  left: calc(50% + (var(--max-width) / 2) + 2rem);
  width: 180px;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
}

.toc-label {
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}

.toc a {
  display: block;
  padding: 0.32rem 0 0.32rem 0.75rem;
  margin-left: -0.75rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.toc a:hover {
  color: var(--text);
}

.toc a.active {
  color: var(--text);
  border-left-color: var(--accent);
}

section {
  scroll-margin-top: 4.5rem;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-visual + h1 {
  position: relative;
  z-index: 1;
  margin-top: -2.05rem;
}

.subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: 0 0 1.2rem;
  line-height: 1.3;
}

.tagline {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.6rem;
}

li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

em {
  font-style: italic;
}

strong {
  font-weight: 700;
}

.intro-highlight {
  padding: 0 0.04em;
  background: linear-gradient(
    to top,
    rgba(138, 51, 36, 0.12) 38%,
    transparent 38%
  );
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--text);
  font-weight: 700;
}

.schedule-switch {
  display: inline-flex;
  gap: 0.15rem;
  margin: 0.2rem 0 0.9rem;
  padding: 0.18rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #f7f7f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.schedule-tab {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 0.42rem 0.85rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.schedule-tab:hover,
.schedule-tab:focus-visible {
  color: var(--text);
}

.schedule-tab:focus-visible {
  outline: 2px solid rgba(138, 51, 36, 0.45);
  outline-offset: 2px;
}

.schedule-tab.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.08);
}

.schedule-panel[hidden] {
  display: none;
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 0.2rem 0 1rem;
}

table.schedule td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

table.schedule td.time {
  width: 7.2rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  white-space: nowrap;
}

table.schedule tr.speaker-row td {
  background: #f6f6f4;
  border-bottom-color: #e2e2dd;
}

table.schedule tr.speaker-row td:first-child {
  box-shadow: inset 3px 0 0 rgba(92, 92, 86, 0.35);
  color: #5f5f58;
}

table.schedule tr:last-child td {
  border-bottom: none;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 0;
}

.speaker {
  display: block;
  min-width: 0;
}

.speaker img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  filter: grayscale(10%);
}

.speaker-photo {
  display: block;
  padding-bottom: 0;
  border-bottom: 0;
  text-decoration: none;
}

.speaker-photo:hover img {
  filter: grayscale(0%);
}

.speaker-details {
  margin-top: 0.55rem;
}

.speaker-details h3 {
  margin: 0 0 0.14rem;
  font-size: 0.98rem;
  line-height: 1.15;
}

.speaker-details h3 a {
  color: inherit;
  text-decoration: none;
}

.speaker-details h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.speaker-affil {
  margin: 0;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.3;
}

.organizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.organizer {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.organizer img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(15%);
  transition: filter 0.2s, transform 0.2s;
}

.organizer:hover img {
  filter: grayscale(0%);
  transform: translateY(-2px);
}

.organizer p {
  margin: 0.5rem 0 0;
  line-height: 1.3;
}

.org-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.org-affil {
  font-size: 0.88rem;
  color: var(--muted);
}

.org-tag {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 0.15rem !important;
}

@media (max-width: 600px) {
  .speaker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem 0.9rem;
  }
  .speaker {
    display: block;
  }
  .speaker-details h3 {
    font-size: 1rem;
  }
  .organizer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

.contact {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.sponsor-award {
  margin: 1.3rem 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sponsor-award-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 0.85rem;
}

.sponsor-logo-link {
  display: block;
  width: 100%;
  justify-self: end;
  border-bottom: 0;
  padding-bottom: 0;
}

.sponsor-logo-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.sponsor-logo-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sponsor-award p {
  margin: 0;
}

.sponsor-prize {
  font-size: 1rem;
}

.award-amount {
  display: inline-block;
  padding: 0.04rem 0.32rem 0.08rem;
  border-radius: 4px;
  background: rgba(138, 51, 36, 0.1);
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.sponsor-products {
  margin-top: 0.35rem !important;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.sponsor-label {
  margin-bottom: 0.15rem !important;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

footer p {
  margin: 0;
}

@media (max-width: 1360px) {
  .toc {
    display: none;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  main {
    padding: 0 1.2rem 2rem;
  }
  h1 {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1.2rem;
  }
  table.schedule td.time {
    width: 6rem;
    font-size: 0.82rem;
  }
  .topbar-inner {
    padding: 0.6rem 1.2rem;
  }
  .topbar-title {
    font-size: 0.95rem;
  }
  .topbar-subtitle {
    font-size: 0.72rem;
  }
  .topbar-logo img {
    height: 28px;
  }
  .award-banner {
    align-items: flex-start;
  }
  .award-banner-logo {
    width: min(118px, 38%);
  }
  .sponsor-award {
    padding: 0.9rem 0;
  }
  .sponsor-award-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .sponsor-logo-link {
    justify-self: start;
    width: min(220px, 72%);
  }
}
