/* === Font faces === */

@font-face {
  font-family: 'Euclid Circular B';
  src: url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Regular-WebXL.woff2') format('woff2'),
       url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Regular-WebXL.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Medium-WebXL.woff2') format('woff2'),
       url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Medium-WebXL.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Semibold-WebXL.woff2') format('woff2'),
       url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Semibold-WebXL.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Bold-WebXL.woff2') format('woff2'),
       url('Licensed Fonts/Headline - Euclid Circular B/Euclid Circular B pack/web files/EuclidCircularB-Bold-WebXL.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('Licensed Fonts/Body - Tiempos Text/Tiempos Text - All - OTF/TiemposText-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('Licensed Fonts/Body - Tiempos Text/Tiempos Text - All - OTF/TiemposText-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('Licensed Fonts/Body - Tiempos Text/Tiempos Text - All - OTF/TiemposText-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Text';
  src: url('Licensed Fonts/Body - Tiempos Text/Tiempos Text - All - OTF/TiemposText-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === Color palette (from colors.txt) ===
   #129C7B  teal
   #04D78A  bright green
   #FFFFFF  white
   #00100D  near-black
*/

:root {
  --teal: #129C7B;
  --green: #04D78A;
  --white: #FFFFFF;
  --dark: #00100D;
}

/* === Base === */

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

body {
  font-family: 'Tiempos Text', Georgia, 'Times New Roman', serif;
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.6;
  padding: 3rem 2rem 5rem;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

h1, h2, p, br, nav {
  width: 100%;
}

nav {
  position: sticky;
  top: 0;
  background-color: var(--white);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 16, 13, 0.1);
  z-index: 10;
}

/* === Typography === */

h1 {
  font-family: 'Euclid Circular B', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Euclid Circular B', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--teal);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--teal);
  scroll-margin-top: 10rem;
}

p {
  font-size: 1.05rem;
  color: rgba(0, 16, 13, 0.75);
  margin-bottom: 0.75rem;
  max-width: 72ch;
}

/* === Navigation links === */

a {
  color: var(--teal);
  text-decoration: none;
  font-family: 'Euclid Circular B', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--dark);
  border-bottom-color: var(--teal);
}

a:active {
  color: var(--teal);
}

/* === Spectrogram images === */

img {
  display: block;
  width: calc(33.333% - 0.5rem);
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(0, 16, 13, 0.08);
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

img:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(18, 156, 123, 0.2);
}

img:active {
  transform: translateY(0);
  border-color: var(--green);
}

img.icon {
  display: inline;
  width: 1em;
  height: 1em;
  margin-left: 0.2em;
  border: none;
  border-radius: 0;
  vertical-align: text-bottom;
}

img.icon:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

/* === Audio elements (hidden by default but just in case) === */

audio {
  display: none;
}

/* === Spacing for the nav/tab row === */

br + a,
a + a {
  margin-left: 0.15rem;
}

/* === Scrollbar === */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--white);
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* === Selection highlight === */

::selection {
  background: var(--teal);
  color: var(--white);
}

/* === Smooth scroll for anchor nav === */

html {
  scroll-behavior: smooth;
}
