@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Mono:ital,wght@0,200..800;1,200..800&display=swap');

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* END RESET */

/* BEGIN CUSTOM STYLING  */

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

:root {
  --bg:             #eceae5;
  --bg2:            #e3e1da;
  --text-primary:   #1a1a18;
  --text-secondary: #5a5a56;
  --text-tertiary:  #696963;
  --border:         rgba(0,0,0,0.1);
  --border-mid:     rgba(0,0,0,0.18);
  --accent:         #1a1a18;
  --font:           'Atkinson Hyperlegible Mono', 'Courier New', Courier, monospace;
}

/* Dark theme */
[data-theme="dark"] {
  --bg:             #141412;
  --bg2:            #1e1e1b;
  --text-primary:   #e8e8e2;
  --text-secondary: #9a9a94;
  --text-tertiary:  #828279;
  --border:         rgba(255,255,255,0.08);
  --border-mid:     rgba(255,255,255,0.15);
  --accent:         #e8e8e2;
}

/* Party theme */
[data-theme="party"] body {
  animation: party-bg 2s linear infinite;
}

@keyframes party-bg {
  0%   { background: #ff6b6b11; }
  16%  { background: #ff922b11; }
  33%  { background: #ffd43b11; }
  50%  { background: #69db7c11; }
  66%  { background: #4dabf711; }
  83%  { background: #da77f211; }
  100% { background: #ff6b6b11; }
}

[data-theme="party"] .nav-item.active .ext {
  animation: rainbow 2s linear infinite;
}

[data-theme="party"] .nav-item.active {
  border-left-color: transparent;
}

@keyframes rainbow {
  0%   { color: #ff6b6b; }
  16%  { color: #ff922b; }
  33%  { color: #ffd43b; }
  50%  { color: #69db7c; }
  66%  { color: #4dabf7; }
  83%  { color: #da77f2; }
  100% { color: #ff6b6b; }
}

[data-theme="party"] .btn {
  background: var(--bg);
  animation: none;
}

[data-theme="party"] .btn:hover {
  background: var(--bg2);
}

body {
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  transition: background 0.3s, color 0.3s;
  display: flex;
  min-height: 100vh;
}

/* Screen reader only */
.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;
}

/* Site header */
.site-header, .site-header:visited {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
}

.site-header:hover {
  text-decoration: underline;
}

.site-header:active {
  opacity: 0.7;
  text-decoration: underline;

}

.site-header:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
  border-radius: 2px;
}


/* Sidebar */
.sidebar {
  width: 220px;
  min-width: 220px;
  border-right: 0.5px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: var(--bg);
  transition: background 0.3s, border-color 0.3s;
  z-index: 10;
}

/* Mode switcher */
.switcher {
  display: flex;
  gap: 3px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 28px;
  transition: background 0.3s, border-color 0.3s;
}

.mode-btn {
  flex: 1;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 7px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: background 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.mode-btn:hover {
  background: var(--bg);
  color: var(--text-secondary);
}

.mode-btn:active {
  opacity: 0.7;
}

.mode-btn:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
  border-radius: 5px;
}

.mode-btn.active {
  background: var(--bg);
  box-shadow: 0 0 0 0.5px var(--border-mid);
  color: var(--text-primary);
}

.mode-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* Nav items */
.nav-item {
  display: flex;
  align-items: baseline;
  background: none;
  border: none;
  border-radius: 0;
  border-left: 1.5px solid transparent;
  padding: 7px 0 7px 12px;
  cursor: pointer;
  width: 100%;
  font-size: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
  text-align: left;
  text-decoration: none;
}

.nav-item:link,
.nav-item:visited {
  color: inherit;
}

.nav-item:hover {
  text-decoration: underline;
}

.nav-item:active {
  opacity: 0.7;
}

.nav-item:hover .ext  { color: var(--text-primary); }
.nav-item:hover .desc { color: var(--text-secondary); }

.nav-item.active {
  border-left-color: var(--accent);
}

.nav-item.active .ext  { color: var(--text-primary); }
.nav-item.active .desc { color: var(--text-secondary); }

.nav-item:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
  border-radius: 2px;
}

.ext {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 52px;
  transition: color 0.15s;
}

.sep {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0 8px;
}

.desc {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color 0.15s;
}

.nav-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 12px 0 12px 12px;
}

/* Social links */
.social {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 0 4px 12px;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  width: 100%;
}

.social:link,
.social:visited {
  color: var(--text-tertiary);
}

.social:hover { color: var(--text-secondary); }

.social:active {
  color: var(--text-primary);
  opacity: 0.7;
}

.social:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Copyright notice */
.live-copy {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: auto;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* Bottom clock */
.sidebar-bottom {
  padding-top: 18px;
  border-top: 0.5px solid var(--border);
}

.live-time {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.live-loc {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Content area */
main {
  margin-left: 220px;
  flex: 1;
  padding: 48px 56px;
  min-height: 100vh;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.5em;
  margin-bottom: 32px;
  line-height: 1.2;
}

h2 {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 24px;
}


/* Home page image */
.safari-card-image {
  display: flex;
  flex-direction: column;
  width: fit-content;
  margin-top: 24px;

}

.safari-image-wrapper {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.safari-image-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* "BACKGROUND" PAGE STYLING */

/* Sections */
.about-section {
  margin-bottom: 48px;
}

.about-section h2 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}

.about-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 24px;
}

/* Degree list */
.degree-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.degree-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.degree-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.degree-school {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Background page scrollable lists */
.safari-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.safari-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.safari-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg2);
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}

.safari-dots {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.safari-title {
  font-size: 11px;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
}

.safari-list {
  list-style: none;
  overflow-y: auto;
  max-height: 280px;
  padding: 8px 0;
  flex: 1;
}

.safari-list::-webkit-scrollbar {
  width: 4px;
}

.safari-list::-webkit-scrollbar-track {
  background: transparent;
}

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

.safari-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border);
}

.safari-list li:last-child {
  border-bottom: none;
}

/* Background page - social copy list */

.safari-list li > span:first-child {
  display: flex;
  align-items: flex-start;
  padding-top: 3px;
  flex-shrink: 0;
}

.safari-detail p, .safari-detail a {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 0;
}

.safari-detail a:link,
.safari-detail a:visited {
  color: var(--text-secondary);
}

.safari-detail a:hover {
  color: var(--text-primary);
}

.safari-detail a:active {
  color: var(--text-primary);
  opacity: 0.7;
}

.safari-detail a:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
  border-radius: 2px;
}

.safari-detail p {
  font-style: italic;
}

/* Background page - placements list */
.pub-logo {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  overflow: hidden;
}

svg.pub-logo {
  background: none;
  border: none;
  border-radius: 0;
}

.safari-headline {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.safari-headline:link,
.safari-headline:visited {
  color: var(--text-secondary);
}

.safari-headline:hover {
  color: var(--text-primary);
}

.safari-headline:active {
  color: var(--text-primary);
  opacity: 0.7;
}

.safari-headline:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Background page video */
.safari-card-video {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
}

.safari-video-wrapper {
  position: relative;
  width: 560px;
  aspect-ratio: 16 / 9;
}

.safari-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}


/* Video call hover overlay */
.safari-image-wrapper {
  position: relative;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.safari-image-wrapper:hover .video-overlay {
  opacity: 1;
}

figcaption {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 32px;
  max-width: 400px;
}

p:not(.safari-detail p):not(.about-section p) {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 12px;
}

p:not(.safari-detail p):not(.about-section p):last-of-type {
  margin-bottom: 28px;
}

button, .btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-secondary);
  background: none;
  border: 0.5px solid var(--border-mid);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  margin-right: 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

button:link,
button:visited,
.btn:link,
.btn:visited {
  color: var(--text-secondary);
}

button:hover, .btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--bg2);
}

button:active, .btn:active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--bg2);
  opacity: 0.7;
}

button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
}

/* Nav buttons */
.nav-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding-left: 10px;
}

/* FILES PAGE STYLING */
/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 0;
}

.project-link {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
}

.project-link:link,
.project-link:visited { color: var(--text-tertiary); }
.project-link:hover { color: var(--text-primary); }
.project-link:active { color: var(--text-primary); opacity: 0.7; }
.project-link:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
  border-radius: 2px;
}

/* SOUNDS PAGE STYLING */

/* MP3 card grid */
.mp3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@media (min-width: 1000px) {
  .mp3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
  .mp3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mp3-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.mp3-card iframe {
  display: block;
  width: 100%;
  min-width: 0;
  border: none;
}

.mp3-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}

.mp3-badge {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

/* Responsive styling */

@media (min-width: 900px) {
  .safari-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 11;
  background: var(--bg);
  border: 0.5px solid var(--border-mid);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s, color 0.15s;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 12px;
}

.menu-toggle:hover {
  background: var(--bg2);
}

.menu-toggle:active {
  opacity: 0.7;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--border-mid);
  outline-offset: 2px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  body.nav-open .menu-toggle {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease, background 0.3s, border-color 0.3s;
    z-index: 11;
  }

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

  body.nav-open .nav-overlay {
    display: block;
  }

  main {
    margin-left: 0;
    padding: 64px 24px 48px;
  }

  .safari-card-image,
  .safari-card-video {
    width: 100%;
  }

  .safari-video-wrapper {
    width: 100%;
  }

  .mp3-card iframe {
    min-width: 0;
  }

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

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




