:root {
  color-scheme: light;
  --paper: #f1e5d3;
  --ink: #38251d;
  --rust: #ae4d2e;
  --sand: #d5b289;
  --rule: #b99d83;
  --muted: #715c50;
  --warm-white: #faf3e7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Golos Text", Arial, sans-serif; }
img { display: block; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: -72px;
  left: 16px;
  padding: 11px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.site {
  display: flex;
  flex-direction: column;
  width: min(100%, 1510px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 74px);
  border-top: 14px solid var(--rust);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 22px 0 20px;
  border-bottom: 2px solid var(--ink);
}
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand span { font-size: 1.64rem; font-weight: 900; letter-spacing: .01em; line-height: 1; }
.brand small, .header-right, .kicker, .socials-head, .row-index, .row-count, .portrait-caption, .footer {
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.brand small { color: var(--rust); font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.header-right { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-align: right; }
.brand:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }

.layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: clamp(38px, 5.2vw, 82px);
  align-items: start;
  padding: clamp(34px, 5vh, 58px) 0 34px;
}
.portrait { width: 100%; max-width: 550px; margin: 0; }
.portrait-frame {
  padding: 9px;
  overflow: hidden;
  background: var(--rust);
}
.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transform: translate3d(var(--photo-x, 0px), var(--photo-y, 0px), 0) scale(1.025);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.content { min-width: 0; padding-top: 2px; }
.kicker { margin: 0 0 9px; color: var(--rust); font-size: .76rem; font-weight: 600; letter-spacing: .11em; }
.content h1 {
  margin: 0;
  font-size: clamp(5.2rem, 7.5vw, 8rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
}
.content h1 span { color: var(--rust); }
.intro { max-width: 500px; margin: 16px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

.socials { margin-top: clamp(30px, 5.5vh, 54px); }
.socials-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.social-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  min-height: 76px;
  margin-bottom: 6px;
  padding: 6px 9px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rust);
  background: #f8efdf;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.social-row:hover, .social-row:focus-visible { background: var(--rust); border-color: var(--rust); color: var(--warm-white); }
.social-row:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.row-index { color: var(--muted); font-size: .76rem; font-weight: 600; }
.row-platform { min-width: 0; font-size: clamp(1.35rem, 2.15vw, 1.9rem); font-weight: 700; letter-spacing: -.04em; }
.row-count { font-size: clamp(1.03rem, 1.55vw, 1.3rem); font-weight: 600; white-space: nowrap; }
.row-arrow { display: grid; place-items: center; justify-self: end; width: 30px; height: 30px; background: var(--rust); color: var(--warm-white); transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.row-arrow svg { display: block; width: 17px; height: 17px; }
.social-row:hover .row-index, .social-row:focus-visible .row-index { color: rgba(255,255,255,.75); }
.social-row:hover .row-arrow, .social-row:focus-visible .row-arrow { transform: translate(2px, -2px); background: var(--warm-white); color: var(--rust); }

.footer {
  display: flex;
  margin-top: auto;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 23px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; }
  .content h1 { font-size: clamp(4.8rem, 8vw, 6.5rem); }
  .row-platform { font-size: 1.4rem; }
  .social-row { min-height: 70px; }
}

@media (max-width: 760px) {
  .site { padding: 0 20px; border-top-width: 10px; }
  .header { align-items: center; padding: 17px 0 15px; }
  .brand span { font-size: 1.42rem; }
  .brand small { font-size: .65rem; }
  .header-right { display: none; }
  .layout { display: flex; flex-direction: column; gap: 24px; padding: 22px 0 30px; }
  .portrait { max-width: none; }
  .portrait-frame { padding: 6px; }
  .portrait-frame img { height: 220px; aspect-ratio: auto; object-position: center top; transform: none; }
  .portrait-caption { padding: 8px 0; font-size: .66rem; }
  .content { width: 100%; }
  .content h1 { font-size: clamp(4.4rem, 15vw, 6rem); }
  .intro { margin-top: 8px; font-size: .9rem; line-height: 1.45; }
  .socials { margin-top: 24px; }
  .social-row { min-height: 64px; }
  .row-platform { font-size: 1.5rem; }
  .row-count { font-size: 1rem; }
  .footer { padding-bottom: 18px; }
}

@media (max-width: 390px) {
  .site { padding: 0 16px; }
  .brand { gap: 7px; }
  .portrait-frame img { height: 190px; }
  .layout { gap: 18px; }
  .content h1 { font-size: 4.25rem; }
  .socials { margin-top: 19px; }
  .social-row { grid-template-columns: 20px minmax(0, 1fr) auto 24px; gap: 7px; min-height: 59px; padding: 5px 4px; }
  .row-platform { font-size: 1.35rem; }
  .row-count { font-size: .9rem; }
  .row-arrow { width: 24px; height: 24px; }
  .row-arrow svg { width: 15px; height: 15px; }
  .footer { flex-wrap: wrap; }
}

@media (max-width: 330px) {
  .portrait-frame img { height: 155px; }
  .layout { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
