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

:root {
  --blue-deep:  #1a237e;
  --blue-mid:   #283593;
  --blue-bg:    #1e2d6b;
  --blue-dark:  #0d1b5e;
  --cyan:       #00BCD4;
  --cyan-lt:    #4DD0E1;
  --cyan-dk:    #0097A7;
  --teal:       #009688;
  --white:      #FFFFFF;
  --silver:     #C8C8C8;
  --gray:       #888;
  --yellow:     #FFD600;
  --red:        #d32f2f;

  /* OS/2 window chrome colors */
  --win-title:  #000080;
  --win-bg:     #d4d0c8;
  --win-border-lt: #ffffff;
  --win-border-dk: #404040;
  --win-border-mid: #808080;
  --btn-face:   #d4d0c8;
  --btn-lt:     #ffffff;
  --btn-dk:     #404040;
  --btn-shadow: #808080;

  --sans:  'IBM Plex Sans', Arial, sans-serif;
  --mono:  'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
  min-height: 100vh;
  /* OS/2 Warp blue mottled background */
  background-color: var(--blue-bg);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(40,53,147,0.8) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(13,27,94,0.9) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(26,35,126,0.5) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

a { color: var(--cyan-lt); text-decoration: none; }
a:hover { color: var(--white); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── OS/2 WINDOW CHROME ── */
.os2-window {
  background: var(--win-bg);
  color: #000;
  border-top: 2px solid var(--win-border-lt);
  border-left: 2px solid var(--win-border-lt);
  border-right: 2px solid var(--win-border-dk);
  border-bottom: 2px solid var(--win-border-dk);
  box-shadow: 2px 2px 0 var(--win-border-mid);
}

.os2-titlebar {
  background: linear-gradient(90deg, var(--win-title) 0%, #1565C0 100%);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.os2-titlebar-btns {
  display: flex;
  gap: 2px;
}

.os2-btn-chrome {
  width: 16px;
  height: 14px;
  background: var(--btn-face);
  border-top: 1px solid var(--btn-lt);
  border-left: 1px solid var(--btn-lt);
  border-right: 1px solid var(--btn-dk);
  border-bottom: 1px solid var(--btn-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #000;
  cursor: pointer;
  font-weight: 700;
}

.os2-menubar {
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-border-mid);
  padding: 2px 4px;
  display: flex;
  gap: 0;
  font-size: 0.8rem;
  color: #000;
}

.os2-menubar span {
  padding: 1px 8px;
  cursor: pointer;
}

.os2-menubar span:hover {
  background: var(--win-title);
  color: #fff;
}

.os2-content {
  padding: 8px;
}

/* ── HEADER / TASKBAR ── */
header {
  background: linear-gradient(180deg, #1a237e 0%, #0d1b5e 100%);
  border-bottom: 3px solid var(--cyan-dk);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background: rgba(0,0,0,0.3);
  padding: 2px 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--silver);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,188,212,0.3);
}

.header-top a { color: var(--silver); font-size: 0.7rem; margin-left: 0.75rem; }
.header-top a:hover { color: var(--cyan); text-decoration: none; }

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-main span { color: var(--cyan); }

.logo-sub {
  font-size: 0.65rem;
  color: var(--cyan-lt);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
}

nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: var(--silver);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-left: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  transition: all 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav a:hover, nav a.active {
  background: var(--cyan-dk);
  color: #fff;
  border-color: var(--cyan);
  text-decoration: none;
}

nav a.cta {
  background: var(--cyan-dk);
  color: #fff;
  border-color: var(--cyan);
  margin-left: 4px;
}

nav a.cta:hover { background: var(--cyan); }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  cursor: pointer;
  font-family: var(--sans);
}

/* ── HERO ── */
.hero {
  padding: 3rem 1rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Big OS/2-style logo text behind */
.hero::before {
  content: 'FREE GEEK';
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 10rem;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  font-family: var(--sans);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.hero-text {}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cyan-lt);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before { content: '►'; font-size: 0.6rem; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
  display: block;
}

.hero-mission {
  font-size: 1rem;
  color: var(--silver);
  max-width: 580px;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hero-nonprofit {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan-lt);
  margin-bottom: 1.75rem;
  padding: 0.4rem 0.75rem;
  border-left: 3px solid var(--cyan);
  background: rgba(0,188,212,0.08);
  display: inline-block;
}

.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── ICON WIDGET (OS/2 style) ── */
.icon-widget {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s;
  border: 1px solid transparent;
}

.icon-item:hover {
  background: var(--win-title);
  border: 1px dotted var(--cyan);
  text-decoration: none;
}

.icon-img {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.5));
}

.icon-label {
  font-size: 0.65rem;
  color: #000;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  max-width: 64px;
}

/* ── HOURS BAR ── */
.hours-bar {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-mid) 50%, var(--blue-dark) 100%);
  border-top: 1px solid var(--cyan-dk);
  border-bottom: 1px solid var(--cyan-dk);
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--silver);
  text-align: center;
}

.hours-bar strong { color: var(--cyan-lt); margin-right: 0.4rem; }

/* ── MAIN LAYOUT ── */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

/* ── PROGRAM MANAGER GRID ── */
.prog-manager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  background: var(--btn-face);
  color: #000;
  border-top: 2px solid var(--btn-lt);
  border-left: 2px solid var(--btn-lt);
  border-right: 2px solid var(--btn-dk);
  border-bottom: 2px solid var(--btn-dk);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.05s;
}

.btn:hover { text-decoration: none; background: #e0e0e0; }
.btn:active {
  border-top-color: var(--btn-dk);
  border-left-color: var(--btn-dk);
  border-right-color: var(--btn-lt);
  border-bottom-color: var(--btn-lt);
}

.btn-cyan {
  background: var(--cyan-dk);
  color: #fff;
  border-top-color: var(--cyan-lt);
  border-left-color: var(--cyan-lt);
  border-right-color: var(--cyan-dk);
  border-bottom-color: var(--cyan-dk);
}
.btn-cyan:hover { background: var(--cyan); color: #000; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── BLOG POSTS ── */
.blog-list { display: flex; flex-direction: column; gap: 8px; }

.blog-item {
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--cyan-dk);
  transition: border-color 0.1s, background 0.1s;
}

.blog-item:hover { border-left-color: var(--cyan); background: rgba(0,188,212,0.08); }

.blog-item .thumb { width: 100%; height: 70px; object-fit: cover; margin-bottom: 5px; }
.blog-item .post-date { font-family: var(--mono); font-size: 0.65rem; color: #555; margin-bottom: 3px; }
.blog-item h3 { font-size: 0.85rem; color: #000066; font-weight: 600; }
.blog-item h3 a { color: #000066; }
.blog-item h3 a:hover { color: var(--blue-mid); text-decoration: none; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-bg) 100%);
  border-bottom: 2px solid var(--cyan-dk);
  padding: 2rem 1rem;
}

.page-hero-inner { max-width: 1100px; margin: 0 auto; }

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.page-hero p { color: var(--silver); font-size: 0.9rem; }

/* ── CONTENT ── */
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; display: grid; grid-template-columns: 1fr 260px; gap: 1.5rem; align-items: start; }
.content-main {}
.content h2 { font-size: 1.2rem; color: var(--blue-deep); margin: 1.75rem 0 0.6rem; border-bottom: 1px solid rgba(0,0,150,0.2); padding-bottom: 0.3rem; }
.content h2:first-child { margin-top: 0; }
.content .post-hero-img { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 1.25rem; }
.content p { color: #222; margin-bottom: 0.85rem; line-height: 1.7; }
.content ul { color: #222; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.content ul li { margin-bottom: 0.35rem; }
.content a { color: var(--blue-deep); }
.content strong { color: #000; }

/* ── POST ── */
.post-header { background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-bg) 100%); border-bottom: 2px solid var(--cyan-dk); padding: 2rem 1rem; }
.post-header-inner { max-width: 800px; margin: 0 auto; }
.post-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; color: #fff; }
.post-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--cyan-lt); margin-top: 0.5rem; }

.post-content { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.post-content p { color: #222; margin-bottom: 1rem; line-height: 1.7; }
.post-content h2 { font-size: 1.2rem; color: var(--blue-deep); margin: 1.5rem 0 0.5rem; }
.post-content ul { color: #222; padding-left: 1.5rem; margin-bottom: 1rem; }
.post-content a { color: var(--blue-deep); }
.post-content strong { color: #000; }

/* Table text inside OS/2 windows */
.os2-window table { color: #222; }
.os2-window table td { color: #222; }

/* ── BLOG INDEX ── */
.blog-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }

.blog-card-full {
  padding: 1.25rem;
}

.blog-card-full .thumb { width: 100%; height: 160px; object-fit: cover; margin-bottom: 0.75rem; }
.blog-card-full .post-date { font-family: var(--mono); font-size: 0.7rem; color: #555; margin-bottom: 0.4rem; }
.blog-card-full h3 { font-size: 0.95rem; color: #000066; font-weight: 700; margin-bottom: 0.5rem; }
.blog-card-full h3 a { color: #000066; }
.blog-card-full h3 a:hover { color: var(--blue-mid); text-decoration: none; }
.blog-card-full p { font-size: 0.85rem; color: #333; }
.blog-card-full .read-more { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; color: var(--cyan-lt); font-family: var(--mono); }

/* ── NONPROFIT BOX ── */
.nonprofit-window { margin-top: 1.5rem; }
.ein-display { font-family: var(--mono); font-size: 0.75rem; color: var(--blue-deep); background: rgba(0,100,180,0.1); border: 1px solid var(--blue-mid); padding: 6px 10px; margin-top: 8px; display: inline-block; }

/* ── FOOTER ── */
footer {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #050d3a 100%);
  border-top: 2px solid var(--cyan-dk);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-subscribe p { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.7rem; line-height: 1.5; }
.footer-subscribe-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-subscribe-form input[type="email"] {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--win-border-mid);
  padding: 7px 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  background: #fff;
}
.footer-notice {
  font-size: 0.82rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--cyan-dk);
  background: rgba(0,188,212,0.12);
  color: var(--cyan-lt);
}
.footer-notice.error { border-color: var(--red); background: rgba(211,47,47,0.15); color: #ff9d9d; }

.footer-logo { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer-logo span { color: var(--cyan); }
.footer-nonprofit { font-size: 0.75rem; color: var(--gray); line-height: 1.7; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); }

footer h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-lt); margin-bottom: 0.6rem; font-family: var(--mono); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.35rem; }
footer ul a { color: var(--gray); font-size: 0.85rem; }
footer ul a:hover { color: var(--silver); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  font-family: var(--mono);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .main-layout { grid-template-columns: 1fr; }
  .prog-manager { grid-template-columns: 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue-dark);
    border-bottom: 2px solid var(--cyan-dk);
    padding: 0.5rem;
    z-index: 200;
  }
  nav.open { display: flex; }
  nav a { width: 100%; }
  nav a.cta { margin-left: 0; }
}
