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

/* 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 {
  /* Not pure black — a soft near-black with a trace of blue in it, so the
     page reads as ink rather than as a switched-off screen. */
  --bg:    #0c0c10;
  --ink:   #f7f7f4;
  --muted: #a8a8a3;   /* 8.2:1 on the ground — was 6.4:1 */
  --faint: #63635e;
  --accent: #d65689;  /* the petal — 5.2:1, and the only colour on the page */
  --line:  rgba(247, 247, 244, 0.2);
  --rule:  rgba(247, 247, 244, 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 field -------------------------------------------------------- */

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

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

/* The masthead and footer are siblings of <main> so they expose the banner
   and contentinfo landmarks — which means the column has to be set on all
   three rather than on main alone. */
.masthead,
main,
footer {
  position: relative;
  z-index: 2;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.masthead { padding-top: clamp(2.5rem, 7vw, 5rem); }
main       { padding-top: 0; }
footer     { padding-bottom: 4rem; }

/* Holds the field back behind the text column. Feathered at the sides so
   there is no hard edge, and dropped on phones where the column is the
   whole screen. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--measure));
  z-index: 1;
  pointer-events: none;
  background: var(--bg);
  opacity: 0.72;
  -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(--accent); }
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: 0;
  background-image: linear-gradient(rgba(247, 247, 244, 0.26),
                                    rgba(247, 247, 244, 0.26));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: bottom left;
  font-size: 0.875rem;
  letter-spacing: 0;
  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;
  margin: 2.25rem 0;
}

.portrait {
  width: 140px;
  height: 140px;
  /* The file is the full frame; the square framing is done here, so the
     crop can be retuned without re-exporting the image. */
  object-fit: cover;
  object-position: 47% 27%;
  display: block;
  flex: none;
}

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

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

/* Monument Extended, as before — but sentence case, so it reads as a
   heading rather than as the tracked-caps eyebrow every other label used
   to share. */
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 1.75rem;
  padding-bottom: 0.75rem;
  border: 0;
  background-image: linear-gradient(rgba(247, 247, 244, 0.26),
                                    rgba(247, 247, 244, 0.26));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: bottom left;
}

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

.about p {
  max-width: 38rem;
  margin: 0 0 1.1rem;
}

/* The first two paragraphs are the lede and carry equal weight; the third
   is the ask, and steps up. */
.about p.lede,
.about p {
  font-size: 1.3125rem;
  line-height: 1.45;
  letter-spacing: -0.003em;
  margin-bottom: 1.4rem;
}

/* The ask carries by weight, colour and isolation rather than by size —
   and it is the action itself, not a sentence about it. */
.about p.cta {
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 32rem;
  margin-top: 3.25rem;
  margin-bottom: 0;
  color: var(--ink);
}
.about p.cta a {
  color: var(--accent);
  text-decoration-color: rgba(214, 86, 137, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.about p.cta a:hover { text-decoration-color: var(--accent); }
.about { margin-top: 2.25rem; }

/* ---- 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: 0;
  background-image: linear-gradient(rgba(247, 247, 244, 0.26),
                                    rgba(247, 247, 244, 0.26));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top left;
}
.work > li:first-child { background-image: none; padding-top: 0; }

.when {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #8a8a85;              /* 5.6:1 — reference, not content */
  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.28rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 34rem;
}
.work ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--faint);
}

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



.contact-body { padding-left: var(--col); }

.email-line {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
}
.email-line a {
  color: var(--accent);
  text-decoration-color: rgba(214, 86, 137, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.email-line a:hover { text-decoration-color: var(--accent); }

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

footer { margin-top: clamp(3rem, 7vw, 4.5rem); }

.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border: 0;
  background-image: linear-gradient(rgba(247, 247, 244, 0.26),
                                    rgba(247, 247, 244, 0.26));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: top left;
  font-size: 0.9375rem;
  letter-spacing: 0;
}

/* 24px minimum target for the standalone links (WCAG 2.5.8). */
.socials a {
  display: inline-block;
  padding: 0.45rem 0.1rem;
}


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

/* On high-density screens a half-pixel rule is a true hairline; elsewhere it
   would round away, so those keep the 1px version above. */
@media (min-resolution: 2dppx) {
  .meta, h2, .work > li, .socials { background-size: 100% 0.5px; }
}

@media (max-width: 34rem) {
  :root { --col: 4.5rem; }
  /* On a phone the column is the whole screen, so the scrim would hide the
     field entirely; the dots are dim enough to sit behind type unaided. */
  body::before { display: none; }
  .about p, .about p.lede { font-size: 1.1875rem; }
  .about p.cta { font-size: 1.1875rem; }

  /* Side by side, the two meta items each wrap to two lines; stacked they
     read as one clean pair. */
  .meta { display: block; }
  .meta span { display: block; }
  .meta span + span { margin-top: 0.3rem; }
  .masthead-foot { gap: 1rem; }
  .portrait { width: 88px; height: 88px; }
  .work > li { grid-template-columns: 1fr; gap: 0.4rem; }
  .when { padding-top: 0; }
  .contact-body { padding-left: 0; }
}

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