/* thisisalegit.shop — shipping-materials design language.
   paper + kraft cardboard + packing tape + one stamp red. everything lowercase. */

:root {
  --paper: #f1ede3;
  --kraft: #dfd3b8;
  --kraft-line: #b3a175;
  --ink: #262119;
  --faded: #635b4b;
  --stamp: #b02e20;
  --tape: #d9b36c;
  --tape-stripes: repeating-linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.16) 0 2px,
    transparent 2px 14px
  );
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--tape);
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--stamp);
}

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

/* ---------- ticker tape ---------- */

.ticker {
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--tape);
  background-image: var(--tape-stripes);
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 0;
}

.ticker__reel {
  display: inline-block;
  animation: reel 50s linear infinite;
}

.ticker__reel span {
  padding-right: 0.5em;
}

@keyframes reel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px clamp(20px, 4vw, 44px);
  border-bottom: 1px dashed var(--kraft-line);
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  text-decoration: none;
}

.site-head nav {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
}

section {
  padding-block: clamp(56px, 9vw, 104px);
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--faded);
  margin-bottom: 14px;
}

h2 {
  font-weight: 550;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-weight: 560;
  font-size: clamp(52px, 9.5vw, 122px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero h1 .dot {
  color: var(--stamp);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 52ch;
  color: var(--ink);
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-aside-note {
  font-family: var(--mono);
  font-size: 13px;
}

/* fig. 1 — the product */

.fig {
  justify-self: stretch;
}

.fig-box {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border: 1.5px solid var(--ink);
  background: var(--kraft);
  display: grid;
  place-items: center;
}

.fig-box::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px dashed var(--kraft-line);
  pointer-events: none;
}

.fig-box p {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faded);
  text-align: center;
  padding: 0 24px;
}

.fig figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faded);
  margin-top: 12px;
}

/* ---------- stamp notice ---------- */

.notice {
  max-width: 860px;
  margin: 0 auto;
  border: 2px solid var(--stamp);
  outline: 1.5px dashed var(--stamp);
  outline-offset: -9px;
  color: var(--stamp);
  padding: 30px clamp(24px, 4vw, 44px);
  transform: rotate(-0.6deg);
}

.notice-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}

.notice p {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.45;
  font-weight: 500;
}

/* ---------- shipping zone picker ---------- */

.ship-zone {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 14px 18px 16px;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px 26px;
  flex-wrap: wrap;
}

.ship-zone legend {
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faded);
}

.zone-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.zone-opt input {
  accent-color: var(--stamp);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.zone-note {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--faded);
}

/* ---------- shop ---------- */

#shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 22px;
}

.box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--kraft);
  border: 1.5px solid var(--ink);
  padding: 30px 24px 22px;
  transition: transform 0.18s ease;
}

.box:nth-child(odd) {
  transform: rotate(0.4deg);
}

.box:nth-child(even) {
  transform: rotate(-0.35deg);
}

.box:hover {
  transform: rotate(0deg) translateY(-4px);
}

.box-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 96px;
  height: 17px;
  transform: translateX(-50%) rotate(-2deg);
  background-color: var(--tape);
  background-image: var(--tape-stripes);
  border: 1px solid var(--ink);
}

.box-name {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}

.box-tagline {
  font-style: italic;
  color: var(--faded);
  font-size: 15px;
  margin-top: 4px;
}

.box-desc {
  font-size: 15.5px;
  line-height: 1.55;
}

.box-label {
  margin-top: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.box-label div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.box-label dt {
  color: var(--faded);
}

.box-label dd {
  text-align: right;
}

/* ---------- tape button ---------- */

.tape-btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--ink);
  background-color: var(--tape);
  background-image: var(--tape-stripes);
  border: 1.5px solid var(--ink);
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tape-btn:hover:not(:disabled) {
  transform: rotate(-1deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.tape-btn:active:not(:disabled) {
  transform: rotate(-1deg) translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.tape-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.box-error {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stamp);
  min-height: 1.2em;
}

/* ---------- honesty / faq ---------- */

.faq {
  max-width: 780px;
}

.qa {
  padding: 22px 0;
  border-bottom: 1px dashed var(--kraft-line);
}

.qa:last-child {
  border-bottom: none;
}

.qa h3 {
  font-style: italic;
  font-weight: 550;
  font-size: 20px;
  margin-bottom: 8px;
}

.qa p {
  font-size: 16.5px;
  color: var(--ink);
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faded);
  padding: 26px clamp(20px, 4vw, 44px) 46px;
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
}

.site-foot a {
  color: inherit;
}

/* ---------- inner pages (terms, success) ---------- */

.narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 44px);
}

.narrow h1 {
  font-weight: 560;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.narrow .page-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faded);
  margin-bottom: 40px;
}

.narrow h2 {
  font-size: 23px;
  margin: 38px 0 10px;
}

.narrow p {
  margin-bottom: 14px;
  font-size: 16.5px;
  line-height: 1.62;
}

.narrow .back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 36px;
}

/* ---------- misc ---------- */

noscript p {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  padding: 16px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .fig {
    max-width: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker__reel {
    animation: none;
  }

  .box,
  .box:nth-child(odd),
  .box:nth-child(even),
  .box:hover,
  .tape-btn,
  .tape-btn:hover:not(:disabled) {
    transform: none;
    transition: none;
  }
}
