:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --panel: #faf9f5;
  --ink: #1d1c20;
  --muted: #69666a;
  --line: #dedbd3;
  --accent: #65438a;
  --accent-soft: #eee8f3;
  --night: #25212a;
  --night-soft: #d8d0df;
  --focus: #9a7041;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top center, #fefefe, var(--paper));
  background-attachment: fixed;
  color: var(--ink);
  font-size: 16px;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 650;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-frame {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 25px;
}

.topbar,
.wordmark,
.featured-topline,
.other-links-heading,
.link-row,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  min-height: 49px;
  margin-bottom: 16px;
}

.wordmark {
  justify-content: flex-start;
  gap: 11px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.wordmark-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 9px 3px 9px 3px;
  background: var(--night);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.topbar-label,
.eyebrow,
.profile-caption,
.section-index,
.featured-label,
.other-links-heading > span,
.studio-note {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.topbar-label {
  color: var(--muted);
}

.topbar-label span {
  margin: 0 7px;
  color: var(--accent);
}

.site-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid #d8d4cb;
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgb(30 25 29 / 8%), 0 12px 24px rgb(30 25 29 / 4%);
}

.intro-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 720px;
  padding: clamp(42px, 6vw, 72px) clamp(32px, 5vw, 66px);
}

.profile-lockup {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 54px;
}

.profile-image {
  display: block;
  width: 92px;
  height: 92px;
  border: 1px solid #d6cbdc;
  border-radius: 14px 4px 14px 4px;
  background: var(--night);
  object-fit: cover;
}

.profile-caption {
  display: inline-block;
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 11px;
}

.eyebrow span {
  margin: 0 3px;
  color: #aaa3a8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 23px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 740;
  letter-spacing: -0.078em;
  line-height: 0.94;
}

h1 span {
  color: var(--accent);
}

.intro-copy {
  max-width: 340px;
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.48;
}

.intro-detail {
  max-width: 330px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.studio-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.note-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.links-panel {
  padding: clamp(37px, 5vw, 62px) clamp(28px, 4.4vw, 56px);
  border-left: 1px solid var(--line);
  background: #f6f5f0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-index {
  margin-bottom: 15px;
  color: var(--accent);
}

.section-index span {
  padding: 0 4px;
  color: #aaa3a8;
}

h2 {
  margin-bottom: 8px;
  font-size: 29px;
  font-weight: 680;
  letter-spacing: -0.055em;
}

.section-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.featured-link {
  display: block;
  padding: 20px 21px 21px;
  border: 1px solid var(--night);
  border-radius: 10px 4px 10px 4px;
  background: var(--night);
  color: #faf8f2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.featured-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #302a36;
}

.featured-topline {
  margin-bottom: 19px;
}

.featured-label {
  color: #c9b7da;
  font-size: 9px;
}

.featured-link .link-arrow {
  color: #ddd1e7;
}

.featured-title,
.featured-description {
  display: block;
}

.featured-title {
  margin-bottom: 6px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 630;
  letter-spacing: -0.04em;
}

.featured-description {
  color: var(--night-soft);
  font-size: 13px;
  line-height: 1.5;
}

.other-links-heading {
  margin: 31px 0 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.other-links-heading h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.other-links-heading > span {
  color: #8b8788;
  font-size: 9px;
}

.other-links-heading > span span {
  padding: 0 2px;
}

.link-list {
  display: flex;
  flex-direction: column;
}

.link-row {
  justify-content: flex-start;
  gap: 13px;
  min-height: 61px;
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.link-row:hover {
  background: #eeece6;
}

.link-monogram {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d9d2df;
  border-radius: 8px 3px 8px 3px;
  background: var(--accent-soft);
  color: #4d3167;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.link-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.link-title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.link-description {
  color: var(--muted);
  font-size: 12px;
}

.link-arrow {
  display: inline-block;
  flex: 0 0 auto;
  color: #6d696d;
  font-size: 18px;
  line-height: 1;
  transition: color 140ms ease, transform 140ms ease;
}

.link-row:hover .link-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.contact-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #cbc4d1;
  border-radius: 6px;
  color: #4f326c;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.site-footer {
  gap: 20px;
  padding: 17px 2px 0;
  color: #777277;
  font-size: 11px;
  line-height: 1.5;
}

.social-block-mobile {
  display: none;
}

@media (max-width: 760px) {
  .site-frame {
    width: min(100% - 28px, 560px);
    padding: 17px 0 19px;
  }

  .topbar {
    min-height: 42px;
    margin-bottom: 12px;
  }

  .wordmark {
    gap: 8px;
    font-size: 13px;
  }

  .wordmark-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px 3px 8px 3px;
  }

  .topbar-label {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .topbar-label span {
    margin: 0 3px;
  }

  .site-card {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .social-block-desktop {
    display: none;
  }

  .social-block-mobile {
    display: block;
  }

  .intro-panel {
    min-height: unset;
    padding: 34px 27px 30px;
  }

  .profile-lockup {
    gap: 13px;
    margin-bottom: 34px;
  }

  .profile-image {
    width: 72px;
    height: 72px;
    border-radius: 12px 4px 12px 4px;
  }

  .profile-caption {
    padding-bottom: 5px;
    font-size: 8px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  h1 {
    margin-bottom: 17px;
    font-size: clamp(49px, 13vw, 64px);
  }

  .intro-copy {
    max-width: 390px;
    margin-bottom: 8px;
    font-size: 17px;
  }

  .intro-detail {
    max-width: 400px;
    margin-bottom: 0;
    font-size: 13px;
  }

  .studio-note {
    margin-top: 27px;
    padding-top: 14px;
    font-size: 8px;
  }

  .links-panel {
    padding: 28px 22px 25px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  h2 {
    font-size: 26px;
  }

  .featured-link {
    padding: 17px 17px 18px;
  }

  .other-links-heading {
    margin-top: 26px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 13px 3px 0;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .site-frame {
    width: calc(100% - 20px);
  }

  .topbar-label {
    font-size: 7px;
  }

  .intro-panel {
    padding-inline: 22px;
  }

  .links-panel {
    padding-inline: 18px;
  }

  .contact-block {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ─── Content Pages (About / Minecraft / Projects / Art) ─── */

.site-card--content {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  border-radius: 15px;
}

.content-page-inner {
  padding: clamp(42px, 6vw, 72px) clamp(40px, 6vw, 80px);
}

.sidebar-panel {
  padding: clamp(37px, 5vw, 62px) clamp(28px, 4.4vw, 56px);
  border-left: 1px solid var(--line);
  background: #f6f5f0;
}

.sidebar-heading {
  margin-bottom: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--muted);
  text-transform: uppercase;
}

.sidebar-panel .link-list {
  margin-bottom: 32px;
}

.content-page-hero {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 20px;
}

.content-page-hero > div {
  flex: 1;
  min-width: 0;
}

.content-page-avatar {
  display: block;
  width: 80px;
  height: 80px;
  border: 1px solid #d6cbdc;
  border-radius: 14px 4px 14px 4px;
  object-fit: cover;
  flex: 0 0 auto;
}

/* Topbar nav links */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-nav-link {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background-color 140ms ease, color 140ms ease;
}

.topbar-nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 28px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #bbb5b8;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Content body typography */
.content-body {
  margin-top: 2rem;
}

.content-body h2 {
  font-size: 1.1rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

.content-body ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.content-body ul li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.content-body ul li strong {
  color: var(--ink);
}

.content-body a {
  color: var(--accent);
  text-decoration: none;
}

.content-body a:hover {
  text-decoration: underline;
}

/* ─── Responsive fixes for content pages ─── */
@media (max-width: 760px) {
  .site-card--content {
    display: flex;
    flex-direction: column;
  }

  .sidebar-panel {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 28px 22px 25px;
  }

  .content-page-inner {
    padding: 28px 22px 28px;
  }

  .content-page-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
  }

  .content-page-avatar {
    width: 60px;
    height: 60px;
  }

  .topbar-nav {
    gap: 2px;
  }

  .topbar-nav-link {
    font-size: 10px;
    padding: 4px 7px;
  }

  .breadcrumb ol {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .topbar-nav-link {
    font-size: 9px;
    padding: 3px 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Asset Gallery ─── */

.asset-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.asset-filter {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.asset-filter:hover,
.asset-filter.active {
  border-color: var(--accent);
  background: var(--night);
  color: #faf8f2;
}

.asset-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.asset-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--night);
  border-radius: 10px 4px 10px 4px;
  background: var(--night);
  color: #faf8f2;
  overflow: hidden;
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: #302a36;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.06);
}

.asset-card-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #251f2b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.asset-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.asset-card:hover .asset-card-preview img {
  transform: scale(1.05);
}

.asset-card-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.asset-card-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.asset-card-meta {
  color: var(--night-soft);
  font-size: 12px;
}

.asset-card-source {
  color: #c9b7da;
  font-size: 11px;
}

.asset-card-action {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ddd1e7;
  font-size: 12px;
  font-weight: 500;
}

.asset-card-action svg {
  width: 14px;
  height: 14px;
}
