@import url("https://fonts.bunny.net/css2?family=Fredoka+One&display=swap");
@import url("https://fonts.bunny.net/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --page-width: 996px;
  --bg-color: #ffffff;
  --text-color: #000000;
  --muted-color: rgba(0, 0, 0, 0.7);
  --heading-color: #18181b;
  --card-bg: #ffffff;
  --border-color: rgba(0, 0, 0, 0.15);
  --button-bg: #000000;
  --button-text: #ffffff;
  --section-muted: #e4e4e7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.contact-page,
.about-page,
.talks-page,
.talk-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-page main,
.about-page main,
.talks-page main,
.talk-page main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--page-width));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 10px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 500;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.8em;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.is-active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle img {
  width: 28px;
  height: 28px;
}

.hero {
  padding: 38px 0 10px;
  text-align: center;
}

h1,
h2 {
  font-family: "Fredoka One", sans-serif;
  color: var(--heading-color);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
}

.about-page h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
}

.section {
  padding: 52px 0;
}

.section-light {
  background-color: transparent;
}

.section-muted {
  background-color: var(--section-muted);
}

.intro {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.intro-portrait {
  width: 364px;
  border-radius: 6px;
}

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

.callout {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  font-weight: 500;
}

.callout-emoji {
  font-size: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 13px 21px;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
}


.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px;
  align-items: center;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.banner img {
  border-radius: 8px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 280px);
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 24px 0 18px;
  justify-content: center;
}

.works {
  text-align: center;
}

.works .grid {
  text-align: left;
}

.works .btn {
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  justify-items: stretch;
  height: 100%;
}

.card img {
  border-radius: 16px;
  aspect-ratio: 7 / 8;
  object-fit: cover;
  width: 100%;
  display: block;
}

.card span {
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
}

.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 26px 0;
}

.footer-bar {
  display: flex;
  justify-content: center;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 500;
  justify-content: center;
  text-align: center;
}

.page-header {
  padding: 28px 0 10px;
}

.page-brand {
  display: flex;
  align-items: center;
}

.page-intro {
  padding: 40px 0 10px;
}

.page-intro hr {
  margin-top: 22px;
}

.page-content {
  padding: 24px 0 80px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.about-portrait img {
  width: min(100%, 360px);
  margin: 0 auto;
}

.about-copy {
  font-size: 1.05rem;
  line-height: 1.8;
  display: grid;
  gap: 18px;
}

.contact-page h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.contact-portrait img {
  width: min(100%, 360px);
  margin: 0 auto;
}

.contact-copy {
  font-size: 1.05rem;
  line-height: 1.8;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.talks-page h1,
.talk-page h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
}

.talks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 280px);
  grid-auto-rows: 1fr;
  gap: 28px;
  justify-content: center;
}

.talk-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.12);
  height: 100%;
}

.talk-card span {
  font-weight: 700;
  font-size: 1.05rem;
}

.talk-image {
  border-radius: 18px;
  overflow: hidden;
  background: #e4e4e7;
}

.talk-image img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.talk-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.talk-figure img {
  width: min(100%, 380px);
  border-radius: 18px;
  background: #e4e4e7;
}

.talk-body {
  font-size: 1.05rem;
  line-height: 1.8;
  display: grid;
  gap: 18px;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    display: none;
    padding-top: 10px;
    align-items: flex-end;
    text-align: right;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-portrait {
    width: min(100%, 320px);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .talk-detail {
    grid-template-columns: 1fr;
  }

  body {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .grid,
  .talks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
}
