/* Gillian Pinsky portfolio. Plain CSS, no build step. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16202a;
  --muted: #5a6672;
  --line: #e3e0d8;
  --accent: #1f6f78;      /* deep teal */
  --accent-soft: #e4f0f0;
  --warm: #c8632b;        /* copper */
  --radius: 10px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--warm); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8em; display: block;
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .nav { gap: 14px; font-size: .88rem; }
  .nav .hide-sm { display: none; }
}

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

/* Hero (home) */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); font-size: .95rem;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 320px; }
}

/* Project cards */
.featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; margin-bottom: 28px;
}
.featured img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.featured .body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured:hover h3 { color: var(--accent); }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } .featured img { min-height: 0; aspect-ratio: 4/3; } .featured .body { padding: 24px; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(22, 32, 42, .08); }
.card:hover h3 { color: var(--accent); }
.card .thumb { aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb.contain img { object-fit: contain; padding: 14px; }
.card .body { padding: 20px 22px 24px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .8em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-family: var(--mono); font-size: .72rem; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

/* About / skills / resume */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.skill-group { margin-bottom: 18px; }
.skill-group h3 { font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5em; font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.timeline .when { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.timeline strong { display: block; }

/* Contact */
.contact { background: var(--ink); color: #f2efe8; }
.contact h2 { color: #fff; }
.contact a { color: #9fd6d9; }
.contact .btn { border-color: #f2efe8; color: #f2efe8; }
.contact .btn:hover { background: #f2efe8; color: var(--ink); }
.contact .btn.primary { background: #9fd6d9; border-color: #9fd6d9; color: var(--ink); }

/* Project pages */
.project-hero { padding: 56px 0 40px; }
.back { font-size: .9rem; text-decoration: none; display: inline-block; margin-bottom: 20px; }
.meta { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin: 0 0 1em; }
.meta strong { color: var(--ink); font-weight: 600; }
.pitch { font-size: 1.25rem; color: var(--muted); max-width: 40em; }
.hero-img { border-radius: var(--radius); overflow: hidden; margin-top: 32px; border: 1px solid var(--line); background: #fff; }
.hero-img img { width: 100%; max-height: 640px; object-fit: cover; }
.hero-img.contain img { object-fit: contain; max-height: 560px; padding: 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 32px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; margin-bottom: 4px; }
.stat span { font-size: .9rem; color: var(--muted); }

.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2em 0; font-family: var(--mono); font-size: .92rem; }

figure { margin: 28px 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
figcaption b { color: var(--ink); }
.fig-title { font-weight: 650; margin-bottom: 10px; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery.contain img { object-fit: contain; padding: 10px; }
.gallery.tall img { aspect-ratio: 3/4; }
.gallery.natural img { aspect-ratio: auto; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.4em; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; background: #f4f2ec; }
.table-wrap { overflow-x: auto; }
.ok { color: #2a7a3b; font-weight: 600; }
.miss { color: #b3412b; font-weight: 600; }

.video-link { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-link::after {
  content: "▶  Watch the demo animation"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(22, 32, 42, .85); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.video-link:hover::after { background: var(--accent); }
video { border-radius: var(--radius); width: 100%; background: #000; }

.next-project { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Footer */
.site-footer { padding: 32px 0; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Short story rows on project pages: text beside one picture, alternating sides */
.story { padding: 24px 0 56px; }
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.row:nth-child(even) .row-text { order: 2; }
.row-text h2 { font-size: 1.6rem; margin: 0 0 12px; }
.row-text p, .row-text li { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.row-text ul { padding-left: 1.2em; margin: 0; }
.row-media { margin: 0; }
.row-media img, .row-media video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: block; max-height: 460px; object-fit: cover; }
.row.contain .row-media img { object-fit: contain; padding: 12px; }
.row-media figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.story .gallery { margin-top: 40px; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .row:nth-child(even) .row-text { order: 0; }
}
.hero-img img { object-position: center 70%; }
.row-media img { object-position: center 65%; }
