/* ============================================================
   Ara Krashian — portfolio
   Styles only. Your details live in js/details.js and your
   projects in js/projects.js. Edit there, not in the markup.
   ============================================================ */

:root{
  --ink:   #171310;   /* warm near-black — text, image blocks */
  --red:   #DC2412;   /* the one accent                       */
  --page:  #FFFFFF;
  --line:  #E3DED6;
  --muted: #6B645C;

  --s0: .8125rem;
  --s1: 1.0625rem;
  --s2: 1.3125rem;
  --s3: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --s4: clamp(2.6rem, 1.4rem + 4.6vw, 5.5rem);

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1180px;

  --font: "Geist", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:65px; /* height of the sticky header, so it doesn't cover section titles */
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

body{
  margin:0;
  font-family:var(--font);
  font-size:var(--s1);
  line-height:1.6;
  color:var(--ink);
  background:var(--page);
  font-synthesis-weight:none;
}

h1,h2,h3,p,ul,figure{ margin:0; }
ul{ padding:0; list-style:none; }
a{ color:inherit; }
img{ max-width:100%; display:block; }

:focus-visible{ outline:3px solid var(--red); outline-offset:3px; }

.wrap{ max-width:var(--max); margin-inline:auto; padding-inline:var(--gutter); }

.display{
  font-weight:600;
  line-height:1.02;
  letter-spacing:-.035em;
  text-wrap:balance;
}

/* ---------- header ---------- */

.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header__inner{ display:flex; align-items:center; min-height:64px; gap:2rem; }
.wordmark{
  font-weight:600; letter-spacing:-.025em; font-size:1.0625rem;
  text-decoration:none; margin-right:auto;
}
.site-nav{ display:flex; gap:1.5rem; }
.site-nav a{ font-size:var(--s0); font-weight:500; color:var(--muted); text-decoration:none; }
.site-nav a:hover{ color:var(--red); }

/* ---------- hero ---------- */

.hero{ padding-block:clamp(4rem, 11vw, 9rem) clamp(3rem, 6vw, 5rem); }
.hero__name{
  font-size:var(--s0); font-weight:500; color:var(--muted);
  letter-spacing:.01em; margin-bottom:1.75rem;
}
.hero__statement{ font-size:var(--s4); max-width:21ch; }
.hero__lead{
  margin-top:2rem; font-size:var(--s2); color:var(--muted);
  max-width:48ch; line-height:1.5;
}
.hero__meta{
  margin-top:3rem; padding-top:1.25rem; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:.5rem 3rem;
  font-size:var(--s0); color:var(--muted); font-weight:500;
}

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

.work{ padding-bottom:clamp(3rem,6vw,5rem); }
.work__title{
  font-size:var(--s0); font-weight:600; color:var(--muted);
  padding-bottom:1rem; border-bottom:1px solid var(--ink);
}

.project{
  display:grid;
  grid-template-columns:5fr 7fr;
  gap:clamp(1.5rem, 4vw, 4rem);
  padding-block:clamp(2.5rem, 5vw, 4.5rem);
  border-bottom:1px solid var(--line);
  align-items:start;
}
.project__visual{
  aspect-ratio:4/3;
  background:var(--ink);
  border-radius:4px;
  display:grid; place-items:center;
  padding:1.5rem;
  overflow:hidden;
}
.project__visual--image{ padding:0; } /* a screenshot fills the whole block */
.project__visual img{ width:100%; height:100%; object-fit:cover; }
.project__visual span{
  color:#fff; font-weight:600; font-size:var(--s3);
  letter-spacing:-.03em; line-height:1.1; text-align:center;
}
.project__name{ font-size:var(--s3); font-weight:600; letter-spacing:-.03em; line-height:1.1; }
.project__body{ margin-top:1rem; color:var(--muted); max-width:52ch; }
.project__meta{
  margin-top:1.5rem; display:flex; flex-wrap:wrap; gap:.5rem 1.75rem;
  font-size:var(--s0); font-weight:500; color:var(--muted);
}
.project__status{ color:var(--red); }
.project__link{
  display:inline-block; margin-top:1.5rem;
  font-size:var(--s0); font-weight:600; text-decoration:none;
  border-bottom:2px solid var(--red); padding-bottom:2px;
}
.project__link:hover{ color:var(--red); }

@media (max-width: 800px){
  .project{ grid-template-columns:1fr; }
}

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

.contact{
  background:var(--red); color:#fff;
  padding-block:clamp(3.5rem, 8vw, 6.5rem);
}
.contact__title{ font-size:var(--s4); max-width:16ch; }
.contact__lead{ margin-top:1.5rem; font-size:var(--s2); max-width:40ch; line-height:1.5; color:#fff; }
.contact__list{
  margin-top:3rem; display:flex; flex-wrap:wrap; gap:1.25rem 3.5rem;
  font-size:var(--s2); font-weight:600;
}
.contact__list a{ text-decoration:none; border-bottom:2px solid rgba(255,255,255,.45); padding-bottom:3px; overflow-wrap:anywhere; }
.contact__list a:hover{ border-color:#fff; }

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

.site-footer{
  padding-block:2rem 2.5rem;
  font-size:var(--s0); color:var(--muted);
  display:flex; flex-wrap:wrap; gap:.5rem 2rem;
}
