:root {
  --ink: #24211d;
  --paper: #f3efe7;
  --muted: #6f6a61;
  --accent: #a3482b;
  --line: rgb(36 33 29 / 20%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.link-tree {
  width: min(100% - 32px, 440px);
  margin-inline: auto;
  padding: max(40px, 8dvh) 0 48px;
  text-align: center;
}

.signature {
  display: block;
  width: min(62vw, 220px);
  height: auto;
  margin-inline: auto;
}

.tagline {
  margin: 18px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

nav {
  display: grid;
  gap: 12px;
}

.link {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 11px 16px 11px 12px;
  border: 1px solid var(--line);
  background: rgb(250 248 243 / 72%);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.link:hover,
.link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.link:active {
  transform: scale(0.985);
}

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.link-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-icon svg path,
.link-icon svg .icon-dot {
  fill: currentColor;
  stroke: none;
}

.text-icon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.heart {
  color: var(--accent);
  font-size: 1.15rem;
}

.love {
  border-color: rgb(163 72 43 / 45%);
}

.arrow {
  font-size: 1.1rem;
  font-weight: 400;
  text-align: right;
}

@media (min-height: 760px) {
  .link-tree {
    padding-top: max(56px, 11dvh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .link {
    transition: none;
  }
}
