/* What FIUI adds on top of portfolio.css, the portfolio's own stylesheet. */
html, body, button, input { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-feature-settings: "cv11", "ss03"; }
html:not(.js) .portfolio-card { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.portfolio-card :focus-visible, .portfolio-card:focus-visible { outline-color: #052642; }

main { width: 100%; }
.navbar__logo img { width: 22px; height: 22px; }
.navbar__center { gap: 8px; }
.navbar__name { font-weight: 600; letter-spacing: -.005em; }

.hero-title { font-size: 64px; line-height: 68px; font-weight: 800; letter-spacing: -.03em; color: #000; }
.hero-subtitle { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.015em; color: #000; margin-top: 6px; }
.hero-tags { font-size: 16px; line-height: 1.4; font-weight: 500; color: #000; }

.portfolio { padding-bottom: 0; }
.portfolio__heading h2 { font-family: inherit; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: .02em; }
.portfolio-lead { max-width: 680px; margin: -8px auto 0; color: #fff; text-align: center; font-size: 17px; line-height: 1.55; }

.portfolio-card { aspect-ratio: auto; font-size: 16px; line-height: 1.55; }
.portfolio-card h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; }
.portfolio-card p { font-size: 16px; line-height: 1.55; }
.card-text { padding: 24px; gap: 10px; }
.card-text--title { justify-content: center; }
.card-text--title h3 { font-size: 18px; }

.about { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; padding: 28px; }
.about img { width: 180px; height: auto; }
.about__text { display: flex; flex-direction: column; gap: 12px; }
.about__facts { font-size: 14px; line-height: 1.5; color: #47566a; }

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.activity { padding: 12px; gap: 12px; }
.activity img, .project img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.activity__figure { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--cream-background); color: var(--cookie-monster-blue); font-size: clamp(44px, 8vw, 72px); font-weight: 800; letter-spacing: -.03em; }
.activity__body { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 10px; }
.activity__date { font-size: 14px; font-weight: 600; color: #0062ad; }
.activity__links { font-size: 14px; color: #47566a; }
.activity__links a, .repo a { color: #0062ad; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

a.project { padding: 12px; gap: 12px; }
.project h3 { padding: 0 8px 8px; }

.repo { padding: 22px; gap: 8px; }
.repo p { flex: 1; font-size: 15px; }
.repo a { font-size: 14px; }

.site-footer { width: min(980px, 100%); padding: 48px 16px 72px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; text-align: center; font-size: 15px; line-height: 1.5; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.site-footer .site-footer__download { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--cream-background); color: #062847; font-weight: 700; text-decoration: none; transition: transform .2s ease; }
.site-footer__download:hover { transform: translateY(-1px); }
.site-footer__download:focus-visible { outline-color: #fff; }

.legal-page { background: var(--cream-background); color: #10202e; }
.legal { width: min(820px, 100%); margin: 0 auto; padding: 32px 20px 72px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; }
.legal__back { font-size: 14px; font-weight: 600; }
.legal h1 { font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; margin-top: 8px; }
.legal h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; margin-top: 22px; }
.legal h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin-top: 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal a { color: #0062ad; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal ul, .legal ol { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal__action { margin-top: 6px; }
.legal a.legal__button { display: inline-block; padding: 11px 18px; border-radius: 999px; background: #0062ad; color: #fff; font-weight: 700; text-decoration: none; }
.legal mark { background: #ffe08a; color: inherit; padding: 1px 4px; border-radius: 4px; font-size: 14px; }
.legal__table { overflow-x: auto; border-radius: 12px; border: 1px solid #10202e26; background: #fff; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; }
.legal th, .legal td { padding: 10px 12px; font-size: 15px; line-height: 1.45; text-align: left; vertical-align: top; border-bottom: 1px solid #10202e1a; }
.legal th { font-weight: 700; background: #0062ad12; }
.legal tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .portfolio__grid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .portfolio__heading h2 { font-size: 28px; }
  .about { grid-template-columns: 1fr; padding: 22px; }
  .about img { width: 150px; }
  .navbar__name { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card, .portfolio-card:hover { transition: none; }
}
