/* portfolio.dsilvap.com · holding page
   Greyscale with one accent (ash sage), a modern serif, hairline rules, room to breathe. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --paper: #F6F5F1;
  --ink: #2B2B2A;
  --muted: #6B6A66;
  --line: #D9D7D0;
  --accent: #4F6F64;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121312;
    --ink: #ECEAE4;
    --muted: #A3A19A;
    --line: #2E2F2D;
    --accent: #9CC3B4;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -48px;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  font-size: 14px; text-decoration: none; z-index: 10;
}
.skip:focus { top: 12px; }

/* ── Frame ───────────────────────────────────────────── */

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1160px;
  margin: 0 auto;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

.masthead,
.colophon {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.masthead {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.monogram {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}

.masthead-label,
.colophon p {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.colophon {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  display: grid;
  gap: 32px;
  padding: 32px 0 56px;
}

.portrait {
  position: relative;
  margin: 0;
  width: 74%;                 /* phone: leaves the name and the line above the fold */
  max-width: 320px;
  aspect-ratio: 4 / 5;
  padding: 10px;              /* room for the crop marks */
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.04) brightness(1.01);
  transition: filter 1.4s var(--ease);
  background: var(--line);
}

@media (hover: hover) {
  .portrait:hover img { filter: grayscale(0) contrast(1) brightness(1); }
}

/* Thin crop marks at each corner, like a print proof */
.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--muted);
  border-style: solid;
  border-width: 0;
  opacity: .7;
}
.crop--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.copy { max-width: 34rem; }

.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 15vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.015em;
}

.rule {
  width: 56px;
  height: 0;
  margin: 28px 0 26px;
  border: 0;
  border-top: 1px solid var(--accent);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 6.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.005em;
}

.lede em {
  font-style: italic;
  color: var(--accent);
}

.note {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin-top: 36px;
  padding: 14px 0 8px;        /* comfortable tap height */
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.cta-arrow {
  flex: none;
  width: 20px;
  height: 12px;
  color: var(--accent);
  transition: transform .35s var(--ease);
}

.cta:hover,
.cta:focus-visible { color: var(--accent); }
.cta:hover .cta-arrow,
.cta:focus-visible .cta-arrow { transform: translateX(4px); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ── Larger screens ─────────────────────────────────── */

@media (max-width: 599px) {
  /* phone: the link reads as one full-width row with the arrow at its end */
  .cta { display: flex; justify-content: space-between; width: 100%; }
}

@media (min-width: 600px) {
  .hero { padding: 56px 0 72px; }
  .portrait { width: 100%; max-width: 400px; }
}

@media (min-width: 880px) {
  .hero {
    flex: 1;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: clamp(48px, 7vw, 112px);
    padding: 64px 0;
  }
  /* keep the whole page on one laptop screen */
  .portrait { max-width: min(100%, calc((100vh - 280px) * .8)); justify-self: center; }
  .name { font-size: clamp(5rem, 8.2vw, 7.5rem); }
  .rule { margin: 36px 0 32px; }
}

/* ── Arrival ─────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .portrait, .name, .rule, .lede, .note, .cta {
    animation: rise 1s var(--ease) both;
  }
  .portrait { animation-name: fade; animation-duration: 1.4s; }
  .name { animation-delay: .15s; }
  .rule { animation-name: draw; animation-delay: .35s; transform-origin: left; }
  .lede { animation-delay: .45s; }
  .note { animation-delay: .55s; }
  .cta  { animation-delay: .7s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

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