:root {
  --ink: #33502c;
  --ink-shadow: #eee6cc;
  --cream: #faf6ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #eef0e4;
}

body {
  font-family: 'Pixelify Sans', system-ui, sans-serif;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-image: url('assets/bg-hero.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.hero-content {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem) 0;
}

.name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--ink-shadow);
}

.bio {
  max-width: 52rem;
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
}

.bio p {
  margin: 0 0 1.35em;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.15vw, 1.02rem);
  line-height: 1.55;
  color: var(--ink);
}

.bio p:last-child { margin-bottom: 0; }

.next-btn {
  position: fixed;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.9rem;
  border: none;
  border-radius: 0.9rem 0 0 0.9rem;
  background: #1b1c14;
  color: #d7e05a;
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, width 0.2s ease;
  z-index: 5;
}

.next-btn:hover {
  width: 3.75rem;
  transform: translateY(-50%) translateX(-2px);
}

.folders {
  display: grid;
  grid-template-columns: repeat(4, minmax(5.5rem, 7.5rem));
  gap: clamp(1.25rem, 2.6vw, 2.25rem) clamp(1.5rem, 3.2vw, 3rem);
  margin: 0 clamp(1.5rem, 6vw, 5rem) clamp(2rem, 6vh, 3.5rem);
  padding-left: clamp(0px, 44vw, 44%);
  justify-content: start;
}

.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.folder img {
  width: clamp(5.5rem, 7.5vw, 7.5rem);
  height: clamp(4.5rem, 6vw, 6rem);
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.18));
  transition: transform 0.18s ease;
}

.folder:hover img,
.folder:focus-visible img {
  transform: translateY(-4px) scale(1.03);
}

.folder-label {
  font-weight: 700;
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  line-height: 1.2;
  text-align: center;
  color: #fff;
  text-shadow:
    1px 1px 0 #1b1c14,
    -1px -1px 0 #1b1c14,
    1px -1px 0 #1b1c14,
    -1px 1px 0 #1b1c14,
    0 3px 8px rgba(0,0,0,0.35);
}

.note-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(27, 28, 20, 0.5);
  z-index: 20;
  padding: 2rem;
}

.note-overlay.is-open {
  display: flex;
}

.note-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(95vw, 46rem);
  height: min(80vh, 34rem);
  background: #fff;
  border: 1px solid #ebebed;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: noteIn 0.2s cubic-bezier(.2,.9,.3,1);
}

/* window chrome, drawn rather than shipped as a bitmap so it stays sharp */
.note-chrome {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  background: #f6f6f6;
  border-bottom: 1px solid #dbdce0;
}

.note-lights {
  display: flex;
  gap: 0.45rem;
}

.note-light,
.note-close {
  width: 0.72rem;
  height: 0.72rem;
  flex: none;
  padding: 0;
  border: none;
  border-radius: 50%;
}

.note-close {
  background: #e54d4b;
  cursor: pointer;
}

.note-close:hover { background: #d63b39; }

.note-close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.note-light-amber { background: #f7c950; }
.note-light-green { background: #43d351; }

.note-reload {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 1.4rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: #fdfdfd;
  color: #b8b8bb;
}

.note-reload svg { width: 0.85rem; height: 0.85rem; }

.note-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 1.4rem;
  padding: 0 0.5rem;
  background: #fff;
  border: 1px solid #e6e6e7;
  border-radius: 0.3rem;
  color: #6f6f73;
}

.note-search svg { width: 0.8rem; height: 0.8rem; }

.note-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4a4a4a;
}

.note-tools svg { width: 0.95rem; height: 0.95rem; }

.note-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: clamp(0.9rem, 2vw, 1.6rem) clamp(1.1rem, 3vw, 2rem);
  font-family: 'Pixelify Sans', sans-serif;
  color: var(--ink);
}

@keyframes noteIn {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.note-plain {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

.note-label {
  margin: 0 0 0.9rem;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a63;
}

.note-list {
  display: flex;
  flex-direction: column;
}

.note-item + .note-item {
  margin-top: 0.5rem;
}

.note-item-toggle {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  padding: 0.15rem 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.note-item-title {
  font-weight: 700;
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-item-plus {
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: #6b7a63;
  transition: transform 0.18s ease;
}

.note-item.is-expanded .note-item-plus {
  transform: rotate(45deg);
}

.note-item-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s cubic-bezier(.2,.9,.3,1);
}

.note-item.is-expanded .note-item-panel {
  grid-template-rows: 1fr;
}

.note-item-panel-inner {
  overflow: hidden;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  line-height: 1.5;
  padding-top: 0.35rem;
}

.note-item-panel-inner p {
  margin: 0 0 0.75em;
}

.note-item-panel-inner p:last-child,
.note-item-panel-inner ul:last-child {
  margin-bottom: 0;
}

.note-item-panel-inner ul {
  margin: 0 0 0.75em;
  padding-left: 1.15em;
}

.note-item-panel-inner li {
  margin-bottom: 0.4em;
}

.note-item-panel-inner li:last-child {
  margin-bottom: 0;
}

.note-item-panel-inner a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* "As President," style role headings inside a long entry */
.note-role {
  font-weight: 700;
  margin: 0 0 0.35em;
}


.note-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.note-contact li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.25rem 0.9rem;
  align-items: baseline;
}

.note-contact-label {
  font-weight: 700;
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a63;
}

.note-contact-values {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.15rem;
}

.note-contact-values a {
  font-weight: 700;
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-contact-note {
  font-weight: 500;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: #6b7a63;
}

.note-contact-note:not(:last-child) {
  margin-bottom: 0.7rem;
}

@media (max-width: 560px) {
  .note-contact li { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .folders {
    grid-template-columns: repeat(3, minmax(4.5rem, 6rem));
    padding-left: 0;
  }
  .next-btn { display: none; }
}

@media (max-width: 520px) {
  .folders {
    grid-template-columns: repeat(2, minmax(4.5rem, 6rem));
  }
}
