:root {
  --denim: #2b4257;
  --denim-ink: #1c2c39;
  --paper: #eae6db;
  --card: #f4f1e8;
  --mark: #c8332b;
  --mute: #6e655a;
  --rule: #d6d0c3;
  --focus: #1c6fd1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--denim-ink);
  font-family: "Source Serif 4", Georgia, serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  padding-bottom: 40px;
}

.stamp {
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: var(--denim);
  border-bottom: 1px solid var(--denim-ink);
}

.topbar__mark {
  color: var(--paper);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar__mark span {
  color: var(--mark);
}

.feed {
  max-width: 440px;
  margin: 0 auto;
}

.post {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}

.post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.post__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--denim);
  color: var(--paper);
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.post__who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.post__handle {
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--denim-ink);
}

.post__meta {
  font-size: 11.5px;
  color: var(--mute);
  font-family: "Source Serif 4", serif;
}

.post__frame {
  position: relative;
}

.post__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--rule);
}

.tag {
  position: absolute;
  left: 14px;
  bottom: -14px;
  background: var(--mark);
  color: var(--card);
  padding: 6px 12px 7px 14px;
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  clip-path: polygon(0% 15%, 92% 0%, 100% 85%, 8% 100%);
  box-shadow: 1px 2px 0 rgba(28, 44, 57, 0.25);
}

.tag__was {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
  text-decoration: line-through;
  margin-right: 4px;
}

.post__body {
  padding: 24px 14px 0;
}

.post__caption {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--denim-ink);
  margin: 0 0 4px;
}

.post__caption b {
  font-weight: 700;
}

.post__sub {
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 14px;
}

.post__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  color: var(--denim-ink);
  cursor: pointer;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.icon-btn.liked svg {
  fill: var(--mark);
  stroke: var(--mark);
}

.icon-btn.saved svg {
  fill: var(--denim-ink);
}

.buy {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--denim);
  color: var(--paper);
  text-decoration: none;
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 12px 0;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.buy:active {
  background: var(--denim-ink);
}

.buy:focus-visible,
.icon-btn:focus-visible,
.notify-banner__cta:focus-visible,
.notify-banner__close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.foot {
  text-align: center;
  padding: 28px 20px 0;
  color: var(--mute);
  font-size: 13px;
}

.notify-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--denim);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -2px 0 var(--denim-ink);
}

.notify-banner.is-visible {
  transform: translateY(0);
}

.notify-banner__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 22px;
}

.notify-banner__icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--mark);
  color: var(--paper);
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notify-banner__copy {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #dbe3ea;
}

.notify-banner__q {
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  display: block;
  margin-bottom: 2px;
}

.notify-banner__cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--mark);
  color: var(--card);
  border: none;
  font-family: "Big Shoulders Text", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 0;
  border-radius: 999px;
  cursor: pointer;
}

.notify-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  flex: none;
  background: none;
  border: none;
  color: #cdd7de;
  padding: 4px;
  cursor: pointer;
  display: flex;
}

.notify-banner__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--denim-ink);
  color: var(--paper);
  font-family: "Big Shoulders Text", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .notify-banner,
  .toast {
    transition: none;
  }
}
