/* omics-hub — editorial theme matching Final Portfolio palette */

:root {
  --ink: #2e2416;
  --ink-soft: #6b5d48;
  --ink-faint: #9a8a70;
  --coffee: #6d4300;
  --coffee-deep: #452a00;
  --peach: #fed7ad;
  --paper: #fffdf9;
  --card: #ffffff;
  --line: rgba(109, 67, 0, 0.14);
  --live: #2e7d32;
  --dev: #b26a00;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8ef 55%, var(--peach) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); width: 100%; }

/* ---------- Hero ---------- */

.hero { padding: 3rem 0 0; }

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4rem;
}

.overline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coffee);
}

.top-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.top-link:hover { color: var(--coffee); border-color: var(--coffee); }

.hero-links { display: flex; gap: 1.5rem; align-items: center; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 20ch;
}

.lede {
  margin-top: 1.4rem;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* sequence strip — quiet omics signature */
.seq {
  margin-top: 3rem;
  padding-bottom: 2.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.9em;
  color: var(--ink-faint);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.seq span:nth-child(4n+1) { color: rgba(109, 67, 0, 0.55); }

/* ---------- Projects ---------- */

main { flex: 1; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--coffee-deep);
}

.count {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  padding-bottom: 4rem;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.4rem 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--coffee);
  opacity: 0;
  transition: opacity 0.18s ease;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(109, 67, 0, 0.13);
  border-color: rgba(109, 67, 0, 0.3);
}
a.card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.icon { width: 22px; height: 22px; color: var(--coffee); flex-shrink: 0; }

.chip {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.chip-live { color: var(--live); background: rgba(46, 125, 50, 0.08); }
.chip-live::before { content: "●"; font-size: 0.5rem; margin-right: 0.4em; }
.chip-dev { color: var(--dev); background: rgba(178, 106, 0, 0.09); }

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--coffee-deep);
}

.card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-url {
  margin-top: 0.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--coffee);
}
.card-url em { font-style: normal; color: var(--ink-faint); }
a.card:hover .card-url { text-decoration: underline; text-underline-offset: 3px; }

.card-disabled { opacity: 0.78; background: rgba(255, 255, 255, 0.6); }

/* ---------- Footer ---------- */

footer {
  background: var(--coffee-deep);
  color: rgba(254, 215, 173, 0.85);
  padding: 1.15rem 0;
  font-size: 0.86rem;
}
footer .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
footer .dot { opacity: 0.45; }
footer a { color: var(--peach); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--peach); color: var(--coffee-deep); }
