/*
  Yash Majithia — static personal site
  Design direction: research notebook + hand-drawn/dashed motif.
*/
:root {
  --ink: #111516;
  --muted: #7A7978;
  --paper: #FCFCFA;
  --soft-paper: #F6F8F6;
  --line: #D9DEDA;
  --mint: #87CBAC;
  --mint-bright: #90FFDC;
  --sky: #8AC4FF;
  --sky-light: #8DE4FF;
  --link: #0B6870;
  --link-hover: #053D42;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--mint);
}
a:hover { color: var(--link-hover); text-decoration-style: dashed; }
a:focus-visible {
  outline: 2px dashed var(--link);
  outline-offset: 4px;
}

.site-header {
  width: min(980px, calc(100% - 40px));
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  padding-bottom: 3px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--mint);
}

.page {
  width: min(980px, calc(100% - 40px));
  margin: 54px auto 0;
}
.narrow-page {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.home-page { margin-top: 46px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px);
  gap: 56px;
  align-items: start;
}
.eyebrow,
.mono-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-top: 0; }
p { margin: 0 0 1.05em; }
.lede {
  max-width: 680px;
  font-size: clamp(1.32rem, 2.4vw, 2.05rem);
  line-height: 1.35;
  white-space: pre-line;
}
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.3em; }

.portrait-card {
  margin: 0;
  border: 1px dashed var(--line);
  padding: 10px;
  background: #fff;
  transform: rotate(0.4deg);
}
.portrait-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95);
}
.now-card,
.section-block {
  max-width: 720px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.now-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
}
.now-card p { margin: 0; color: #2D3434; }
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li {
  padding: 12px 0;
  border-top: 1px dashed rgba(122, 121, 120, 0.28);
}
.link-list li:first-child { border-top: 0; }
.link-list span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.big-links { margin-top: 12px; }
.big-links a { font-size: 1.12rem; }

.site-footer {
  width: min(980px, calc(100% - 40px));
  margin: 72px auto 36px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-rule {
  flex: 1;
  border-top: 1px dashed var(--line);
}

::selection {
  background: rgba(144, 255, 220, 0.55);
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header {
    width: calc(100% - 28px);
    margin-top: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .nav { flex-wrap: wrap; gap: 14px; }
  .page { width: calc(100% - 28px); margin-top: 34px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .portrait-card { max-width: 320px; transform: none; }
  .now-card { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { width: calc(100% - 28px); margin-top: 54px; }
}
