/* Maria Mishurenko — mishurenko.me
   One page, no build step, no dependencies. Monochrome Bauhaus on black:
   a strict two-column grid, hairline rules, and a slow physics sandbox
   drifting behind the type. */

/* PP Monument Extended — display. PP Neue Montreal — text.
   Subsetted to Latin and served as woff2. */
@font-face {
  font-family: "Monument Extended";
  src: url("fonts/monument-extended-black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Monument Extended";
  src: url("fonts/monument-extended-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/neue-montreal-book.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/neue-montreal-regular.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/neue-montreal-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg:    #000000;
  --ink:   #f4f4f2;
  --muted: #8e8e8a;
  --faint: #4e4e4b;
  --line:  rgba(244, 244, 242, 0.16);
  --rule:  rgba(244, 244, 242, 0.9);

  --display: "Monument Extended", "Arial Black", system-ui, sans-serif;
  --text:    "Neue Montreal", Inter, system-ui, -apple-system, sans-serif;

  --measure: 50rem;
  --col: 7.5rem;          /* the year column — the spine of the grid */
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ---- the sandbox ------------------------------------------------------ */

#sandbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ---- page ------------------------------------------------------------- */

main {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 4rem;
}

/* Scrim: shapes stay visible but drop back behind the type. Feathered at
   the sides so there's no hard rectangle edge against the sandbox. */
main::before {
  content: "";
  position: absolute;
  inset: -2rem 0;
  z-index: -1;
  background: var(--bg);
  opacity: 0.74;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

a {
  color: var(--ink);
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- masthead --------------------------------------------------------- */

.meta {
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.75rem, 6.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

.masthead-foot {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 2rem;
}

.portrait {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  flex: none;
}

/* ---- sections --------------------------------------------------------- */

section { margin-top: clamp(3.5rem, 8vw, 5.5rem); }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}

.about p {
  max-width: 38rem;
  margin: 0 0 1.1rem;
}
.about { margin-top: clamp(2.5rem, 6vw, 3.5rem); }

/* ---- work ------------------------------------------------------------- */

.work { list-style: none; margin: 0; padding: 0; }

.work > li {
  display: grid;
  grid-template-columns: var(--col) 1fr;
  gap: 0 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.work > li:first-child { border-top: none; padding-top: 0; }

.when {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.2rem;
}

.work ul { margin: 0.55rem 0 0; padding: 0; list-style: none; }

.work ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.work ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--faint);
}

/* ---- recent / contact -------------------------------------------------- */

.recent-body,
.email-line {
  display: block;
  margin: 0;
  padding-left: var(--col);
}
.recent-body p { margin: 0; color: var(--muted); max-width: 32rem; }
.recent-body h3 { font-size: 1.375rem; }

.email-line { font-size: 1.125rem; }

/* ---- footer ----------------------------------------------------------- */

footer { margin-top: clamp(3.5rem, 8vw, 5rem); }

.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.colophon {
  margin: 1.75rem 0 0;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.colophon a { color: inherit; text-decoration-color: transparent; }
.colophon a:hover { text-decoration-color: var(--faint); }

/* ---- narrow ----------------------------------------------------------- */

@media (max-width: 34rem) {
  :root { --col: 4.5rem; }
  .masthead-foot { gap: 1rem; }
  .portrait { width: 88px; height: 88px; }
  .work > li { grid-template-columns: 1fr; gap: 0.4rem; }
  .when { padding-top: 0; }
  .recent-body, .email-line { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
