/* study.niramind.com: academic portfolio. Ivory paper, ink and oxblood, Cormorant Garamond. */
:root {
  --paper: #f6f1e7;
  --paper-2: #fffdf8;
  --ink: #1d1a16;
  --ink-2: #4a443b;
  --muted: #7a7266;
  --rule: rgb(29 26 22 / 0.14);
  --accent: #7a1f2b;
  --accent-soft: rgb(122 31 43 / 0.08);
  --gold: #a67c2e;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nm-fg: var(--ink);
  --nm-muted: var(--muted);
  --nm-line: var(--rule);
  --nm-bar-bg: rgb(246 241 231 / 0.82);
  --nm-accent: var(--accent);
  --nm-word-1: #8a6420;
  --nm-word-2: #2b3445;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12100d; --paper-2: #1a1713; --ink: #f1ebdf; --ink-2: #d4ccbd; --muted: #a2988a;
    --rule: rgb(241 235 223 / 0.14); --accent: #e09aa3; --accent-soft: rgb(224 154 163 / 0.1); --gold: #d9b56b;
    --nm-bar-bg: rgb(18 16 13 / 0.82);
    --nm-word-1: var(--nm-gold); --nm-word-2: var(--nm-silver);
  }
}
body { background: var(--paper); color: var(--ink); font: 400 1rem/1.7 var(--sans);
  background-image: radial-gradient(60rem 30rem at 50% -10%, var(--accent-soft), transparent 70%); }
::selection { background: rgb(166 124 46 / 0.3); }
main { max-width: 62rem; margin: 0 auto; padding: 0 var(--nm-gutter); }

/* ── Masthead ── */
.masthead { position: relative; padding: clamp(8rem, 18vh, 10rem) 0 clamp(3rem, 8vw, 5rem); text-align: center; border-bottom: 1px solid var(--rule); isolation: isolate; overflow-x: clip; }
.masthead__ornament { position: absolute; z-index: -1; top: 4.5rem; left: 50%; width: min(34rem, 92vw); translate: -50% 0; fill: none; stroke: var(--gold); stroke-width: 0.6; opacity: 0.22; animation: turn 120s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }
.overline { margin: 0 0 1rem; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.masthead h1 { margin: 0; font: 600 clamp(2.4rem, 7vw, 4.6rem)/1.05 var(--serif); letter-spacing: -0.01em; }
.masthead h1 span { font-style: italic; font-weight: 500; color: var(--accent); }
.degree { margin: 1.2rem 0 0; font: 500 clamp(1.15rem, 2.6vw, 1.45rem)/1.4 var(--serif); color: var(--ink-2); }
.degree strong { font-weight: 700; color: var(--ink); }
.gpa { display: inline-block; padding: 0 0.55rem; border: 1px solid var(--gold); border-radius: 999px; font: 600 0.82rem/1.6 var(--sans); color: var(--gold); vertical-align: 0.15em; }
.lede { max-width: 38rem; margin: 1.2rem auto 0; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.8rem; padding: 0 1.2rem; border-radius: 999px; font: 500 0.95rem/1 var(--sans); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); background: var(--paper-2); transition: transform 0.2s var(--nm-ease), border-color 0.2s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px -14px rgb(122 31 43 / 0.5); }
.btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.btn--primary { color: #fff; background: var(--accent); border-color: transparent; box-shadow: 0 12px 28px -14px rgb(122 31 43 / 0.7); }
@media (prefers-color-scheme: dark) { .btn--primary { color: #12100d; } }
.btn--quiet { border-color: transparent; background: transparent; color: var(--ink-2); }

/* ── Section titles ── */
.section-title { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.75rem; font: 600 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--serif); }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--rule), transparent); }

/* ── Education ── */
.education { padding: clamp(3rem, 8vw, 5rem) 0 0; }
.degrees { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.degree-card { position: relative; padding: 1.4rem 1.4rem 1.5rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 0.9rem; }
.degree-card::before { content: ""; position: absolute; inset-block: 1.4rem; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--accent); opacity: 0.8; }
.degree-card__years { margin: 0; font: 600 0.78rem/1 var(--sans); letter-spacing: 0.1em; color: var(--muted); }
.degree-card h3 { margin: 0.6rem 0 0.2rem; font: 700 1.35rem/1.2 var(--serif); }
.degree-card__school { margin: 0; color: var(--ink-2); }
.degree-card__gpa { display: inline-block; margin: 0.6rem 0 0; font: 600 0.8rem/1.6 var(--sans); color: var(--gold); }
.degree-card__link { display: block; margin-top: 0.7rem; font-size: 0.88rem; color: var(--accent); text-underline-offset: 0.2em; }

/* ── Publications ── */
.publications { padding: clamp(3rem, 8vw, 5rem) 0 0; }
.pubs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
.pubs-head .section-title { flex: 1 1 auto; }
.pubs-count { margin: 0 0 1.75rem; color: var(--muted); font-size: 0.9rem; }
.filters { display: grid; gap: 0.9rem; margin-bottom: 1.5rem; }
.search { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.9rem; border: 1px solid var(--rule); border-radius: 0.75rem; background: var(--paper-2); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; padding: 0.75rem 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { padding: 0.4rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 0.84rem/1.3 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { color: #12100d; } }

.pubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.pub { position: relative; display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 0.9rem; transition: transform 0.3s var(--nm-ease), box-shadow 0.3s, border-color 0.3s; }
.pub:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); box-shadow: 0 18px 40px -26px rgb(29 26 22 / 0.5); }
.pub[hidden] { display: none; }
.pub__link { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 1.25rem 1.3rem 0.8rem; color: inherit; text-decoration: none; border-radius: inherit; }
.pub__date { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.pub__title { font: 600 1.28rem/1.3 var(--serif); color: var(--ink); }
.pub__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.4rem; font-size: 0.84rem; color: var(--muted); }
.pub__venue { font-style: italic; font-family: var(--serif); font-size: 1rem; }
.pub__read { color: var(--accent); font-weight: 600; }
.pub__link:hover .pub__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.pub__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0 1.3rem 1.2rem; list-style: none; }
.pub__tags li { padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-weight: 500; }
.pubs-empty { margin: 1.5rem 0 0; color: var(--muted); text-align: center; }
.link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── Motto ── */
.motto { padding: clamp(4rem, 10vw, 6rem) 0; text-align: center; }
.motto blockquote { margin: 0; font: italic 500 clamp(1.5rem, 4vw, 2.2rem)/1.3 var(--serif); color: var(--ink-2); }
.motto blockquote::before, .motto blockquote::after { content: ""; display: block; width: 3rem; height: 1px; margin: 1.5rem auto; background: var(--gold); }
