/* =====================================================
   Samantha Morello — Personal Website
   ===================================================== */

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

:root {
  /* Color palette */
  --bg-cream: #f6f3ee;
  --text-brown: #3d2f2b;
  --text-muted: #5a4a45;
  --folder-bg: #fff;
  --card-bg: #fff;
  --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  --folder-brown: #8B7355;
  --folder-brown-dark: #6B5344;

  /* Window chrome */
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: var(--bg-cream);
  color: var(--text-brown);
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  cursor: url('assets/cursor.svg?v=10') 0 0, auto;
}

a, button, .folder-tab, .file-item, .sf-project-card, .sf-connect-link,
input, textarea, select {
  cursor: url('assets/cursor.svg?v=10') 0 0, auto;
}

/* =====================================================
   Page Border
   ===================================================== */

.page-border {
  min-height: 100vh;
  position: relative;
}


/* =====================================================
   Navigation
   ===================================================== */

.nav {
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
  z-index: 10;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-brown);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text-brown);
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.7;
}



/* =====================================================
   Folders Grid
   ===================================================== */

.folders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.folder {
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.folder:hover {
  transform: translateY(-5px) scale(1.05);
}

.folder-icon {
  width: 80px;
  height: auto;
}

.folder-label {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-brown);
  margin-top: 8px;
  text-align: center;
}

/* =====================================================
   Laptop Container
   ===================================================== */

.laptop-container {
  position: relative;
  width: 500px;
  flex-shrink: 0;
  transform: rotate(3deg) translateY(-4rem);
  margin-left: 12rem;
}

.laptop-frame {
  width: 100%;
  height: auto;
  display: block;
}

.laptop-screen {
  position: absolute;
  top: 6.5%;
  left: 13.5%;
  width: 73%;
  height: 55%;
  overflow: hidden;
  border-radius: 3px;
}

.laptop-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* =====================================================
   Folder Windows (Popup)
   ===================================================== */

.folder-window {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.folder-window.active {
  display: flex;
}

.folder-window-inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 90vw;
  max-height: 90vh;
}

.window-bar {
  background: #e8e8e8;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ddd;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dot.red { background: var(--dot-red); }
.window-dot.yellow { background: var(--dot-yellow); }
.window-dot.green { background: var(--dot-green); }

.window-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
  padding-right: 36px;
}

.window-body {
  background: #fff;
  min-width: 400px;
  min-height: 300px;
  padding: 2rem;
}

.close-btn {
  cursor: pointer;
  transition: transform 0.1s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

.window-placeholder {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4rem 2rem;
}

/* =====================================================
   File Grid (inside windows)
   ===================================================== */

.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 80px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.file-item:hover {
  transform: scale(1.05);
}

.file-icon {
  position: relative;
  width: 50px;
  height: 42px;
}

.mini-folder-tab {
  width: 20px;
  height: 8px;
  background: var(--folder-brown-dark);
  border-radius: 3px 3px 0 0;
  position: absolute;
  top: 0;
  left: 8px;
}

.mini-folder-body {
  width: 50px;
  height: 38px;
  background: linear-gradient(180deg, var(--folder-brown) 0%, var(--folder-brown-dark) 100%);
  border-radius: 2px 5px 5px 5px;
  position: absolute;
  top: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.file-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-brown);
  text-align: center;
  margin-top: 8px;
  word-wrap: break-word;
  line-height: 1.3;
}

/* =====================================================
   Project Detail Styles
   ===================================================== */

.project-detail {
  max-width: 500px;
}

.project-semester {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.project-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--text-brown);
  margin-bottom: 8px;
}

.project-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  font-weight: normal;
}

.project-description {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-section {
  margin-bottom: 20px;
}

.project-section h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-brown);
  margin-bottom: 10px;
}

.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 15px;
  position: relative;
}

.project-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--folder-brown);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  background: var(--bg-cream);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 4px;
}

.tech-tag.highlight {
  background: var(--folder-brown);
  color: #fff;
  font-weight: 600;
}

/* =====================================================
   Responsive
   ===================================================== */


/* =====================================================
   Portfolio — Tabbed Folder Widget
   ===================================================== */

/* --- Folder Widget Layout --- */

.intro-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0 8rem;
  background: var(--bg-cream);
  position: relative;
}

.portfolio-intro-text {
  display: flex;
  flex-direction: column;
}

.portfolio-hi {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.portfolio-name {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(9rem, 18vw, 22rem);
  color: var(--text-brown);
  line-height: 1;
  margin: 0;
  font-weight: 400;
}


.scroll-arrow {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: url('assets/cursor.svg?v=10') 0 0, auto;
}

.scroll-arrow svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.scroll-arrow:hover svg {
  opacity: 1;
}


.intro-photo {
  width: 55%;
  max-width: 620px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.portfolio-section {
  background: var(--bg-cream);
  height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.folder-widget {
  width: 100%;
  max-width: 1400px;
}

/* Tab row */
.folder-tabs {
  display: flex;
  gap: 4px;
  padding: 0 32px;
  position: relative;
  z-index: 3;
  align-items: flex-end;
}

.folder-tab {
  padding: 12px 28px;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(61,43,35,0.09);
  border-bottom: none;
  background: rgba(240,236,230,0.75);
  cursor: url('assets/cursor.svg?v=10') 0 0, auto;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(61,43,35,0.38);
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.folder-tab:hover:not(.active) {
  background: rgba(255,255,255,0.85);
  color: rgba(61,43,35,0.6);
}

.folder-tab.active {
  background: #fff;
  color: var(--text-brown);
  z-index: 4;
}

/* Card */
.folder-card {
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 2px 0 rgba(61,43,35,0.04),
    0 8px 32px rgba(61,43,35,0.07),
    0 32px 80px rgba(61,43,35,0.05);
  position: relative;
  z-index: 2;
  margin-top: -1px;
  height: 72vh;
  overflow: hidden;
}

/* Panels */
.folder-panel {
  display: none;
  padding: 4rem 5rem;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.folder-panel.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Welcome panel --- */

.welcome-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  text-align: center;
}

.welcome-heading {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 400;
  gap: 0;
}

.welcome-line1 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.welcome-line2 {
  font-family: 'Pinyon Script', cursive;
  font-size: 9rem;
  color: var(--text-brown);
  line-height: 1;
}

.welcome-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 780px;
  margin-top: 2rem;
}

.welcome-cta {
  margin-top: 1.5rem !important;
}

/* --- Panel content styles (light card) --- */

.sf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}

.sf-four-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sf-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.sf-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--text-brown);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.sf-subheading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-brown);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.sf-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.sf-list li {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 4px 0 4px 14px;
  position: relative;
  line-height: 1.5;
}

.sf-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--folder-brown);
}

.sf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.sf-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 6px;
  background: var(--bg-cream);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sf-tag-highlight {
  background: var(--text-brown);
  color: var(--bg-cream);
  font-weight: 600;
}

.sf-card {
  background: var(--bg-cream);
  border: 1px solid rgba(61,43,35,0.07);
  border-radius: 14px;
  padding: 1.75rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sf-card:hover {
  background: rgba(61,43,35,0.05);
  box-shadow: 0 8px 32px rgba(61,43,35,0.1);
  transform: translateY(-3px);
}

.sf-card-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.sf-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-brown);
  margin-bottom: 0.5rem;
}

.sf-card-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.sf-project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-cream);
  border: 1px solid rgba(61,43,35,0.07);
  border-radius: 14px;
  padding: 2rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sf-project-card:hover {
  background: rgba(61,43,35,0.05);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61,43,35,0.1);
}

.sf-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--folder-brown);
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Connect panel */
.fp-connect-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}

.sf-connect-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sf-connect-heading {
  font-family: 'Pinyon Script', cursive;
  font-size: 5rem;
  color: var(--text-brown);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 2.5rem;
}

.sf-connect-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.sf-connect-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-brown);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sf-connect-link:hover { opacity: 0.55; transform: translateY(-3px); }

.sf-connect-icon {
  width: 40px;
  height: 40px;
  color: var(--text-brown);
}

.sf-connect-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sf-connect-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-brown);
}


/* =====================================================
   MacBook Section
   ===================================================== */

.macbook-section {
  background: var(--bg-cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 4rem;
  position: relative;
}

.macbook-group {
  position: relative;
  width: 860px;
  flex-shrink: 0;
}

.macbook-side-photo {
  position: absolute;
  height: 520px;
  width: auto;
  left: -180px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  z-index: 0;
}

.macbook-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  transform: rotate(3deg);
  z-index: 1;
}

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

/* Overlay positioned over the laptop screen */
.macbook-screen {
  position: absolute;
  top: 5.5%;
  left: 10.5%;
  width: 79%;
  height: 62%;
  border-radius: 2px;
  overflow: hidden;
}

.screen-bg {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  padding-top: 8%;
  justify-content: center;
  padding: 8% 10%;
}

.compose-window {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Cormorant Garamond', serif;
}

.compose-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 14px;
  background: #f6f3ee;
  border-bottom: 1px solid rgba(61, 43, 35, 0.12);
  flex-shrink: 0;
}

.compose-dots {
  display: flex;
  gap: 5px;
  margin-right: 4px;
}

.cdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cdot-red    { background: #ff6b6b; }
.cdot-yellow { background: #ffd166; }
.cdot-green  { background: #06d6a0; }

.compose-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
  margin-right: 36px;
}

.compose-field {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(61, 43, 35, 0.09);
  gap: 10px;
  flex-shrink: 0;
}

.compose-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 46px;
  opacity: 0.65;
}

.compose-to-value {
  font-size: 0.9rem;
  color: var(--text-brown);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

.compose-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--text-brown);
  width: 100%;
}

.compose-input::placeholder { color: rgba(61, 43, 35, 0.3); font-style: italic; }

.compose-body {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-brown);
  resize: none;
  flex: 1;
  padding: 12px 16px;
  line-height: 1.6;
}

.compose-body::placeholder { color: rgba(61, 43, 35, 0.28); font-style: italic; }

.compose-footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 14px;
  border-top: 1px solid rgba(61, 43, 35, 0.09);
  background: #faf8f5;
  flex-shrink: 0;
}

.compose-send {
  background: var(--text-brown);
  border: none;
  border-radius: 20px;
  color: var(--bg-cream);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  cursor: url('assets/cursor.svg?v=10') 0 0, auto;
  transition: opacity 0.2s ease;
}

.compose-send:hover { opacity: 0.75; }

/* =====================================================
   Photo Strip Section
   ===================================================== */

.photo-strip-section {
  background: var(--bg-cream);
  height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.photo-strip-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
}

.strip-photo {
  width: 60vw;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  margin: 0 -13vw;
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
  text-align: center;
  padding: 2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.6;
}

.border-cat {
  position: absolute;
  bottom: 6px;
  right: 28px;
  width: 24px;
  height: auto;
  image-rendering: pixelated;
  z-index: 9999;
}

/* =====================================================
   Page frame + section dividers
   ===================================================== */

/* Outer border — scrolls with the page */
.page-border::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1.5px solid rgba(61, 43, 35, 0.22);
  border-radius: 6px;
  pointer-events: none;
  z-index: 9999;
  box-shadow:
    0 4px 24px rgba(61, 43, 35, 0.08),
    0 12px 48px rgba(61, 43, 35, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Theme dots */
.theme-dots {
  position: absolute;
  top: 26px;
  right: 36px;
  display: flex;
  gap: 8px;
  z-index: 99999;
  align-items: center;
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: url('assets/cursor.svg?v=10') 0 0, auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.theme-dot:hover { transform: scale(1.3); }
.theme-dot.active { transform: scale(1.2); outline: 2px solid rgba(255,255,255,0.4); outline-offset: 1px; }

.dot-light { background: #c9b49a; }
.dot-mid   { background: #7a5545; }
.dot-dark  { background: #3d2f2b; }

/* =====================================================
   Themes
   ===================================================== */

/* Mid theme — warm sepia dark */
[data-theme="mid"] {
  --bg-cream: #2c2018;
  --text-brown: #e8d5be;
  --text-muted: #b09070;
  --folder-brown: #c9a882;
}

[data-theme="mid"] body { background-color: #2c2018; color: #e8d5be; }
[data-theme="mid"] .folder-card,
[data-theme="mid"] .compose-window { background: #3a2a1e; }
[data-theme="mid"] .folder-tab { background: rgba(80,55,35,0.6); color: #c9a882; }
[data-theme="mid"] .folder-tab.active { background: #3a2a1e; color: #e8d5be; }
[data-theme="mid"] .sf-card,
[data-theme="mid"] .sf-project-card { background: #2c2018; border-color: rgba(200,160,120,0.15); }
[data-theme="mid"] .sf-card:hover,
[data-theme="mid"] .sf-project-card:hover { background: rgba(200,160,120,0.1); }
[data-theme="mid"] .page-border::after { border-color: rgba(200,160,120,0.25); }
[data-theme="mid"] .compose-titlebar,
[data-theme="mid"] .compose-footer { background: #241910; }
[data-theme="mid"] .compose-field { border-color: rgba(200,160,120,0.15); }

/* Dark theme — deep espresso */
[data-theme="dark"] {
  --bg-cream: #110d0b;
  --text-brown: #f0e0cc;
  --text-muted: #9a7a62;
  --folder-brown: #c9a882;
}

[data-theme="dark"] body { background-color: #110d0b; color: #f0e0cc; }
[data-theme="dark"] .folder-card,
[data-theme="dark"] .compose-window { background: #1e1410; }
[data-theme="dark"] .folder-tab { background: rgba(50,30,20,0.8); color: #9a7a62; }
[data-theme="dark"] .folder-tab.active { background: #1e1410; color: #f0e0cc; }
[data-theme="dark"] .sf-card,
[data-theme="dark"] .sf-project-card { background: #110d0b; border-color: rgba(200,160,120,0.1); }
[data-theme="dark"] .sf-card:hover,
[data-theme="dark"] .sf-project-card:hover { background: rgba(200,160,120,0.07); }
[data-theme="dark"] .page-border::after { border-color: rgba(200,160,120,0.18); }
[data-theme="dark"] .compose-titlebar,
[data-theme="dark"] .compose-footer { background: #0d0907; }
[data-theme="dark"] .compose-field { border-color: rgba(200,160,120,0.1); }

/* =====================================================
   Responsive — Mobile
   ===================================================== */

@media (max-width: 768px) {

  /* Layout */
  .page-border {
    margin: 8px;
  }

  /* Nav */
  .nav {
    gap: 1.5rem;
    top: 26px;
  }

  .nav-link {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    padding-bottom: 2px;
  }

  /* Hero — scale text to fit screen */
  .intro-section {
    padding: 0 1.5rem;
    text-align: center;
    justify-content: center;
  }

  .portfolio-intro-text {
    align-items: center;
  }

  .portfolio-hi {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  .portfolio-name {
    font-size: 13vw;
    line-height: 1;
  }

  .scroll-arrow {
    bottom: 2.5rem;
  }

  /* Portfolio section */
  .portfolio-section {
    height: auto;
    min-height: 100svh;
    padding: 1.25rem 2rem 2rem;
    align-items: center;
    justify-content: center;
  }

  .folder-widget {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Tabs — single line, inset so card corners show */
  .folder-tabs {
    padding: 0 12px;
    gap: 2px;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .folder-tab {
    padding: 7px 4px;
    font-size: 0.35rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 6px 6px 0 0;
    text-align: center;
  }

  /* Card — height fits content */
  .folder-card {
    height: auto;
    min-height: unset;
    border-radius: 12px;
    overflow: visible;
  }

  /* Panels */
  .folder-panel {
    padding: 1.5rem 1.25rem;
    height: auto;
    min-height: unset;
    overflow: visible;
  }

  .folder-panel.active {
    align-items: flex-start;
  }

  /* Welcome */
  .welcome-panel {
    width: 100%;
    min-height: 40vh;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .welcome-heading {
    align-items: center;
  }

  .welcome-line1 {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .welcome-line2 {
    font-size: 16vw;
  }

  /* Education */
  .sf-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sf-heading { font-size: 1.8rem; }
  .sf-eyebrow { font-size: 0.68rem; }
  .sf-subheading { font-size: 1.1rem; }

  .sf-tag {
    font-size: 0.65rem;
    padding: 5px 10px;
  }

  /* Data projects */
  .sf-four-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sf-card { padding: 1.25rem; }
  .sf-card-title { font-size: 1.4rem; }
  .sf-card-desc { font-size: 0.68rem; }

  /* Fun stuff */
  .sf-project-card { padding: 1.25rem; }

  /* Connect */
  .sf-connect-links {
    gap: 1.5rem;
    width: 100%;
  }

  .sf-connect-icon { width: 30px; height: 30px; }
  .sf-connect-value { font-size: 0.95rem; }

  /* Footer */
  .site-footer { font-size: 0.52rem; }

  .border-cat {
    width: 20px;
  }
}
