@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* FONTS */
/*********/

@font-face {
	font-family: junicode;
	src: url('Junicode.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: junicode;
	src: url('Junicode-Italic.woff') format('woff');
	font-weight: normal;
	font-style: italic;
}






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

:root {
  --black: #111;
  --white: #fff;
  --border: #c8c8c4;
  --accent-cyan: #5fcfcf;
  --accent-pink: #f03c78;
  --accent-yellow: #f5e430;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-body: junicode;
  --sidebar-w: 320px;
  --header-h: 240px;
  --nav-h: 36px;
}

body {
  font-family: var(--font-body);
  background: white;
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
}

.site-wrapper {
  max-width: 1350px;
  margin: 0 auto;
  background: var(--white);
}

/* ── HEADER ── */
header {
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1.5px solid var(--black);
  display: flex;
  align-items: top;
  padding: 0;
  height: var(--header-h);
  gap: 60px;
  margin: 0 45px 0 45px;

}

.logo {
  font-family: var(--font-mono);
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-tagline {
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 300;
  color: #000000;
  letter-spacing: 0.01em;
  padding-top: 78px;

}

.logocontent {
  padding-top: 20px;
  padding-left: 5px;
  margin: 0;
}

/* ── NAV BAR ── */
.navbar {
  top: var(--header-h);
  z-index: 99;
  background: var(--white);
  display: flex;
  align-items: stretch;
  height: var(--nav-h);
  margin: 0 28px 0 28px;
}

.navbar a {
  font-family: var(--font-mono);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0 16px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: grey;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.navbar a:hover,
.navbar a.active { color: var(--black); }

/* ── BODY LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  min-height: calc(100vh - var(--header-h) - var(--nav-h));
}

main {
  padding: 32px 36px;
  border-right: 1px solid var(--black);
  margin-right: 4px;
}

aside {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── SECTION TITLES — line above the text ── */
.section-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding-top: 4px;
  border-top: 3px solid var(--black);
  margin-top: 80px;
}

.sub-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-top: 5px;
  margin-bottom: 14px;
  border-top: 3px solid var(--black);
}

/* ── ISSUE COVER CARDS ── */
.issue-cover {
  width: 300px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  flex-shrink: 0;
}
.issue-cover.cyan   { background: white; }
.issue-cover.pink   { background: white;; }
.issue-cover.yellow { background: white;; }

.cover-logo {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--black);
}
.cover-words {
  font-family: var(--font-sans);
  font-size: 6.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: var(--black);
  margin-top: 3px;
}
.cover-issue-num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--black);
}
.cover-desc {
  font-size: 5.5px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--black);
  margin-top: 2px;
}

/* ── ARTICLE LIST ── */
.article-list { display: flex; flex-direction: column; }

.article-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 3px;
}
.article-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 5px;
}
.article-authors {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888;
  margin-bottom: 11px;
}
.pdf-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  padding: 4px 9px;
  border: none;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ── ISSUES PAGE ── */
.issue-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--black);
  padding-bottom: 55px;
}
.issue-row:last-child {
  border-bottom: 0;
}

.issue-row-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #888;
  margin-bottom: 3px;
}
.issue-row-label { font-family: var(--font-mono); font-size: 14px; font-weight: 400; }

/* ── ABOUT PAGE ── */
.about-intro {
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  max-width: 750px;
}
.about-intro p + p { margin-top: 14px; margin-bottom: 80px;}

.board-section { margin-bottom: 80px; }

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 46px;
  max-width: 750px;
  margin-top: 25px;
}
.board-person { font-family: var(--font-mono); font-size: 10px; font-weight: 300; letter-spacing: 0.02em; margin-bottom: 15px;}
.board-person strong { font-weight: 300; display: block; font-size: 14px;}
.board-person span { font-size: 11px; color: #6f6f6f; }

.advisory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
  max-width: 750px;
  margin-top: 35px;
}
.advisory-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--black);
}

/* ── SIDEBAR ── */

.sidebar-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.sidebar-block:last-child { border-bottom: none; margin-bottom: 0; }

.publisher-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.publisher-icon {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
}
.publisher-text { font-size: 10px; font-weight: 400; line-height: 1.35; }
.publisher-text span { display: block; font-size: 9px; color: #777; }

.sidebar-about-label {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--black);
  padding-top: 5px;
  margin-top: 15px;
  margin-right: 15px;
  margin-bottom: 8px;
}
.sidebar-about-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
}

/* ── RESPONSIVE / MOBILE ── */

@media (max-width: 900px) {

  :root {
    --header-h: auto;
    --sidebar-w: 100%;
  }

  /* Header: row with logo left, tagline hidden or below, burger top-right */
  header {
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: auto;
    padding: 16px 70px 16px 16px; /* right padding leaves room for burger */
    margin: 0;
  }

  .logocontent {
    padding-top: 0;
    padding-left: 0;
  }

  .logocontent img {
    width: 160px;
    height: auto;
  }

  .header-tagline {
    display: none; /* hidden on mobile to keep header compact */
  }

  /* Nav scrolls horizontally on small screens */
  .navbar {
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
  }
  .navbar::-webkit-scrollbar { display: none; }

  .navbar a {
    font-size: 13px;
    padding: 0 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Layout becomes single column */
  .layout {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  main {
    padding: 20px 20px;
    border-right: none;
    border-bottom: 1px solid var(--black);
    margin-right: 0;
  }

  aside {
    padding: 20px 20px;
    border-top: none;
  }

  /* Section titles */
  .section-title {
    font-size: 18px;
    margin-top: 36px;
    margin-bottom: 16px;
  }

  /* Issue cover on current page: full width */
  #page-current .issue-cover {
    width: 100%;
    height: auto;
    min-height: 160px;
    flex-direction: row;
    align-items: flex-end;
    padding: 14px;
    gap: 16px;
  }

  /* Issues list: covers stay small but rows wrap nicely */
  .issue-row {
    gap: 14px;
  }

  .issue-cover {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
  }

  /* Article items */
  .article-title {
    font-size: 18px;
  }
  .article-subtitle {
    font-size: 15px;
  }

  /* About page */
  .about-intro {
    font-size: 17px;
    max-width: 100%;
  }

  .board-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 4px 0;
  }

  .advisory-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 20px 0;
  }

  .board-section {
    margin-bottom: 40px;
  }

  /* Sidebar */
  .sidebar-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .publisher-row img {
    width: 160px;
    height: auto;
  }
}

@media (max-width: 480px) {

  header {
    padding: 14px 16px;
  }

  .logocontent img {
    width: 200px;
  }

  .header-tagline {
    font-size: 13px;
  }

  main {
    padding: 16px 16px;
  }

  aside {
    padding: 16px 16px;
  }

  .navbar a {
    font-size: 12px;
    padding: 0 10px;
    letter-spacing: 0.08em;
  }

  .section-title {
    font-size: 15px;
  }

  /* Current issue cover: compact on very small screens */
  #page-current .issue-cover {
    min-height: 130px;
  }

  .cover-logo {
    font-size: 22px;
  }

  .article-title {
    font-size: 16px;
  }

  .article-subtitle {
    font-size: 14px;
  }

  .about-intro {
    font-size: 15px;
  }

  .board-grid,
  .advisory-grid {
    grid-template-columns: 1fr;
  }
}

/* ── HAMBURGER BUTTON (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  position: absolute;
  top: 30px;
  right: 30px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DROPDOWN (hidden by default) ── */
.mobile-nav-dropdown {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1.5px solid var(--black);
}
.mobile-nav-dropdown a {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 14px 20px;
  color: grey;
  cursor: pointer;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav-dropdown a:hover,
.mobile-nav-dropdown a.active { color: var(--black); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 12px 45px;
  text-align: right;
}
.site-footer a {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
}
.site-footer a:hover { color: var(--black); }

@media (max-width: 900px) {
  /* Header becomes relative so hamburger can be positioned absolutely */
  header { position: relative; }

  /* Hide desktop navbar entirely */
  .navbar { display: none; }

  /* Show hamburger in header */
  .nav-hamburger { display: flex; }

  /* Show dropdown when open */
  .mobile-nav-dropdown.open { display: flex; }

  .site-footer { padding: 12px 20px; }
}
