:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, .72);
  --text: #111111;
  --muted: #62666d;
  --line: #dedee3;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  position: relative;
  scrollbar-color: rgba(17, 17, 17, .34) rgba(245, 245, 247, .72);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(245,245,247,.72);
}

::-webkit-scrollbar-thumb {
  border: 3px solid rgba(245,245,247,.72);
  border-radius: 999px;
  background: rgba(17,17,17,.28);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(17,17,17,.46);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  opacity: 0;
  transform: perspective(1200px) rotateY(0deg) translateX(8px);
  transform-origin: right center;
  transition: opacity .18s ease, transform .44s cubic-bezier(.2, .8, .2, 1);
  background:
    linear-gradient(270deg, rgba(255,255,255,.98), rgba(245,245,247,.72) 54%, rgba(255,255,255,.18)),
    var(--bg);
  box-shadow: -24px 0 70px rgba(0,0,0,.08);
}

body.article-turning::before {
  opacity: 1;
  transform: perspective(1200px) rotateY(13deg) translateX(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(17,17,17,.07) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.28) 0 1px, transparent 1px);
  background-size: 4px 4px, 5px 5px;
  mix-blend-mode: multiply;
}

body > * {
  position: relative;
  z-index: 1;
}

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

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.article-top {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
}

.article-nav {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.48));
  box-shadow: 0 18px 56px rgba(0,0,0,.12);
  backdrop-filter: blur(30px) saturate(1.55);
  -webkit-backdrop-filter: blur(30px) saturate(1.55);
}

.article-back {
  display: inline-flex;
  width: 36px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111111;
  font-size: 23px;
  line-height: 1;
  transition: color .42s cubic-bezier(.16,1,.3,1), transform .42s cubic-bezier(.16,1,.3,1);
}

.article-back:hover {
  transform: translateX(-2px);
}

.share-rail {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 18px 56px rgba(0,0,0,.12);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  transform: translateY(-50%);
}

.share-rail a,
.share-rail button {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: transparent;
  color: rgba(17,17,17,.68);
  cursor: pointer;
  transition: color .28s ease, background .28s ease, transform .28s ease;
}

.share-rail a:last-child,
.share-rail button:last-child {
  border-bottom: 0;
}

.share-rail svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.share-rail a:hover,
.share-rail button:hover,
.share-rail button.is-copied {
  background: rgba(17,17,17,.88);
  color: #ffffff;
  transform: translateX(-2px);
}

.container {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 108px 0 72px;
}

aside,
.back-arrow {
  display: none !important;
}

main {
  width: 100%;
  min-width: 0;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid rgba(0,0,0,.045);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 56px rgba(0,0,0,.06);
  line-height: 1.75;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

main h2 {
  margin: 0 0 26px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

main .spot {
  color: #303030;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

main .date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  margin-top: 24px;
}

main hr {
  margin: 34px 0;
  border: none;
  border-top: 1px solid var(--line);
}

main h3 {
  margin: 38px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

main p {
  color: #303030;
}

main blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid #111111;
  border-radius: var(--radius);
  background: rgba(238,238,241,.82);
  color: #202020;
  font-style: italic;
}

.site-footer {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .share-rail {
    top: auto;
    right: 50%;
    bottom: 18px;
    flex-direction: row;
    border-radius: 999px;
    transform: translateX(50%);
  }

  .share-rail a,
  .share-rail button {
    width: 44px;
    height: 44px;
    border-right: 1px solid rgba(0,0,0,.08);
    border-bottom: 0;
  }

  .share-rail a:last-child,
  .share-rail button:last-child {
    border-right: 0;
  }

  .share-rail a:hover,
  .share-rail button:hover,
  .share-rail button.is-copied {
    transform: translateY(-2px);
  }

  .container {
    width: min(100% - 24px, 980px);
    padding-top: 88px;
  }
}
