/* ===========================
   ANTJE LANG — PERSONAL SITE
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

/* Color tokens */
:root {
  --bg:     #f9f7f4;
  --ink:    #18181a;
  --accent: #f8522e;
  --ice:    #c2dcff;
  --mid:    #4a4a4e;
  --rule:   #e2e0dc;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 60px;
}

/* Music page: hero extends under the fixed header */
body.music-page {
  padding-top: 0;
}

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

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

/* ========================
   HEADER & NAV
   ======================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg);
  z-index: 100;
}

body.interior .site-header {
  border-bottom: 1px solid var(--rule);
}

body.music-page.interior .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  height: 100%;
  padding: 0 48px;
}

.site-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

/* Social icons pushed to right */
.header-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: auto;
}

.header-social a {
  display: flex;
  align-items: center;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.header-social a:hover {
  color: var(--accent);
}

.header-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========================
   LAYOUT
   ======================== */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 48px;
}

main {
  padding-bottom: 80px;
}

.page-content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================
   TYPOGRAPHY COMPONENTS
   ======================== */

/* Mono label: page titles, captions */
.label-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
}

/* Large serif italic: page intros */
.page-intro {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.15;
  color: var(--ink);
}

.page-intro p + p {
  margin-top: 20px;
}

/* Prose link: orange by default */
.prose-link {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.prose-link:hover {
  opacity: 0.75;
}

/* Content list */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
  margin-bottom: 12px;
}

.content-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.7;
}

.content-list a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.content-list a:hover {
  opacity: 0.75;
}

/* Mono link (CV etc.) */
.mono-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}

.mono-link:hover {
  color: var(--accent);
}

/* ========================
   HOME PAGE
   ======================== */

.home-hero {
  height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.hero-statement {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.15;
  color: var(--ink);
  max-width: 66%;
}

/* ========================
   WORK / WRITING PAGES
   ======================== */

.page-header {
  padding: 56px 0 0;
}

.content-section {
  padding: 48px 0;
}

/* Section sub-headers: Currently, Before That, etc. */
.content-section .section-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.content-section p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.content-section p + p {
  margin-top: 16px;
}

/* ========================
   MUSIC PAGE
   ======================== */

.music-hero {
  position: relative;
  height: 100vh;
  background-image: url("../images/Notes to a Doctor.jpg");
  background-size: cover;
  background-position: center top;
  background-color: #1c1c1c;
  display: flex;
  flex-direction: column;
}

.music-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.music-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 1;
  padding: 80px 48px 0;
  gap: 48px;
}

.music-hero-left {
  flex: 0 0 35%;
}

.music-hero-right {
  flex: 0 0 55%;
  margin-left: auto;
}

.music-album-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.15;
}

.music-listen-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.music-listen-links a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

.music-listen-links a:hover {
  text-decoration: underline;
}

.press-quote-hero {
  margin-bottom: 22px;
}

.press-quote-hero blockquote {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 6px;
}

.press-attribution-hero {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.music-hero-disclaimer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 48px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* Below-hero music content */
.music-below {
  padding: 64px 0 0;
}

.playlist-label {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  margin-bottom: 14px;
}

.playlist-years {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: baseline;
}

.playlist-years a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.playlist-years a:hover {
  color: var(--accent);
}

/* ========================
   WRITING PAGE
   ======================== */

.substack-block {
  background: rgba(194, 220, 255, 0.18);
  border: 1px solid var(--ice);
  padding: 32px;
  margin-top: 48px;
}

.substack-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  margin-bottom: 20px;
}

/* ========================
   CONTACT PAGE
   ======================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
  padding-top: 56px;
}

.contact-left img {
  width: 100%;
  height: auto;
}

.contact-intro-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 40px;
}

.contact-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
  border-bottom-color: #c0392b;
}

.form-group .error-message {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}

.form-group .error-message.visible {
  display: block;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--accent);
}

.form-success {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--mid);
  margin-top: 24px;
}

.form-success.visible {
  display: block;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 48px;
}

.site-footer p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--mid);
  text-align: center;
}

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

@media (max-width: 768px) {
  .header-inner {
    padding: 0 24px;
    gap: 0;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 22px;
  }

  .header-social {
    display: none;
  }

  .nav-toggle {
    display: block;
    z-index: 110;
  }

  .home-hero {
    padding: 0 24px;
  }

  .hero-statement {
    max-width: 90%;
  }

  .container {
    padding: 0 24px;
  }

  .music-hero-inner {
    flex-direction: column;
    padding: 80px 24px 0;
    justify-content: center;
    gap: 32px;
  }

  .music-hero-left,
  .music-hero-right {
    flex: none;
    width: 100%;
    margin-left: 0;
  }

  .music-hero-disclaimer {
    padding: 16px 24px 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .site-footer {
    padding: 24px;
  }
}

/* ========================
   UTILITIES
   ======================== */

.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;
}
