:root {
  --bg: #000000;
  --text: #EDEDE8;
  --text-dim: #8E8E86;
  --rule: #1a1a17;
  --green: #2E7D4F;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: #fff; }

a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1, h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

/* ---------- Nav ---------- */

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 28px 24px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topnav a {
  color: var(--text);
  transition: opacity 0.25s ease;
  opacity: 0.65;
}

.topnav a:hover { opacity: 1; }

.topnav a.active { opacity: 1; }

/* ---------- Home ---------- */

.home-wrap {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-wrap + .site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

#dots-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

.home-name {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(22px, 4.2vw, 44px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
  text-shadow: 0 0 24px rgba(46, 125, 79, 0.35);
}

.home-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.home-subtitle {
  margin-top: -10px;
  font-family: 'EB Garamond', serif;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-align: center;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  margin-top: 6px;
  border: 1px solid var(--green);
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(46, 125, 79, 0.08);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.linkedin-btn:hover {
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 18px rgba(46, 125, 79, 0.45);
}

.linkedin-btn svg { flex-shrink: 0; }

/* ---------- Utility ---------- */

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

/* ---------- Shell ---------- */

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 32px 100px;
}

.page-eyebrow {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hairline {
  border: none;
  border-top: 1px solid var(--rule);
  margin-bottom: 48px;
}

/* ---------- Rows ---------- */

.row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.row-tile {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04101f;
  padding: 18px;
}

.row-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.row-body h2 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 16px; line-height: 1.3; letter-spacing: 0.02em; }

.row-body .tag {
  display: block;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.row-body p { font-size: 18px; line-height: 1.6; max-width: 600px; margin-bottom: 12px; }

.row-body p.dim { color: var(--text-dim); font-style: italic; }

.row-body a.inline-link {
  color: var(--green);
  border-bottom: 1px solid var(--green);
}

/* ---------- Contact ---------- */

.contact-text p {
  font-size: 19px;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 26px;
}

.contact-text strong { color: var(--green); }

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

.site-footer {
  text-align: center;
  padding: 0 24px 60px;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 720px) {
  .topnav { gap: 26px; font-size: 13px; padding: 22px 16px; }
  .row { grid-template-columns: 1fr; gap: 22px; }
  .shell { padding: 100px 20px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  #dots-canvas { display: none; }
}

/* ---------- Hashtag ---------- */

.page-hashtag {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #000000;
  user-select: none;
  pointer-events: none;
}
