/* ==========================================================================
   Studio Max Redecker — styles
   ========================================================================== */

/* Fonts (self-hosted — no external requests, GDPR-friendly)
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Yeseva One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/yeseva-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Yeseva One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/yeseva-one-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: #fff;
  overflow-x: hidden;
}

body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

/* Visually hidden — present for screen readers & machine parsers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animated background
   ------------------------------------------------------------------------- */
@keyframes gradientShift {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

/* Page shell
   ------------------------------------------------------------------------- */
.page {
  width: calc(100% - 20px);
  min-height: calc(100vh - 20px);
  min-height: calc(100dvh - 20px);
  margin: 10px;
  padding: 160px 20px 80px;
  border-radius: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: linear-gradient(180deg, rgb(255, 245, 200), rgb(200, 245, 200), rgb(255, 245, 200));
  background-size: 100% 400%;
  animation: gradientShift 30s ease infinite;
}

/* Card + banner group — tight internal spacing so they read as one unit */
.group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Personal card
   ------------------------------------------------------------------------- */
.card {
  max-width: 380px;
  width: 100%;
  padding: 0 40px 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  transition: background 250ms ease;
}

@media (hover: hover) {
  .card:hover {
    background: rgba(255, 255, 255, 0.6);
  }
}

.card__photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
  margin-top: -130px;
}

.card__signature {
  width: 294px;
  height: auto;
}

.stats {
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
}

.stat:first-child {
  text-align: right;
  padding-right: 20px;
  border-right: 1px solid #000;
}

.stat:last-child {
  text-align: left;
  padding-left: 20px;
}

.stat__label {
  font-size: 16px;
  color: #3c3c3c;
  letter-spacing: 0.32px;
}

.stat__value {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.4px;
}

.portfolio-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 36px;
  border-radius: 50px 50px 50px 0;
  background: rgb(120, 240, 160);
  color: #000;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.36px;
  text-decoration: none;
  transition: background 250ms ease;
}

@media (hover: hover) {
  .portfolio-btn:hover {
    background: rgb(255, 245, 200);
  }
}

.portfolio-btn:active {
  background: rgb(255, 245, 200);
}

/* Feather banner
   ------------------------------------------------------------------------- */
.feather-banner {
  max-width: 380px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 250ms ease;
}

@media (hover: hover) {
  .feather-banner:hover {
    background: rgba(255, 255, 255, 0.6);
  }
}

/* Touch press (set via JS — survives scroll, unlike CSS :active) */
.card.is-pressed,
.feather-banner.is-pressed {
  background: rgba(255, 255, 255, 0.6);
}

.feather-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
}

.feather-banner__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feather-banner__row1 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: rgb(21, 24, 46);
}

.feather-banner__product {
  font-family: "Yeseva One", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.2px;
  color: rgb(21, 24, 46);
}

.feather-banner__row2 {
  font-size: 12px;
  line-height: 1.35;
  color: rgb(91, 96, 128);
}

.feather-banner__platform {
  font-size: 12px;
  font-weight: 400;
  color: rgb(91, 96, 128);
  text-decoration: underline;
  text-decoration-color: rgba(91, 96, 128, 0.45);
  text-underline-offset: 2px;
  transition: color 200ms ease;
}

@media (hover: hover) {
  .feather-banner__platform:hover {
    color: rgb(120, 90, 220);
    text-decoration-color: currentColor;
  }
}

/* Footer
   ------------------------------------------------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer a {
  font-size: 18px;
  color: #000;
  letter-spacing: 0.36px;
  text-decoration: underline;
}

.footer a:hover {
  opacity: 0.7;
}

/* Fixed brand label
   ------------------------------------------------------------------------- */
.label {
  position: fixed;
  bottom: 30px;
  left: 6px;
  width: 40px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* 404 page
   ------------------------------------------------------------------------- */
.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.error__code {
  font-family: "Yeseva One", Georgia, serif;
  font-size: 72px;
  line-height: 1;
  color: rgb(21, 24, 46);
}

.error__title {
  font-size: 22px;
  font-weight: 600;
  color: #000;
}

.error__text {
  font-size: 16px;
  color: #3c3c3c;
  margin-bottom: 12px;
}

/* Keyboard focus state */
.page a:focus-visible {
  outline: 2px solid rgb(120, 90, 220);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive
   ------------------------------------------------------------------------- */
/* Tablet */
@media (max-width: 768px) {
  .card { max-width: 340px; padding: 0 30px 30px; }
  .card__photo { width: 220px; height: 220px; margin-top: -110px; }
  .card__signature { width: 250px; }
  .page { padding: 130px 20px 60px; gap: 50px; }
  .feather-banner { max-width: 340px; }
}

/* Mobile */
@media (max-width: 600px) {
  .group { gap: 18px; }
  .feather-banner {
    max-width: 90vw;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .feather-banner__icon { width: 36px; height: 36px; }
  .feather-banner__row1 { font-size: 12px; }
  .feather-banner__product { font-size: 17px; }
  .feather-banner__row2 { font-size: 11px; }
  .feather-banner__platform { font-size: 11px; }
}

@media (max-width: 480px) {
  .card { max-width: 90vw; padding: 0 24px 32px; }
  .card__photo { width: 200px; height: 200px; margin-top: -100px; }
  .card__signature { width: 220px; }
  .page { padding: 120px 16px 60px; gap: 40px; }
  .portfolio-btn { font-size: 16px; padding: 12px 30px; }
  .footer a { font-size: 16px; }
  .label { width: 32px; bottom: 20px; }
}
