/* ---------------------------------------------------------------
   hirakonline.com — network index
   Editorial style, shared with hirakchatterjee.com.
   Fraunces (display) + IBM Plex Sans (body) + IBM Plex Mono (labels).
   --------------------------------------------------------------- */

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

:root {
  --bg: #F1ECE1;
  --bg-card: #FBF9F3;
  --text: #1A1712;
  --text-muted: #6B6558;
  --accent: #BC5A28;
  --live: #3F6B4F;
  --rule: rgba(26, 23, 18, 0.14);
  --rule-strong: rgba(26, 23, 18, 0.85);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-width: 1180px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) { html { font-size: 18px; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- HEADER ---------- */
header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .accent { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover { color: var(--accent); }

nav a .ext {
  font-size: 0.8em;
  margin-left: 0.1em;
}

/* ---------- HERO ---------- */
.hero { padding: 4.5rem 0 3.5rem; }

.label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1.75rem;
}

.hero .lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 46ch;
}

/* ---------- SECTIONS ---------- */
section.utilities { padding: 0 0 5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}




/* ---------- CARD GRID ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--live);
  font-weight: 500;
}

.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card .open-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card .open-link:hover { text-decoration: underline; text-underline-offset: 3px; }




/* ---------- WORKSHOP ---------- */

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-inner a:hover { color: var(--accent); }

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  nav ul { gap: 1.25rem; flex-wrap: wrap; }
  .header-inner { gap: 0.75rem; }
  .hero { padding: 3rem 0 2.5rem; }
}
