/* ============================================================
   ALUMNIYAT TOOLS — clean tools-hub
   - Off-white paper base, near-black ink
   - Cobalt as the only accent
   - Type: Instrument Serif (display) · Geist (body) · IBM Plex Mono
   - Each tool card carries a tiny app-colored hint, nothing more
   ============================================================ */

:root {
  --paper:    #FAF8F4;
  --paper-2:  #F2EEE6;
  --ink:      #0F0F0F;
  --ink-2:    #2A2A2A;
  --char:     #6B6B6B;
  --rule:     #1A1A1A;
  --hairline: #D4CFC4;

  --cobalt:   #1E3A8A;
  --cobalt-2: #28499E;
  --on-cobalt:#F4EEE0;

  /* per-app accents (used only as small card hints) */
  --firegrade: #8B2A1F;     /* oxblood ember */
  --picklemap: #C6FF3D;     /* lime */
  --picklemap-bg: #0B0D10;  /* dark */
  --adu:       #1E3A8A;     /* blueprint navy */
  --adu-clay:  #B45D38;     /* terracotta */

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans:  "Geist", "Helvetica Neue", -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", "Menlo", monospace;

  --max:    1240px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* visually hidden + skip link */
.vh, .skip {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed !important;
  width: auto; height: auto; clip: auto;
  top: 12px; left: 12px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  z-index: 1000;
}

/* paper-grain backdrop, very subtle */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.012) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.012) 0, transparent 50%);
  z-index: 0;
}

.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.06em; text-transform: uppercase; }
.italic { font-style: italic; font-family: var(--serif); }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: relative; z-index: 10;
  background: var(--paper);
}
.mast-rule {
  height: 1px; background: var(--rule);
}
.mast-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mast-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mast-suffix {
  font-size: 11px;
  color: var(--char);
  letter-spacing: 0.12em;
}
.topnav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav a {
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.topnav a:hover { border-color: var(--ink); }

.mob-toggle {
  display: none;
  background: none; border: none;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 0;
}
.mob-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mob-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mob-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mob-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .mob-toggle { display: flex; }
  .topnav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .topnav.open { max-height: 220px; }
  .topnav a {
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--hairline);
  }
  .topnav a:hover { border-color: var(--hairline); background: var(--paper-2); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 1;
  padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(40px, 6vw, 72px);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
}
.hero-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}
.hero-h span { display: inline; }
.hero-h span + span { margin-left: 0.18em; }
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 6px;
}
.hero-deck {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
}
.hero-cta { align-self: flex-start; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-pri,
.btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-pri {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-pri:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-sec {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-sec:hover { background: var(--ink); color: var(--paper); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools {
  position: relative; z-index: 1;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--hairline);
}
.tools-head {
  max-width: var(--max);
  margin: 0 auto 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--char);
}
.section-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 8px 0 0;
}
.tools-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.tool-card:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.tool-art {
  width: 96px; height: 64px;
  margin: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
}
.tool-art-adu       { color: var(--adu); }
.tool-art-firegrade { color: var(--firegrade); }
.tool-art-picklemap {
  color: var(--picklemap);
  background: var(--picklemap-bg);
  border-radius: 2px;
  padding: 6px 8px;
  width: 100px;
}

/* FireGrade letter art */
.art-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--firegrade);
  margin-right: 8px;
}
.art-letter-tag {
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--firegrade);
  opacity: 0.8;
  align-self: flex-end;
  padding-bottom: 4px;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tool-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--char);
  border: 1px solid var(--hairline);
  padding: 4px 8px;
}
.tool-badge {
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
}
.tool-name {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.tool-pitch {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 22px;
  flex: 1;
}
.tool-cta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  align-self: flex-start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.tool-card:hover .tool-cta { color: var(--cobalt); border-color: var(--cobalt); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative; z-index: 1;
  padding: clamp(60px, 8vw, 110px) var(--gutter);
  border-top: 1px solid var(--hairline);
  background: var(--paper-2);
}
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-left .section-h { margin-bottom: 18px; }
.contact-deck {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 46ch;
}
.contact-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.contact-meta li { display: flex; gap: 10px; align-items: baseline; }
.contact-meta .mono {
  font-size: 10px;
  color: var(--char);
  min-width: 80px;
}

/* form */
.contact-form {
  display: flex; flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 10px;
  color: var(--char);
  letter-spacing: 0.12em;
}
.field-label .opt { color: var(--char); opacity: 0.7; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-foot { color: var(--char); font-size: 10px; margin: 8px 0 0; letter-spacing: 0.1em; }

/* alerts */
.alert {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.alert-eyebrow { font-size: 10px; letter-spacing: 0.14em; }
.alert-ok  { border-color: #2F4D3A; background: #EAF1EC; color: #1F3527; }
.alert-ok .alert-eyebrow { color: #2F4D3A; }
.alert-err { border-color: #8B2A1F; background: #F4E7E5; color: #5A1A12; }
.alert-err .alert-eyebrow { color: #8B2A1F; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 1; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--char);
}

@media (max-width: 600px) {
  .footer-inner { font-size: 10px; }
}
