/* Ashish N. portfolio: static copy of the Wix one-page site.
   Sizes in the clamp() calls top out at the Wix desktop values at 1440 px. */

:root {
  --yellow: #fde68a;
  --hl: #fef3d8;
  --ink: #111111;
  --muted: #6b6b6b;
  --body2: #3a3a3a;
  --line: #e5e5e5;
  --bg: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 72px;
  --wrap: 1296px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p { margin: 0; }
a { color: inherit; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 100px 0 45px;
}
.logo {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 1.875vw, 27px); line-height: 1.2;
  text-decoration: none; color: var(--ink);
}
.nav { display: flex; gap: clamp(28px, 6.4vw, 92px); }
.nav a, .menu-panel a {
  font-weight: 700; font-size: clamp(15px, 1.17vw, 16.875px); line-height: 1.7;
  text-decoration: none; text-transform: lowercase;
  padding: 0 4px; transition: background-color .15s ease;
}
.nav a:hover, .nav a:focus-visible { background: var(--yellow); }

/* phone menu (details/summary, no script needed to open) */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  width: 32px; height: 32px; background: var(--yellow);
  display: grid; place-content: center; gap: 5px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2.5px; background: var(--ink); transition: transform .15s ease, opacity .15s ease; }
.menu[open] summary span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: 44px; z-index: 20;
  min-width: 200px; background: #fff;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 10px 0; display: flex; flex-direction: column;
}
.menu-panel a { padding: 8px 22px; font-size: 18px; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--yellow); }

/* ---------- buttons: black offset shadow, press into it on hover ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 36px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(14px, 1.09vw, 15.75px); line-height: 1.4;
  text-transform: lowercase; text-decoration: none; text-align: center;
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover, .btn:focus-visible, .btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.btn--lg { min-height: 62px; padding: 15px 34px; font-size: clamp(16px, 1.25vw, 18px); font-weight: 400; }
.btn--lg.btn--bold { font-weight: 700; }
.btn--yshadow { box-shadow: 6px 6px 0 var(--yellow); }
.btn--yshadow:hover, .btn--yshadow:focus-visible, .btn--yshadow:active { box-shadow: 0 0 0 var(--yellow); }
.btn--work { min-width: 214px; }
.btns { display: flex; flex-wrap: wrap; gap: 22px 28px; }

/* ---------- shared type ---------- */
.h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 4.06vw, 58.5px); line-height: 1.1; }
.hl { background: var(--hl); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: clamp(16px, 1.33vw, 19.125px); line-height: 1.7; }
.eyebrow {
  font-size: clamp(12px, .94vw, 13.5px); line-height: 1.4;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
section[id] { scroll-margin-top: 16px; }

/* ---------- hero ---------- */
.hero {
  margin: 27px 27px 0;
  background: var(--yellow);
  min-height: 721px;
  display: grid; grid-template-columns: minmax(0, 720px) auto; justify-content: space-between; align-items: center;
  gap: 40px;
  padding: 60px 81px 60px 83px;
}
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4.53vw, 65.25px); line-height: 1.15; }
.hero .lead { max-width: 588px; margin-top: 30px; }
.hero .btn { margin-top: 40px; }
.portrait {
  width: clamp(240px, 26.7vw, 385px); aspect-ratio: 1;
  border: 8px solid #fff; border-radius: 50%; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about ---------- */
.about { padding: 108px 0 103px; }
.about .wrap { display: grid; grid-template-columns: 486px minmax(0, 1fr); align-items: start; }
.about .lead { max-width: 812px; }
.about .btn { margin-top: 36px; }

/* ---------- work ---------- */
.work { padding: 108px 0 40px; }
.work-intro { max-width: 780px; margin-top: 19px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; }
.items { margin-top: 134px; display: grid; gap: 154px; }
.item { display: grid; grid-template-columns: 676fr 547fr; gap: 76px; align-items: center; }
.item--text-left { grid-template-columns: 547fr 676fr; }
.item--text-left .info { order: -1; }
.shot {
  display: block; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot img { width: 100%; aspect-ratio: 1440 / 900; object-fit: contain; }
a.shot:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
.item h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.44vw, 49.5px); line-height: 1.15; margin-top: 17px; }
.item h3 a { text-decoration: none; }
.item h3 a:hover, .item h3 a:focus-visible { background: var(--yellow); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li {
  background: var(--yellow); font-weight: 700;
  font-size: clamp(12px, .94vw, 13.5px); line-height: 1.4; padding: 4px 11px;
}
.item .desc { margin-top: 38px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; }
.item .btns { margin-top: 26px; }

/* ---------- what I do ---------- */
.skills { padding: 150px 0 108px; }
.skills .wrap { display: grid; grid-template-columns: 515px minmax(0, 1fr); align-items: start; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 52px; }
.skill::before { content: ""; display: block; width: 48px; height: 10px; background: var(--yellow); margin-bottom: 20px; }
.skill h3 { font-weight: 700; font-size: clamp(18px, 1.56vw, 22.5px); line-height: 1.4; }
.skill p { margin-top: 13px; color: var(--muted); font-size: clamp(16px, 1.17vw, 16.875px); line-height: 1.7; }

/* ---------- results ---------- */
.results { padding: 108px 0; }
.results .sub { margin-top: 19px; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; }
.cards { margin-top: 62px; max-width: 1240px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 31px 30px; }
.card { background: var(--yellow); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 30px 30px 32px; }
.card .num { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 3.75vw, 54px); line-height: 1.1; }
.card .what { margin-top: 11px; font-weight: 700; font-size: clamp(16px, 1.33vw, 19.125px); line-height: 1.4; }
.card .how { margin-top: 11px; color: var(--body2); font-size: clamp(16px, 1.17vw, 16.875px); line-height: 1.6; }

/* ---------- contact ---------- */
.contact { padding: 27px; }
.contact-box {
  background: var(--yellow); min-height: 345px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 43px; align-items: center;
  padding: 56px 72px;
}
.contact .lead { max-width: 602px; }
.contact .btns { margin-top: 36px; gap: 22px 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 10px 36px 56px; color: #646464; font-size: clamp(14px, 1.09vw, 15.75px); }

/* ---------- screens pages ---------- */
.screens-head { width: min(1125px, 100% - 2 * var(--gutter)); margin: 27px auto 0; }
.screens-head h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 3.44vw, 49.5px); line-height: 1.15; margin-top: 20px; }
.screens-head .intro { max-width: 788px; margin-top: 22px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; }
.screens-head .btns { margin-top: 34px; }
.shots { width: min(1125px, 100% - 2 * var(--gutter)); margin: 70px auto 0; display: grid; gap: 90px; }
.shots figure { margin: 0; }
.shots .narrow { max-width: 760px; }
.screens-foot { width: min(1125px, 100% - 2 * var(--gutter)); margin: 90px auto 108px; }

.notfound { width: min(780px, 100% - 2 * var(--gutter)); margin: 120px auto 160px; }
.notfound p { margin-top: 20px; }
.notfound .btn { margin-top: 36px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .site-header { padding: 0 48px 0 40px; }
  .hero { padding: 60px 56px 60px 64px; min-height: 620px; }
  .about .wrap, .skills .wrap { grid-template-columns: 34% minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --gutter: 40px; }
  .nav { display: none; }
  .menu { display: block; }
  .site-header { padding: 0 40px; }
  .hero { grid-template-columns: 1fr; justify-items: start; min-height: 0; padding: 56px 48px; margin: 16px 24px 0; gap: 28px; }
  .hero .portrait { order: 1; width: min(420px, 100%); margin: 8px 0; }
  .hero .text { display: contents; }
  .hero h1 { order: 0; }
  .hero .lead { order: 2; margin-top: 0; }
  .hero .btn { order: 3; margin-top: 8px; }
  .about .wrap, .skills .wrap { grid-template-columns: 1fr; gap: 24px; }
  .about, .work, .results { padding-top: 80px; }
  .about { padding-bottom: 72px; }
  .skills { padding: 96px 0 72px; }
  .skill-grid { gap: 44px 40px; }
  .work { text-align: center; }
  .work .h2 { text-align: center; }
  .work-intro { margin-inline: auto; }
  .items { margin-top: 64px; gap: 88px; }
  .item, .item--text-left { grid-template-columns: 1fr; gap: 32px; max-width: 680px; margin-inline: auto; }
  .item--text-left .info { order: 0; }
  .item h3 { margin-top: 12px; }
  .tags { justify-content: center; }
  .item .desc { margin-top: 22px; }
  .item .btns { justify-content: center; margin-top: 30px; }
  .contact { padding: 24px; }
  .contact-box { grid-template-columns: 1fr; gap: 20px; padding: 48px; min-height: 0; }
  .contact .btns { margin-top: 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }
  .site-header { height: 80px; padding: 0 32px 0 35px; }
  .hero { margin: 16px 24px 0; padding: 28px 24px 40px; gap: 32px; }
  .hero .portrait { width: 100%; margin: 0; }
  .hero .btn { margin-top: 4px; }
  .about { padding: 64px 0 64px; }
  .about .wrap { gap: 16px; }
  .about .btn { margin-top: 32px; }
  .work { padding-top: 72px; }
  .work-intro { margin-top: 16px; }
  .items { margin-top: 40px; gap: 72px; }
  .item, .item--text-left { gap: 28px; }
  .item h3 { margin-top: 10px; }
  .tags { margin-top: 16px; gap: 8px; }
  .tags li { padding: 4px 10px; }
  .item .desc { margin-top: 18px; }
  .item .btns { flex-direction: column; align-items: center; gap: 22px; margin-top: 26px; }
  .skills { padding: 88px 0 56px; }
  .skills .wrap { gap: 32px; }
  .skill-grid { grid-template-columns: 1fr; gap: 36px; }
  .skill::before { margin-bottom: 16px; }
  .skill p { color: var(--ink); margin-top: 10px; }
  .results { padding: 64px 0 72px; }
  .results .sub { margin-top: 14px; }
  .cards { margin-top: 36px; grid-template-columns: 1fr; gap: 28px; }
  .card { padding: 24px 24px 26px; }
  .card .what, .card .how { margin-top: 8px; }
  .contact { padding: 0 24px 40px; }
  .contact-box { padding: 32px 24px 40px; gap: 18px; }
  .contact .btns { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 22px; }
  .site-footer { padding: 24px 24px 48px; }
  .screens-head { margin-top: 24px; }
  .screens-head .btns { flex-direction: column; align-items: flex-start; gap: 22px; }
  .shots { margin-top: 48px; gap: 48px; }
  .screens-foot { margin: 56px auto 72px; }
}
