:root {
  --background: #f6f1ea;
  --card: #efe7dc;
  --cream: #f5ead8;
  --green: #1f2e22;
  --soft-green: #52624e;
  --brown: #3a3028;
  --muted: #756b61;
  --border: #ddd2c5;
  --accent: #f26b2a;
  --white: #ffffff;
  --page-background: var(--background);
  --text: var(--brown);
  --heading: var(--brown);
  --subtle-text: var(--muted);
  --mark-background: var(--card);
  --mark-border: var(--border);
  --mark-shadow: inset 0 0 0 10px rgba(246, 241, 234, 0.55);
  --logo-filter: none;
  --social-background: var(--card);
  --social-border: var(--border);
  --social-text: var(--green);
  --social-hover-background: var(--green);
  --social-hover-text: var(--white);
  --link-background: var(--card);
  --link-quiet-background: rgba(239, 231, 220, 0.72);
  --link-text: var(--brown);
  --link-border: var(--border);
  --link-shadow: 0 16px 35px rgba(58, 48, 40, 0.08);
  --link-hover-background: var(--white);
  --link-hover-border: var(--soft-green);
  --primary-background: var(--green);
  --primary-text: var(--white);
  --primary-hover-background: var(--soft-green);
  --primary-hover-border: var(--soft-green);
  --photo-border: var(--border);
  --photo-background: var(--green);
  --photo-shadow: 0 20px 45px rgba(58, 48, 40, 0.12);
  --photo-overlay-strong: rgba(31, 46, 34, 0.76);
  color-scheme: light;
}

html[data-theme="night"] {
  --page-background:
    radial-gradient(circle at top left, rgba(242, 107, 42, 0.16), transparent 30rem),
    linear-gradient(145deg, #18221a, var(--green) 42%, var(--brown));
  --text: var(--cream);
  --heading: var(--white);
  --subtle-text: rgba(245, 234, 216, 0.72);
  --mark-background: rgba(245, 234, 216, 0.08);
  --mark-border: rgba(245, 234, 216, 0.44);
  --mark-shadow: inset 0 0 0 10px rgba(245, 234, 216, 0.03);
  --logo-filter: brightness(0) invert(1) sepia(14%) saturate(675%) hue-rotate(337deg) brightness(104%) contrast(92%);
  --social-background: rgba(255, 255, 255, 0.06);
  --social-border: rgba(245, 234, 216, 0.2);
  --social-text: var(--white);
  --social-hover-background: rgba(255, 255, 255, 0.14);
  --social-hover-text: var(--cream);
  --link-background: var(--cream);
  --link-quiet-background: rgba(245, 234, 216, 0.9);
  --link-text: #232620;
  --link-border: rgba(245, 234, 216, 0.88);
  --link-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
  --link-hover-background: var(--white);
  --link-hover-border: var(--white);
  --primary-background: var(--accent);
  --primary-text: var(--white);
  --primary-hover-background: #ff7a3a;
  --primary-hover-border: #ff7a3a;
  --photo-border: rgba(245, 234, 216, 0.28);
  --photo-background: #111111;
  --photo-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  --photo-overlay-strong: rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-background);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.link-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.profile {
  width: 100%;
  max-width: 520px;
  min-height: calc(100vh - 36px);
  min-height: calc(100svh - 36px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 0 0;
}

.brand-mark {
  align-self: center;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 2px solid var(--mark-border);
  border-radius: 999px;
  background: var(--mark-background);
  box-shadow: var(--mark-shadow);
}

.brand-mark img {
  width: 92px;
  height: auto;
  filter: var(--logo-filter);
}

.eyebrow {
  margin: 20px 0 0;
  color: var(--subtle-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 0;
  color: var(--heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.02;
  text-align: center;
}

.tagline {
  max-width: 360px;
  margin: 14px auto 0;
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 26px 0 32px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--social-border);
  border-radius: 999px;
  background: var(--social-background);
  color: var(--social-text);
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.socials a:hover {
  background: var(--social-hover-background);
  color: var(--social-hover-text);
  transform: translateY(-2px);
}

.actions {
  display: grid;
  gap: 14px;
}

.link-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--link-border);
  border-radius: 14px;
  background: var(--link-background);
  color: var(--link-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--link-shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card svg {
  width: 21px;
  min-width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.link-card.primary {
  background: var(--primary-background);
  border-color: var(--primary-background);
  color: var(--primary-text);
}

.link-card.quiet {
  background: var(--link-quiet-background);
}

.link-card:hover {
  transform: translateY(-2px);
  background: var(--link-hover-background);
  border-color: var(--link-hover-border);
}

.link-card.primary:hover {
  background: var(--primary-hover-background);
  border-color: var(--primary-hover-border);
}

.photo-link {
  position: relative;
  min-height: 310px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--photo-border);
  border-radius: 14px;
  background: var(--photo-background);
  box-shadow: var(--photo-shadow);
}

.photo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, var(--photo-overlay-strong)),
    linear-gradient(90deg, rgba(31, 46, 34, 0.18), transparent 55%);
}

.photo-link img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 360ms ease;
}

.photo-link:hover img {
  transform: scale(1.035);
}

.photo-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: var(--white);
}

.photo-copy span,
.photo-copy strong {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.photo-copy span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
}

.photo-copy strong {
  font-size: 31px;
  line-height: 1.05;
}

:focus-visible {
  outline: 3px solid rgba(242, 107, 42, 0.95);
  outline-offset: 4px;
}

@media (max-width: 420px) {
  .link-page {
    padding: 12px;
  }

  .profile {
    min-height: calc(100svh - 24px);
    padding-top: 16px;
  }

  .brand-mark {
    width: 104px;
    height: 104px;
  }

  .brand-mark img {
    width: 78px;
  }

  h1 {
    font-size: 38px;
  }

  .tagline {
    font-size: 16px;
  }

  .socials {
    margin-bottom: 26px;
  }

  .link-card {
    min-height: 68px;
    padding: 16px 18px;
    font-size: 17px;
  }

  .photo-link {
    min-height: 270px;
  }

  .photo-copy strong {
    font-size: 27px;
  }
}

@media (max-width: 640px) {
  .profile {
    max-width: 354px;
  }
}
