@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600&display=swap");

/* ACCEPT AT VUW WEBSITE STYLES */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("fonts/CrimsonPro-ExtraLight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("fonts/CrimsonPro-ExtraLight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/CrimsonPro-Medium-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/CrimsonPro-Medium-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/CrimsonPro-Medium-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/CrimsonPro-Medium-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========== COLOUR PALETTE ========== */
/* light theme (catppuccin latte inspired) */
:root {
  /* greys */
  --header-dark: #4c4f69;
  --header-border: #dce0e8;
  --text-dark: #4c4f69;
  --text-body: #5c5f77;
  --text-light: #6c6f85;
  --bg-light: #eff1f5;
  --bg-white: #ffffff;

  /* accent colours */
  --accent-primary: #1e66f5;
  --accent-hover: #1a5ad7;
  --accent-presentations: #209fb5;
  --success: #40a02b;
  --warning: #fe640b;

  /* spacing */
  --content-max-width: 820px;

  /* radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* hacker texture */
  --grid-size: 26px;
  --grid-line: rgba(30, 102, 245, 0.08);
}

/* dark theme (catppuccin mocha inspired) */
body.quarto-dark {
  --header-dark: #11111b;
  --header-border: #313244;
  --text-dark: #cdd6f4;
  --text-body: #bac2de;
  --text-light: #a6adc8;
  --bg-light: #1e1e2e;
  --bg-white: #181825;

  --accent-primary: #89b4fa;
  --accent-hover: #74c7ec;
  --accent-presentations: #94e2d5;
  --success: #a6e3a1;
  --warning: #fab387;

  --grid-line: rgba(137, 180, 250, 0.08);
}

/* ========== GLOBAL STYLES ========== */
body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 20px;
  background-color: var(--bg-light);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;
  font-weight: 400;
}

p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* monospace fonts for code */
pre, code, kbd, samp {
  font-family: "JetBrains Mono", "SF Mono", "Cascadia Code", "Roboto Mono", "Consolas", "Courier New", monospace;
}

/* ========== HEADER/NAVBAR ========== */
.navbar {
  background-color: var(--header-dark) !important;
  border-bottom: 3px solid var(--header-border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.navbar-brand,
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  color: #f7fafc !important;
  font-family: "JetBrains Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
  color: #cbd5e0 !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* prominent presentations button */
.navbar-nav .dropdown-toggle:contains("PRESENTATIONS"),
.navbar-nav .dropdown-toggle[aria-label*="PRESENTATIONS"] {
  background-color: var(--accent-presentations) !important;
  color: white !important;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin: 0 8px;
  transition: all 0.2s ease;
}

.navbar-nav .dropdown-toggle:contains("PRESENTATIONS"):hover {
  background-color: #1a5ad7 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* ========== MAIN CONTENT ========== */
.content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-family: "JetBrains Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.home .quarto-title-block {
  display: none;
}

.hero {
  padding: 2.5rem 2rem;
  margin: 1.5rem 0 3rem;
  background: var(--bg-white);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(17, 17, 27, 0.08);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: "JetBrains Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--text-dark);
}

.hero-subtitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: "JetBrains Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.quarto-dark .hero {
  box-shadow: none;
}

.quarto-title .subtitle,
.quarto-title-block .subtitle,
.subtitle.lead {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: "JetBrains Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.375rem;
  color: var(--header-dark);
}

/* ========== LINKS ========== */
a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* ========== CODE BLOCKS ========== */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}

code:not(pre code) {
  background-color: #f1f3f5;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.875em;
  color: #1e66f5;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
}

th {
  background-color: var(--header-dark);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

tr:hover {
  background-color: #f7fafc;
}

/* ========== CALLOUT BOXES ========== */
.callout {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border-left: 4px solid;
}

.callout-note {
  background-color: #ebf8ff;
  border-left-color: var(--accent-primary);
}

.callout-tip {
  background-color: #f0fff4;
  border-left-color: var(--success);
}

.callout-warning {
  background-color: #fffaf0;
  border-left-color: var(--warning);
}

/* ========== CARDS/BOXES ========== */
.card {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
  outline: 1px dashed rgba(30, 102, 245, 0.25);
  outline-offset: 4px;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ========== PRESENTATION EMBED ========== */
.presentation-container {
  background: var(--bg-white);
  border: 1px solid var(--header-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.presentation-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--header-border);
}

.presentation-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.presentation-embed {
  position: relative;
  width: 100%;
  height: 600px;
  border: 1px solid var(--header-border);
  border-radius: 4px;
  overflow: hidden;
}

.presentation-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== VIDEO EMBEDS ========== */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 2.5rem;
  background-color: var(--bg-white);
  border: 1px solid var(--header-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-embed iframe,
.video-embed embed,
.video-embed object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== SIDEBAR TOC ========== */
.sidebar nav[role="doc-toc"] {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--header-border);
}

.sidebar nav[role="doc-toc"] > ul {
  font-size: 0.875rem;
}

.sidebar nav[role="doc-toc"] a {
  color: var(--text-body);
}

.sidebar nav[role="doc-toc"] a:hover,
.sidebar nav[role="doc-toc"] a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
  border: 1px solid rgba(30, 102, 245, 0.55);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========== PRESENTATION STYLES ========== */
.embed-notice {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 8px;
}

.presentation-link {
  margin-top: 1.5rem;
}

.presentation-link .btn {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

/* ========== LOGOS ========== */
.logos-section {
  margin-top: 3rem;
  text-align: center;
}

.logos-section img {
  max-height: 120px;
  width: auto;
  margin: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logos-section img:hover {
  opacity: 1;
}

/* ========== TEAM PHOTOS ========== */
.team-member {
  margin-bottom: 3rem;
}

.team-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: var(--accent-primary);
}

/* Placeholder styling */
.team-photo-placeholder {
  width: 150px;
  height: 150px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
  color: var(--text-light);
  font-size: 3rem;
  font-weight: 300;
}

/* ========== DARK MODE TWEAKS ========== */
body.quarto-dark pre {
  background-color: #181825;
  border-color: #313244;
}

body.quarto-dark code:not(pre code) {
  background-color: #313244;
  color: #89b4fa;
}

body.quarto-dark td {
  border-bottom-color: #313244;
}

body.quarto-dark tr:hover {
  background-color: #1e1e2e;
}

body.quarto-dark .callout-note {
  background-color: #313244;
}

body.quarto-dark .callout-tip {
  background-color: #45475a;
}

body.quarto-dark .callout-warning {
  background-color: #313244;
}

body.quarto-dark h1,
body.quarto-dark h2,
body.quarto-dark h3,
body.quarto-dark h4,
body.quarto-dark h5,
body.quarto-dark h6 {
  color: var(--text-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .content {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }
  
  .presentation-embed {
    height: 400px;
  }
  
  .team-photo,
  .team-photo-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .team-member .columns {
    flex-direction: column;
    text-align: center;
  }
  
  .team-member .column {
    width: 100% !important;
  }
}
