/* =============================================
   Anno Mitchell
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@900&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --grey:  #888888;
  --light: #e8e8e8;

  --display: 'Big Shoulders Display', 'Arial Black', sans-serif;
  --type:    'Courier Prime', 'Courier New', monospace;
  --body:    'Times New Roman', Times, serif;

  --gap: clamp(1rem, 3vw, 2rem);
  --col: 960px;
}

html {
  font-size: 16px;
  background: var(--white);
  color: var(--black);
}

body {
  font-family: var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* --- Layout --- */

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gap);
}

main {
  flex: 1;
}

/* =============================================
   HEADER
   ============================================= */

site-header {
  display: block;
  border-bottom: 1px solid var(--black);
  padding: 0.6rem 0;
  background: var(--white);
  position: relative;
  z-index: 10;
}

site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-name {
  font-family: var(--type);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav {
  font-family: var(--type);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  display: flex;
  gap: 1.8rem;
}

nav a {
  text-transform: lowercase;
  color: var(--grey);
}

nav a:hover,
nav a.active {
  color: var(--black);
  text-decoration: none;
}

nav a.active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   FOOTER
   ============================================= */

site-footer {
  display: block;
  border-top: 1px solid var(--black);
  padding: 1.2rem 0;
  margin-top: 4rem;
}

site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.footer-col {
  font-family: var(--type);
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* =============================================
   HOME PAGE — HERO
   ============================================= */

.home-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #222; /* fallback before image loads */
  overflow: hidden;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Remove this placeholder style once you add a real image */
  background: #1a1a1a;
}

/* Dark gradient so text is legible over the image */
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.72) 100%
  );
}

.home-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 3rem var(--gap) 2.5rem;
  max-width: var(--col);
  margin: 0 auto;
  width: 100%;
}

.home-hero-content h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.home-strapline {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 50ch;
  margin-top: 1.2rem;
  opacity: 0.9;
}

/* =============================================
   HOME PAGE — INDEX
   ============================================= */

.home-index {
  padding: 2rem 0;
  border-bottom: 1px solid var(--black);
}

.home-index-heading {
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}

.home-index-list {
  list-style: none;
}

.home-index-list li {
  border-top: 1px solid var(--light);
}

.home-index-list li:last-child {
  border-bottom: 1px solid var(--light);
}

.home-index-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 0.55rem 0;
  transition: padding-left 0.1s;
}

.home-index-list a:hover {
  text-decoration: none;
  padding-left: 0.4rem;
}

.index-num {
  font-family: var(--type);
  font-size: 0.68rem;
  color: var(--grey);
  min-width: 1.4rem;
  letter-spacing: 0.03em;
}

.index-title {
  font-family: var(--body);
  font-size: 1rem;
  flex: 1;
}

.index-type {
  font-family: var(--type);
  font-size: 0.68rem;
  color: var(--grey);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */

.page-header {
  padding: 2rem 0 1.2rem;
  border-bottom: 1px solid var(--black);
  margin-bottom: 2.5rem;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-family: var(--body);
  font-style: italic;
  font-size: 1rem;
  color: var(--grey);
  margin-top: 0.5rem;
}

/* =============================================
   PROSE
   ============================================= */

.prose {
  font-family: var(--body);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.7;
  max-width: 62ch;
}

.prose p + p {
  margin-top: 1.1em;
}

.prose strong { font-weight: bold; }
.prose em    { font-style: italic; }

/* =============================================
   PROJECT PAGE
   ============================================= */

.context-note {
  font-family: var(--type);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--grey);
  max-width: 62ch;
  margin-bottom: 3rem;
}

.project-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--light);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem 4rem;
  align-items: start;
}

.project-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.project-section-label {
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 0.2rem;
}

.media-placeholder {
  border: 1px solid var(--light);
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--type);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 1.5rem;
}

.audio-placeholder {
  border: 1px solid var(--light);
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--type);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 1rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-top: 1.5rem;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.audio-embed iframe {
  width: 100%;
  border: none;
  display: block;
  margin-top: 1rem;
}

/* =============================================
   WORK PAGE — CAROUSEL
   ============================================= */

/* Outer container: only one group visible at a time */
.work-carousel {
  position: relative;
}

/* Navigation bar: group counter + arrows */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--black);
  margin-bottom: 2.5rem;
}

.carousel-counter {
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--grey);
}

.carousel-arrows {
  display: flex;
  gap: 0;
}

.carousel-arrow {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  background: none;
  border: 1px solid var(--black);
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  color: var(--black);
  transition: background 0.1s, color 0.1s;
  line-height: 1;
}

.carousel-arrow:first-child {
  border-right: none;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--black);
  color: var(--white);
}

.carousel-arrow:disabled {
  color: var(--light);
  border-color: var(--light);
  cursor: default;
}

/* Each work group — hidden by default, shown when active */
.work-group {
  display: none;
}

.work-group.active {
  display: block;
}

/* Main image display */
.work-main-image {
  width: 100%;
  background: #f0f0f0;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.work-main-image img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s;
}

.work-main-image.placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--type);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Info row: meta + description */
.work-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem 4rem;
  margin-bottom: 1.5rem;
}

.work-meta {
  font-family: var(--type);
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.work-meta-label {
  text-transform: uppercase;
  color: var(--grey);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  display: block;
}

.work-meta-value {
  display: block;
  margin-bottom: 0.8rem;
}

.work-description {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 55ch;
}

/* Thumbnail strip */
.work-thumbs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.work-thumb {
  width: 90px;
  height: 70px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
}

.work-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.work-thumb:hover {
  opacity: 0.75;
}

.work-thumb.active {
  border-color: var(--black);
}

.work-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--type);
  font-size: 0.55rem;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Video group */
.work-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 1.5rem;
}

.work-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem 4rem;
}

.about-label {
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 0.3rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 640px) {
  .project-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  site-footer .wrap {
    grid-template-columns: 1fr;
  }

  .home-hero-content h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  nav { gap: 1rem; }
}

/* =============================================
   WORK PAGE — PREV / NEXT NAVIGATION
   ============================================= */

.work-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--black);
  margin-top: 3rem;
  padding-top: 1.2rem;
  font-family: var(--type);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.work-nav a {
  color: var(--grey);
}

.work-nav a:hover {
  color: var(--black);
  text-decoration: none;
}

.work-nav-index {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

/* Active thumbnail (currently shown in main image) */
.work-thumb.active {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

.work-thumb {
  cursor: pointer;
}

/* =============================================
   ARTICLE IMAGE (inline images within prose)
   ============================================= */

.article-image {
  margin: 2rem 0;
  width: 100%;
}

.article-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =============================================
   AUDIO PLAYER
   ============================================= */

.audio-player {
  margin: 2rem 0;
  font-family: var(--type);
}

.audio-player-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 0.5rem;
}

.audio-player audio {
  display: block;
  width: 100%;
  height: 32px;

  /* Remove default browser styling as much as possible */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border: 1px solid var(--black);
  background: var(--white);
  border-radius: 0;  /* kill rounded corners on Safari */
}

/* Chrome / Edge */
.audio-player audio::-webkit-media-controls-panel {
  background: var(--white);
  border-radius: 0;
}

.audio-player audio::-webkit-media-controls-play-button {
  filter: invert(0);
}
