@font-face {
  font-family: "System Serif";
  src: local("Baskerville"), local("Iowan Old Style"), local("Palatino Linotype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --ink: #302e2b;
  --muted: #77716a;
  --line: #e8e4de;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button[hidden] { display: none; }
svg { display: block; width: 22px; height: 22px; }
::selection { background: #e8dfd5; }
:focus-visible { outline: 2px solid #82725f; outline-offset: 5px; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 38px 52px 28px;
}

.topbar { display: flex; align-items: center; justify-content: flex-end; min-height: 38px; }
.share {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.share svg { width: 16px; height: 16px; }
.share:hover { background: #eeebe6; color: var(--ink); }

main { width: 100%; max-width: 440px; margin: auto; padding: 42px 0 38px; }
.profile { text-align: center; }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 26px;
  border: 1px solid #e2dacf;
  border-radius: 50%;
  background: #ece5dc;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px #ece7df;
}
.avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar-heart { position: absolute; right: -3px; bottom: 0; display: grid; place-items: center; width: 26px; height: 26px; border: 3px solid var(--paper); border-radius: 50%; background: #ddd0c2; color: #6a5643; font-size: 17px; line-height: 1; }
h1 { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; font-family: "System Serif", Georgia, serif; font-size: 57px; font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.heart { font-family: Georgia, serif; font-size: 36px; font-weight: 400; color: #9f8b78; transform: translateY(3px); }
.links { display: grid; gap: 12px; margin-top: 30px; }
.link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 85px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.angel { font-size: 26px; line-height: 1; }
.feature.link { display: block; overflow: hidden; padding: 0; }
.feature-image { position: relative; display: block; height: 200px; overflow: hidden; background: #494949; }
.feature-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, #0008); }
.feature-image > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 8%; transition: transform .4s; }
.feature:hover .feature-image > img { transform: scale(1.025); }
.play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff85; border-radius: 50%; background: #0003; color: white; transform: translate(-50%, -50%); backdrop-filter: blur(6px); }
.play svg { width: 18px; height: 18px; transform: translateX(-1px); }
.feature-tag { position: absolute; z-index: 1; bottom: 16px; left: 22px; color: white; font-size: 8px; font-weight: 500; letter-spacing: .16em; }
.feature-caption { display: flex; align-items: center; min-height: 74px; padding: 16px 22px; }
.link-copy { display: grid; gap: 7px; }
.link-title { font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.link-description { font-size: 11px; line-height: 1.3; color: var(--muted); }
.arrow { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; color: #91887e; transition: transform .2s; }
.link:hover { transform: translateY(-2px); border-color: #cfc4b6; box-shadow: 0 5px 15px #4c3f2d06; }
.link:hover .arrow { transform: translate(2px, -2px); }
.link:active { transform: translateY(0); }
.socials { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 26px; }
.socials a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border-radius: 9px; color: #665f57; transition: background .2s, color .2s; }
.socials a:hover { background: #eeebe6; color: var(--ink); }
.socials span { font-size: 9px; color: var(--muted); }
.socials svg { width: 20px; height: 20px; }

.share-status { position: fixed; left: 50%; bottom: 26px; z-index: 1; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12px; text-align: center; transform: translateX(-50%); box-shadow: 0 4px 20px #302e2b15; }
.share-status:empty { display: none; }

@media (max-width: 600px) {
  .page { padding: 24px 24px 25px; }
  main { padding: 32px 0 30px; }
  .feature-image { height: 174px; }
  .link { padding: 19px 21px; }
}

@media (max-width: 360px) {
  .page { padding-right: 18px; padding-left: 18px; }
  .link { gap: 14px; padding-right: 18px; padding-left: 18px; }
  .socials { gap: 2px; }
  .feature-image { height: 155px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .link:hover, .link:hover .arrow, .feature:hover .feature-image > img { transform: none; }
}
