:root {
  --ink: #211e1a;
  --ink-soft: #645a50;
  --paper: #f4ede5;
  --paper-light: #fbf8f4;
  --panel: #29241f;
  --panel-soft: #51483e;
  --line: rgba(244, 237, 229, 0.16);
  --card: #faf6f0;
  --accent: #efa05c;
  --accent-dark: #d57f3d;
  --moss: #a6b08d;
  --focus: #ffe3a5;
  --shadow: 0 28px 70px rgba(60, 43, 30, 0.22);
  color-scheme: light;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 160, 92, 0.14), transparent 22rem),
    radial-gradient(circle at 85% 82%, rgba(166, 176, 141, 0.14), transparent 26rem),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image: radial-gradient(rgba(81, 72, 62, 0.38) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--focus);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.ambient-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-lines__line {
  position: absolute;
  display: block;
  width: 62vw;
  height: 1px;
  background: rgba(81, 72, 62, 0.15);
  transform-origin: left center;
}

.ambient-lines__line--one {
  top: 18%;
  left: -7%;
  transform: rotate(-18deg);
}

.ambient-lines__line--two {
  right: -12%;
  bottom: 17%;
  transform: rotate(-18deg);
}

.ambient-lines__dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(239, 160, 92, 0.12);
}

.ambient-lines__dot--one {
  top: 15%;
  right: 16%;
}

.ambient-lines__dot--two {
  bottom: 9%;
  left: 13%;
  background: var(--moss);
  box-shadow: 0 0 0 7px rgba(166, 176, 141, 0.16);
}

.site-frame {
  position: relative;
  width: min(calc(100% - 28px), 700px);
  margin: 28px auto;
  padding: 32px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(41, 36, 31, 0.12);
  border-radius: 32px;
  background:
    linear-gradient(146deg, rgba(81, 72, 62, 0.22), transparent 32%),
    linear-gradient(160deg, #2d2823 0%, var(--panel) 62%, #201c18 100%);
  box-shadow: var(--shadow);
}

.site-frame::before {
  position: absolute;
  top: -190px;
  right: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(239, 160, 92, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-frame::after {
  position: absolute;
  top: -140px;
  right: -110px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(239, 160, 92, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.profile-header,
.link-stack,
.quiet-note,
.site-footer,
.setup-note {
  position: relative;
  z-index: 1;
}

.profile-header {
  padding: 12px 10px 24px;
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(41, 36, 31, 0.18);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 10px 12px 0 rgba(239, 160, 92, 0.16);
  transform: rotate(-4deg);
}

.brand-mark img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.eyebrow,
.link-card__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--moss);
}

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

h1 {
  max-width: 12ch;
  margin: 18px 0 14px;
  color: var(--paper-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 10vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.profile-title {
  max-width: none;
  margin: 0;
  color: var(--paper-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 3.25rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.profile-kicker {
  margin: 7px 0 0;
  color: rgba(244, 237, 229, 0.56);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-intro {
  max-width: 34rem;
  margin-bottom: 18px;
  color: rgba(244, 237, 229, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(244, 237, 229, 0.56);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 5px rgba(166, 176, 141, 0.12);
}

.meta-divider {
  color: var(--accent);
}

.setup-note {
  display: grid;
  gap: 6px;
  margin: 0 10px 18px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 160, 92, 0.55);
  border-radius: 14px;
  color: #2a2119;
  background: #f7c782;
  font-size: 0.83rem;
  line-height: 1.45;
}

.setup-note strong {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.setup-note code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(41, 36, 31, 0.1);
  font-size: 0.78rem;
}

.link-stack {
  display: grid;
  gap: 11px;
  padding: 0 10px;
}

.link-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 68px;
  gap: 12px;
  padding: 14px 16px 14px 14px;
  border: 1px solid rgba(244, 237, 229, 0.12);
  border-radius: 17px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 8px 0 rgba(244, 237, 229, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.link-card:hover {
  background: #ffffff;
  box-shadow: 0 12px 0 rgba(244, 237, 229, 0.07);
  transform: translateY(-3px);
}

.link-card:active {
  box-shadow: 0 4px 0 rgba(244, 237, 229, 0.06);
  transform: translateY(0);
}

.link-card:focus-visible,
.site-footer a:focus-visible,
.legal-nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.link-card--primary {
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 8px 0 rgba(239, 160, 92, 0.24);
}

.link-card--primary:hover {
  background: #f5ad6c;
  box-shadow: 0 12px 0 rgba(239, 160, 92, 0.24);
}

.link-card--primary .link-card__eyebrow {
  color: rgba(33, 30, 26, 0.62);
}

.link-card--primary .link-card__description {
  color: rgba(33, 30, 26, 0.68);
}

.link-card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(33, 30, 26, 0.14);
  border-radius: 13px;
  background: rgba(244, 237, 229, 0.72);
}

.link-card--primary .link-card__icon {
  border-color: rgba(33, 30, 26, 0.17);
  background: rgba(244, 237, 229, 0.45);
}

.link-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.link-card__icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.link-card__copy {
  display: grid;
  min-width: 0;
  gap: 0;
}

.link-card__eyebrow {
  color: var(--ink-soft);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.link-card__label {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__description {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__arrow {
  align-self: center;
  color: var(--accent-dark);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.link-card:hover .link-card__arrow {
  transform: translate(2px, -2px);
}

.link-card.is-pending {
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.7;
}

.link-card.is-pending:hover {
  background: var(--card);
  box-shadow: 0 8px 0 rgba(244, 237, 229, 0.06);
  transform: none;
}

.quiet-note {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 30px 10px 24px;
  color: rgba(244, 237, 229, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.quiet-note p {
  max-width: 250px;
  margin: 0;
}

.quiet-note__rule {
  height: 1px;
  background: var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(244, 237, 229, 0.5);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--paper);
  text-underline-offset: 3px;
}

.legal-frame {
  padding-top: 20px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 26px;
}

.legal-header__brand {
  color: var(--paper-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-header__brand span {
  color: var(--accent);
}

.legal-nav a {
  color: var(--accent);
  font-size: 0.78rem;
  text-underline-offset: 3px;
}

.legal-content {
  position: relative;
  z-index: 1;
  padding: 28px clamp(18px, 5vw, 42px) 34px;
  border-radius: 21px;
  color: var(--ink);
  background: var(--paper-light);
}

.legal-content h1 {
  max-width: none;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  line-height: 0.98;
}

.legal-content h2 {
  margin: 32px 0 9px;
  color: var(--panel-soft);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  max-width: 68ch;
  color: #51483e;
  font-size: 0.92rem;
  line-height: 1.67;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: #8a4e20;
  text-underline-offset: 3px;
}

.legal-content address {
  margin: 16px 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.7;
}

.legal-status {
  display: grid;
  gap: 6px;
  margin: 0 0 24px;
  padding: 13px 15px;
  border: 1px solid #d9a04e;
  border-radius: 12px;
  color: #523312;
  background: #fff2d2;
  font-size: 0.82rem;
  line-height: 1.45;
}

.legal-status strong {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-note {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: #f2e9df;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-back {
  display: inline-flex;
  margin-top: 8px;
  color: var(--panel-soft) !important;
  font-size: 0.84rem;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (min-width: 600px) {
  .site-frame {
    margin: 54px auto;
    padding: 44px 28px 24px;
  }

  .profile-header {
    padding: 12px 18px 32px;
  }

  .link-stack {
    gap: 13px;
    padding: 0 18px;
  }

  .setup-note {
    margin-right: 18px;
    margin-left: 18px;
  }

  .quiet-note,
  .site-footer {
    margin-right: 18px;
    margin-left: 18px;
  }
}

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