* { box-sizing: border-box; }
:root { color-scheme: light; }
html { min-width: 20rem; background: #f3f1ec; }
body { margin: 0; color: #11110f; background: #f3f1ec; font-family: "Inter Tight", sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.links-page { min-height: 100svh; display: grid; place-items: center; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); overflow-x: hidden; }
.links-card { display: flex; width: min(100%, 28rem); min-height: calc(100svh - 2rem); flex-direction: column; }
.links-profile { display: grid; justify-items: center; margin-top: auto; text-align: center; }
.profile-mark { position: relative; width: 5.5rem; height: 5.5rem; }
.profile-photo { width: 100%; height: 100%; border: 1px solid #aaa69f; border-radius: 50%; object-fit: cover; object-position: 51% center; }
.profile-logo { position: absolute; inset: auto -.45rem -.35rem auto; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid #aaa69f; border-radius: 50%; background: #fff; }
.profile-logo img { width: 2.2rem; height: 2.2rem; object-fit: contain; }
.links-profile h1 { margin: .85rem 0 0; font-size: 1.55rem; line-height: 1; letter-spacing: -.03em; }

.links-actions { display: grid; gap: .65rem; margin-top: 1.5rem; }
.link-button { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border: 1px solid #b7b3ab; border-radius: 0; background: rgba(255,255,255,.55); text-decoration: none; font-size: .94rem; font-weight: 500; transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease; }
.button-label { display: grid; grid-template-columns: 2rem 1fr; align-items: center; text-align: left; }
.button-label small { color: #706c65; font: 500 .56rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; }
.link-button > span:last-child { font-size: .9rem; }
.link-button--primary { border-color: #11110f; color: #fff; background: #11110f; }
.link-button--primary .button-label small { color: #c4c0b8; }
.link-button:is(:hover,:focus-visible) { transform: translateY(-1px); border-color: #11110f; }
.link-button:not(.link-button--primary):is(:hover,:focus-visible) { color: #fff; background: #11110f; }
.link-button:not(.link-button--primary):is(:hover,:focus-visible) .button-label small { color: #c4c0b8; }

.links-social { display: flex; justify-content: center; gap: .65rem; margin-top: 1.1rem; }
.links-social a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #b7b3ab; border-radius: 50%; color: #292824; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.links-social a:hover { border-color: #11110f; color: #fff; background: #11110f; }
.links-social svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.links-social svg .fill { fill: currentColor; stroke: none; }
footer { display: flex; justify-content: center; margin-top: auto; padding-top: 1rem; color: #69665f; text-transform: uppercase; font: 500 .54rem/1.4 "IBM Plex Mono", monospace; letter-spacing: .12em; }

@media (max-height: 43.75rem) {
  .links-page { place-items: start center; padding-block: .7rem; }
  .links-card { min-height: calc(100svh - 1.4rem); }
  .profile-mark { width: 4.5rem; height: 4.5rem; }
  .profile-logo { width: 2.35rem; height: 2.35rem; }
  .profile-logo img { width: 1.8rem; height: 1.8rem; }
  .links-profile h1 { margin-top: .55rem; font-size: 1.35rem; }
  .links-actions { gap: .45rem; margin-top: 1rem; }
  .link-button { min-height: 3.4rem; padding-block: .65rem; }
  .links-social { margin-top: .7rem; }
  footer { padding-top: .55rem; }
}

@media (min-width: 48rem) {
  .links-page { padding: 2rem; }
  .links-card { min-height: min(44rem, calc(100svh - 4rem)); padding: 2rem; border: 1px solid #d2cec6; background: rgba(255,255,255,.72); box-shadow: 0 2rem 6rem rgba(58,53,45,.1); }
}

@media (prefers-reduced-motion: reduce) {
  .link-button, .links-social a { transition: none; }
}
