@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #222222;
  --border: #CCCCCC;
  --menu-background: #ffffff;
  --muted-text: #666666;
  --accent: #c97700;
  --divider: #d8d8d8;
  --tag-background: #efefef;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #181818;
  --text: #f5f5f5;
  --border: #444444;
  --menu-background: #181818;
  --muted-text: #b5b5b5;
  --accent: #f28c28;
  --divider: #444444;
  --tag-background: #303030;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Afacad Flux', Arial, sans-serif;
  transition: background-color 300ms ease, color 300ms ease;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  font-family: 'Afacad Flux', sans-serif;
  transition: border-color 300ms ease, background-color 300ms ease;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.theme-toggle,
.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: opacity 180ms ease, color 300ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  opacity: 0.7;
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.theme-icon,
.menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  transition: filter 300ms ease;
}

:root[data-theme="dark"] .theme-icon,
:root[data-theme="dark"] .menu-icon {
  filter: invert(1);
}

.theme-icon-dark,
:root[data-theme="dark"] .theme-icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
  display: block;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: 120px;
  height: auto;
}

.logo-for-dark,
:root[data-theme="dark"] .logo-for-light {
  display: none !important;
}

:root[data-theme="dark"] .logo-for-dark {
  display: block !important;
}

.main-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 32px;
  transform: translateX(-50%);
}

.main-nav a {
  color: var(--text);
  font-size: 17px;
  text-decoration: none;
  transition: color 300ms ease, opacity 180ms ease;
}

.main-nav a:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(680px, calc(100svh - 73px));
  padding: 96px 24px;
  text-align: center;
}

.hero::after,
.about-section::after,
.projects-section::after,
.team-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--divider);
  content: '';
}

.hero-content {
  width: min(100%, 900px);
}

.hero h1 {
  margin: 0 auto;
  font-family: 'Afacad Flux', monospace;
  font-size: clamp(2.4rem, 6.2vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1.12;
}

.hero p {
  max-width: 690px;
  margin: 24px auto 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #111111;
  border-radius: 0;
  font-family: 'Afacad Flux', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero-button-primary {
  background: #111111;
  color: #ffffff;
}

.hero-button-secondary {
  background: transparent;
  color: var(--text);
}

.hero-button:hover,
.hero-button:focus-visible {
  border-color: #f28c28;
  background: #f28c28;
  color: #111111;
}

.hero-button:focus-visible {
  outline: 2px solid #f28c28;
  outline-offset: 3px;
}

.about-section {
  position: relative;
  padding: 56px 24px 72px;
  scroll-margin-top: 24px;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--muted-text);
  font-family: 'Afacad Flux', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-eyebrow span {
  color: var(--accent);
  font-size: 11px;
}

.about-section h2 {
  margin: 0;
  font-family: 'Afacad Flux', sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.about-intro {
  max-width: 520px;
  margin: 36px 0 38px;
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1.55;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-card {
  min-height: 172px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  background: var(--background);
}

.about-card-mark {
  display: block;
  margin: 0 0 12px;
  color: var(--accent);
  font-family: 'Afacad Flux', Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.about-card h3 {
  margin: 0 0 8px;
  font-family: 'Afacad Flux', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.about-card p {
  margin: 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.55;
}

.projects-section {
  position: relative;
  padding: 56px 24px 72px;
  scroll-margin-top: 24px;
}

.projects-content {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-section h2 {
  margin: 0;
  font-family: 'Afacad Flux', sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.project-card {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--background);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  border-color: #111111;
  box-shadow: inset 0 0 0 1px #111111;
}

.project-status {
  display: inline-block;
  padding: 3px 7px;
  background: var(--accent);
  color: #111111;
  font-size: 12px;
  line-height: 1.25;
}

.project-status.is-planned {
  background: var(--tag-background);
  color: var(--muted-text);
}

.project-card h3 {
  margin: 16px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.project-card > p {
  margin: 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.45;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 14px;
  padding: 20px 0 0;
  list-style: none;
}

.project-technologies li {
  padding: 2px 7px;
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.3;
}

.project-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.project-github:hover,
.project-github:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-github > span:last-child {
  display: inline-block;
  font-size: 16px;
  transition: transform 180ms ease;
}

.project-github:hover > span:last-child,
.project-github:focus-visible > span:last-child {
  transform: translateX(4px);
}

.project-github:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.projects-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted-text);
}

.talks-section {
  padding: 56px 24px 72px;
  scroll-margin-top: 24px;
}

.talks-content {
  max-width: 1200px;
  margin: 0 auto;
}

.talks-section h2 {
  margin: 0;
  font-family: 'Afacad Flux', sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.event-groups {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.event-group h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.event-list {
  position: relative;
  display: grid;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list::before {
  position: absolute;
  top: 7px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--divider);
  content: '';
}

.event-item {
  position: relative;
  min-width: 0;
  padding-left: 20px;
}

.event-item::before {
  position: absolute;
  top: -2px;
  left: -5px;
  color: var(--accent);
  content: 'Λ';
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.event-date {
  margin: 0 0 4px;
  color: var(--muted-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.event-item h4 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.event-detail,
.event-resource {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

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

.event-resource {
  display: inline-block;
  width: fit-content;
  margin-top: 1px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.event-resource:hover,
.event-resource:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-resource:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.event-empty {
  position: relative;
  padding: 0 0 0 20px;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.event-empty::before {
  position: absolute;
  top: 0;
  left: -5px;
  color: var(--accent);
  content: 'Λ';
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.team-section {
  position: relative;
  padding: 56px 24px 72px;
  scroll-margin-top: 24px;
}

@media (max-width: 767px) {
  .talks-section {
    padding: 48px 20px 56px;
  }

  .event-groups {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 28px;
  }

  .event-group h3 {
    margin-bottom: 16px;
  }
}

.team-content {
  max-width: 1200px;
  margin: 0 auto;
}

.team-section h2 {
  margin: 0;
  font-family: 'Afacad Flux', sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.team-intro {
  margin: 8px 0 24px;
  color: var(--muted-text);
  font-size: 12px;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  min-width: 0;
}

.team-portrait {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: #efefef;
}

.team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait-placeholder {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 8px;
  border: 2px solid #666666;
  border-radius: 50% 50% 42% 42%;
}

.team-portrait-placeholder::before {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #666666;
  border-radius: 50%;
  content: '';
  transform: translateX(-50%);
}

.team-card h3 {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.team-role {
  margin: 2px 0 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.4;
}

.team-github {
  display: inline-block;
  margin-top: 4px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.team-github:hover,
.team-github:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-github:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.join-section {
  padding: 56px 24px 64px;
  scroll-margin-top: 88px;
}

.join-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  align-items: start;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.join-copy h2 {
  margin: 0;
  font-family: 'Afacad Flux', sans-serif;
  font-size: clamp(2.4rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.join-intro {
  max-width: 440px;
  margin: 34px 0 26px;
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.45;
}

.join-areas {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.join-areas li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.join-areas li::before {
  color: var(--accent);
  content: 'Λ';
  font-size: 12px;
  font-weight: 700;
}

.join-github {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 0 14px;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.join-github:hover,
.join-github:focus-visible {
  background: var(--text);
  color: var(--background);
}

.join-github:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.join-github svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.join-form {
  display: grid;
  gap: 7px;
  padding: 25px;
  border: 1px solid var(--border);
}

.join-form label {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.2;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.join-form textarea {
  min-height: 82px;
  resize: vertical;
}

.join-form input:focus-visible,
.join-form select:focus-visible,
.join-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.join-form button {
  min-height: 36px;
  margin-top: 8px;
  border: 0;
  background: #080808;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.join-form button:hover,
.join-form button:focus-visible {
  background: var(--accent);
  color: #111111;
}

.join-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--divider);
  border-radius: 0 0 12px 12px;
  background: var(--background);
  color: var(--text);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 275px);
  gap: 64px;
  max-width: 1200px;
  min-height: 178px;
  margin: 0 auto;
  padding: 40px 24px 36px;
}

.footer-brand-area {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  display: block;
  width: 88px;
  height: auto;
}

.footer-tagline,
.footer-info p {
  margin: 6px 0 0;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.35;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 4px;
  color: var(--text);
}

.footer-socials a {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--accent);
}

.footer-socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-socials svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.footer-socials a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-info p:first-child {
  margin-top: 3px;
}

.footer-info .footer-conduct {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .join-section {
    padding: 48px 20px 56px;
  }

  .join-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .join-intro {
    margin: 22px 0 24px;
  }

  .join-form {
    padding: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 32px 20px;
  }

  .footer-brand-area {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-info {
    max-width: 360px;
  }
}

:root[data-theme="dark"] .team-portrait {
  background: #303030;
}

:root[data-theme="dark"] .team-portrait-placeholder,
:root[data-theme="dark"] .team-portrait-placeholder::before {
  border-color: #b5b5b5;
}

:root[data-theme="dark"] .project-card:hover,
:root[data-theme="dark"] .project-card:focus-within {
  border-color: #f5f5f5;
  box-shadow: inset 0 0 0 1px #f5f5f5;
}

:root[data-theme="dark"] .about-card {
  background: var(--background);
}

:root[data-theme="dark"] .hero-button-primary {
  border-color: #f5f5f5;
  background: #f5f5f5;
  color: #181818;
}

:root[data-theme="dark"] .hero-button-secondary {
  border-color: #f5f5f5;
}

:root[data-theme="dark"] .hero-button:hover,
:root[data-theme="dark"] .hero-button:focus-visible {
  border-color: #f28c28;
  background: #f28c28;
  color: #111111;
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .logo {
    margin-right: auto;
  }

  .hero {
    min-height: calc(100svh - 65px);
    padding: 72px 20px;
  }

  .hero h1 {
    letter-spacing: -0.065em;
  }

  .hero-actions {
    gap: 10px;
  }

  .about-section,
  .projects-section,
  .team-section {
    padding: 48px 20px 56px;
  }

  .about-intro {
    margin: 24px 0 36px;
  }

  .about-cards,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .project-grid {
    margin-top: 28px;
  }

  .about-card {
    min-height: 0;
    padding: 24px 26px;
  }

  .logo img {
    width: 104px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    border-bottom: 1px solid transparent;
    background: var(--menu-background);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: max-height 300ms ease, opacity 300ms ease, transform 300ms ease, padding 300ms ease, border-color 300ms ease, background-color 300ms ease, visibility 0s linear 300ms;
  }

  .main-nav.is-open {
    max-height: 260px;
    padding: 8px 16px;
    border-bottom-color: var(--border);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .main-nav a {
    padding: 12px 8px;
  }
}

.menu-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: opacity 150ms ease, transform 150ms ease;
}

.menu-icon-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.menu-icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
