/* University of Auckland Tokyo LP — white background, #333 text, blue accents */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-muted: #4d4d4d;
  --color-accent-blue: #1b6fb6;
  --color-accent-blue-dark: #145a93;
  --color-gold: #b8860b;
  --color-gold-dark: #9a6f09;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", YuGothic, Meiryo, sans-serif;
  --container: min(1120px, 100% - 2rem);
  --radius-card: 16px;
  --header-border: #e5e5e5;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.page-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent-blue);
  color: #fff;
  text-decoration: none;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  left: 0.75rem;
  outline: 3px solid #cce4f7;
  outline-offset: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  width: auto;
  max-height: 48px;
}

.btn-toggle-lang {
  appearance: none;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--color-text);
  background: #ffffff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-toggle-lang:hover {
  background: #f7f7f7;
}

.btn-toggle-lang:focus-visible {
  outline: 3px solid #cce4f7;
  outline-offset: 2px;
}

/* Hero */

.hero-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem 3rem;
  }
}

.hero-copy {
  max-width: 36rem;
}

.hero-sub {
  margin: 0;
  color: var(--color-text);
  font-weight: 600;
}

.hero-sub--official {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin-bottom: 0.75rem;
}

.hero-sub--band {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--color-text);
  display: inline-block;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-title-main {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  line-height: 1.35;
  font-weight: 800;
  color: var(--color-gold);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Gold readability on white */
@supports (-webkit-background-clip: text) {
  .hero-title-main {
    background: linear-gradient(105deg, var(--color-gold) 0%, var(--color-gold-dark) 55%, #c99312 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-end;
  }
}

.hero-photo-frame {
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  background: #e8eef3;
}

@media (min-width: 900px) {
  .hero-photo-frame {
    width: min(100%, 520px);
  }
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

@media (min-width: 900px) {
  .hero-photo-caption {
    text-align: right;
    padding-right: clamp(0rem, 4vw, 2rem);
  }
}

/* Features — blue circles, white icon & text */

.features-section {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: #ffffff;
}

.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.75rem;
}

.feature-card {
  flex: 0 1 200px;
  max-width: 240px;
  text-align: center;
  margin: 0;
}

.feature-circle {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  padding: 1rem 0.85rem 1.1rem;
  border-radius: 50%;
  background: var(--color-accent-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  box-shadow: 0 8px 24px rgba(27, 111, 182, 0.35);
  box-sizing: border-box;
}

.feature-icon {
  flex-shrink: 0;
  color: #ffffff;
  margin-top: 0.15rem;
}

.feature-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.feature-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #ffffff;
  flex: 1;
  display: block;
  overflow: hidden;
}

@media (min-width: 480px) {
  .feature-circle {
    width: 212px;
    height: 212px;
    padding: 1.1rem 1rem 1.2rem;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-text {
    font-size: 0.82rem;
  }
}

/* Speaker — blue card, bottom right */

.speaker-section {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
  background: #ffffff;
}

.speaker-layout {
  position: relative;
  min-height: clamp(140px, 22vw, 220px);
}

.speaker-card {
  position: relative;
  margin-top: 0;
  margin-left: auto;
  max-width: min(100%, 420px);
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius-card);
  background: var(--color-accent-blue);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(27, 111, 182, 0.35);
}

@media (min-width: 720px) {
  .speaker-card {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-left: 0;
  }
}

.speaker-badge {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}

.speaker-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #ffffff;
}

/* Footer */

.site-footer {
  padding: 1.25rem 0 2rem;
  background: #ffffff;
  border-top: 1px solid var(--header-border);
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}
