/* ============================================================
   allyhwang.com — Portfolio Styles
   Fonts: Clash Display (Fontshare) + Space Grotesk (Google)
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Accessibility Utilities ─────────────────────────────── */

/* Skip-to-content link — hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--black);
  color: var(--yellow);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* Visually hidden but available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus Indicators (WCAG 2.4.11) ─────────────────────── */

/* Default focus ring — black on light backgrounds */
:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Yellow ring on dark-background sections */
.credentials :focus-visible,
.leadership :focus-visible,
.interests :focus-visible {
  outline-color: var(--yellow);
}

/* ── Container (max-width centering) ─────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

:root {
  --yellow: #ffce3e;
  --black: #000000;
  --white: #ffffff;
  --gray: #7c7c7c;
  --red: #db2c00;

  --font-heading: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', Arial, sans-serif;

  --pad-x: 40px;
  --pad-y: 90px;
  --gap: 40px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
}

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

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

/* ── Typography ──────────────────────────────────────────── */
.h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 7.5rem;
  line-height: 6.875rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: relative;
  background: var(--yellow);
  height: 112px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: var(--black);
}

.nav__name {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
}

.nav__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--black);
  transition: opacity 0.15s;
}

.nav__icon:hover {
  opacity: 0.6;
}

.nav__icon svg {
  fill: var(--black);
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 16px 24px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav__btn:hover {
  opacity: 0.85;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--yellow);
  padding: var(--pad-x) 0;
}

.hero > .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__name {
  max-width: 960px;
}

.hero__name-last {
  white-space: nowrap;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--black);
}

.hero__bio {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.5;
}

.hero__socials {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__socials a {
  font-size: 1.125rem;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.hero__socials a:hover {
  opacity: 0.75;
}

/* ── About Me ────────────────────────────────────────────── */
.about {
  background: var(--yellow);
  padding: var(--pad-y) 0;
}

.about > .container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.about__bio {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  max-width: 960px;
}

.about__photo {
  width: 252px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

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

.about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.5;
}

.about__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about__text a:hover {
  opacity: 0.7;
}

/* ── Credentials ─────────────────────────────────────────── */
.credentials {
  background: var(--black);
  padding: var(--pad-y) 0;
}

.credentials > .container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.credentials__heading {
  color: var(--yellow);
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}

.cred-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cred-col__title {
  color: var(--yellow);
}

.cred-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cred-entry {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--white);
}

.cred-entry__role {
  display: block;
  color: var(--white);
}

.cred-entry__org {
  display: block;
  color: var(--gray);
}

/* Middle column stacks sub-sections */
.cred-col--mid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Leadership ──────────────────────────────────────────── */
.leadership {
  position: relative;
  overflow: hidden;
  padding: var(--pad-y) 0;
}

.leadership__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.leadership__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leadership__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.leadership__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.leadership__heading {
  color: var(--yellow);
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.testimonials-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0011ff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.testimonials-btn:hover {
  opacity: 0.85;
}

.testimonials-btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.testimonials-btn svg {
  width: 24px;
  height: 24px;
}

.testimonials {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  /* hide scrollbar visually but keep functional */
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) transparent;
}

.testimonials::-webkit-scrollbar {
  height: 4px;
}

.testimonials::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 2px;
}

.testimonial-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--yellow);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
  color: var(--black);
  text-align: center;
}

.testimonial-card__label {
  color: var(--black);
}

.testimonial-card__quote {
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
}

/* ── Interests ───────────────────────────────────────────── */
.interests {
  background: var(--black);
  padding: var(--pad-y) 0;
}

.interests > .container {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.interests__heading {
  color: var(--yellow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}

/* Each grid item wraps img for aspect-ratio control */
.gallery__item {
  overflow: hidden;
  border-radius: 4px;
}

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

/* Specific grid placements & aspect ratios */
.gallery__item--chicago-walk {
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 750 / 937;
}

.gallery__item--watbd {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}

.gallery__item--atl {
  grid-column: 3;
  grid-row: 1;
  aspect-ratio: 428 / 583;
}

.gallery__item--chicago-beaches {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 750 / 1126;
}

.gallery__item--inktober-dream {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 559 / 869;
}

.gallery__item--yellow-peril {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: 750 / 994;
}

.gallery__item--spider-wide {
  grid-column: 1 / 3;
  grid-row: 3;
  aspect-ratio: 893 / 592;
}

.gallery__item--img6388 {
  grid-column: 3;
  grid-row: 3;
  aspect-ratio: 2486 / 3311;
}

.gallery__item--spider-2 {
  grid-column: 1;
  grid-row: 4;
  aspect-ratio: 550 / 876;
}

.gallery__item--dsc {
  grid-column: 2 / 4;
  grid-row: 4;
  aspect-ratio: 893 / 680;
}

/* ── Socials Footer ──────────────────────────────────────── */
.socials {
  background: var(--yellow);
  padding: 200px 0;
  text-align: center;
}

.socials__links {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.socials__links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--black);
  transition: opacity 0.15s;
}

.socials__links a:hover {
  opacity: 0.6;
}

/* ── Responsive (basic) ──────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --pad-x: 24px;
    --pad-y: 60px;
  }

  .h1 { font-size: 4.5rem; line-height: 4.5rem; }
  .h2 { font-size: 2.5rem; }
  .h3 { font-size: 1.75rem; }

  .hero__subtitle { font-size: 1.375rem; }

  .credentials__grid {
    grid-template-columns: 1fr;
  }


  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--spider-wide { grid-column: 1 / 3; }
  .gallery__item--dsc { grid-column: 1 / 3; }

  .socials__links { gap: 24px; }
  .socials__links a { font-size: 1.75rem; }
}

@media (max-width: 600px) {
  .h1 { font-size: 3.25rem; line-height: 3.5rem; }
  .nav__name { font-size: 1.5rem; }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--spider-wide { grid-column: 1; }
  .gallery__item--dsc { grid-column: 1; }
  .gallery__item--img6388 { grid-column: 1; }

  .about__bio { flex-direction: column; }
  .about__photo { width: 100%; }

  .hero__br { display: none; }
  .nav__name-ally { display: none; }
  .testimonial-card { width: calc(100vw - 48px); }

  .socials { padding: 80px 0; }
  .socials__links { flex-direction: column; align-items: center; }
}

/* ── Large screen type scale ─────────────────────────────── */
@media (min-width: 1400px) {
  .h1 { font-size: 12.5rem; line-height: 11.25rem; }
}
