* {
  box-sizing: border-box;
}

:root {
  color: #171717;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #fff;
  color: #171717;
  line-height: 1.65;
}

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

img,
video,
iframe {
  max-width: 100%;
}

.home-hero {
  min-height: 42svh;
  display: flex;
  align-items: flex-end;
  padding: 34px 20px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.86), rgba(24, 24, 27, 0.82)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.36), transparent 26%),
    #123c3a;
  color: #fff;
}

.home-hero__inner {
  width: min(100%, 680px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(38px, 14vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.home-hero p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 17px;
  opacity: 0.86;
}

.feed {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.feed-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.feed-item img,
.feed-item__placeholder {
  width: 108px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  background: #e6ddd0;
}

.feed-item__placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 32px;
  font-weight: 800;
}

.feed-item h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
}

.feed-item p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #5b5750;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-item span {
  display: block;
  margin-top: 8px;
  color: #837c71;
  font-size: 12px;
}

.article-shell {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 26px 20px 64px;
}

.back-link,
.text-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 460px;
  margin-bottom: 28px;
  object-fit: cover;
  border-radius: 0;
}

.article {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.article__header h1 {
  margin: 0;
  font-size: clamp(27px, 7vw, 36px);
  line-height: 1.24;
  letter-spacing: 0;
  font-weight: 800;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  color: #8a8a8a;
  font-size: 14px;
}

.article-summary {
  margin: 20px 0 0;
  color: #666;
  font-size: 17px;
  line-height: 1.75;
}

.article-body {
  margin-top: 34px;
  color: #202020;
  font-size: 17px;
  line-height: 1.86;
  word-break: break-word;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 34px 0 14px;
  line-height: 1.34;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid #d8d8d8;
  color: #666;
}

.article-body figure {
  margin: 28px 0;
}

.article-body img,
.article-body video,
.article-body iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
}

.article-body iframe {
  aspect-ratio: 16 / 9;
}

.article-reward {
  margin-top: 46px;
  padding: 34px 0 2px;
  border-top: 1px solid #eeeeee;
  text-align: center;
}

.article-reward__label {
  margin: 0 0 16px;
  color: #7b7b7b;
  font-size: 14px;
}

.article-reward__copy {
  margin: 14px 0 0;
  color: #9a9a9a;
  font-size: 13px;
}

.reward-button,
.pay-button {
  min-height: 44px;
  display: block;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: #f05a3a;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.reward-button {
  width: 116px;
}

.pay-button {
  width: 100%;
  border-radius: 8px;
  background: var(--accent);
}

.reward-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.reward-sheet.is-open {
  display: block;
}

.reward-sheet__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.reward-sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 82svh;
  overflow: auto;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  background: #fffdf8;
  border-radius: 8px 8px 0 0;
  transform: translateY(100%);
  animation: sheetIn 180ms ease forwards;
}

.reward-sheet__panel h2 {
  margin: 0;
  font-size: 22px;
}

.reward-sheet__panel p {
  margin: 6px 0 16px;
  color: #5b5750;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f0ece4;
  font-size: 24px;
}

.platform-list,
.amount-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.platform-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-list button,
.amount-list button {
  min-height: 46px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font: inherit;
}

.platform-list button {
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: left;
}

.platform-list small {
  color: #837c71;
}

.amount-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-list .active,
.amount-list .active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.pay-button:disabled {
  opacity: 0.6;
}

.qrcode-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  background: #f7f5ef;
  border-radius: 8px;
}

.qrcode-box img {
  width: min(240px, 72vw);
  border-radius: 8px;
}

.pay-message {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: #eef4ff;
  color: #22416f;
}

.pay-message--success {
  background: #ebf8f2;
  color: #116149;
}

.pay-message--error {
  background: #fff0ed;
  color: #9f2d20;
}

.empty-state {
  padding: 42px 12px;
  text-align: center;
  color: #5b5750;
}

.empty-state--page {
  min-height: 70svh;
  display: grid;
  align-content: center;
  justify-items: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 8px;
  color: #171717;
}

.muted {
  color: #837c71;
}

@keyframes sheetIn {
  to {
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .reward-sheet__panel {
    right: calc((100vw - 560px) / 2);
    left: calc((100vw - 560px) / 2);
    bottom: 18px;
    border-radius: 8px;
  }
}
