:root {
  --ink: #171411;
  --muted: #6f665b;
  --paper: #fffaf1;
  --panel: #ffffff;
  --line: #ded3c1;
  --green: #1f6b3a;
  --green-dark: #134625;
  --red: #b94c37;
  --red-dark: #8f3624;
  --gold: #efc76b;
  --shadow: 0 22px 70px rgba(31, 23, 14, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  width: 100%;
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--green-dark);
}

input,
select,
textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.home-body {
  overflow: hidden;
  background: #15100c;
}

.home-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-brand {
  position: absolute;
  top: clamp(18px, 4vw, 38px);
  left: 50%;
  z-index: 3;
  width: min(420px, calc(100% - 32px));
  display: grid;
  gap: 4px;
  justify-items: center;
  transform: translateX(-50%);
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(20, 16, 12, 0.42);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.home-brand strong {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1;
  font-weight: 900;
}

.home-brand span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.home-tile {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 34px;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
  transition: transform 180ms ease;
}

.home-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transition: transform 260ms ease;
}

.home-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.buy-tile::before {
  background-image: url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1400&q=85");
}

.buy-tile::after {
  background: linear-gradient(180deg, rgba(70, 20, 10, 0.35), rgba(90, 31, 18, 0.82));
}

.sell-tile::before {
  background-image: url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1400&q=85");
}

.sell-tile::after {
  background: linear-gradient(180deg, rgba(12, 54, 26, 0.28), rgba(13, 64, 33, 0.84));
}

.home-tile:hover::before,
.home-tile:focus-visible::before {
  transform: scale(1.045);
}

.home-tile:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: -8px;
}

.tile-label {
  width: min(520px, 100%);
  padding: 0 12px;
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: center;
}

.tile-copy {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(12px);
  color: var(--muted);
}

.back-link {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.intro {
  max-width: 780px;
  margin-bottom: 30px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.seller-page .kicker {
  color: var(--green);
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.intro p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.form-card,
.examples {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-card {
  padding: clamp(18px, 3vw, 28px);
}

.form-card form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.buyer-page button {
  background: var(--red);
}

.buyer-page button:hover {
  background: var(--red-dark);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
  align-items: start;
}

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.notice.success {
  color: #104020;
  background: #dff4e5;
  border: 1px solid #a8d8b5;
}

.notice.error {
  color: #732512;
  background: #ffe4dd;
  border: 1px solid #efb0a1;
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.session-bar div {
  display: grid;
  gap: 4px;
}

.session-bar span {
  color: var(--muted);
}

.session-bar a {
  color: var(--red);
  font-weight: 900;
}

.login-card a {
  color: var(--green);
  font-weight: 900;
  text-align: center;
}

.examples {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 22px;
}

.examples article {
  display: grid;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.examples span {
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.offer-list {
  margin-top: 24px;
}

.offer-line {
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 14px;
}

.offer-line img {
  width: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.pick-offer {
  min-height: 44px;
  padding: 10px 14px;
  background: var(--red);
}

.pick-offer:hover {
  background: var(--red-dark);
}

.offer-preview article {
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 16px;
}

.offer-preview img {
  width: 150px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 780px) {
  .home-body {
    overflow: auto;
  }

  .home-screen {
    grid-template-columns: 1fr;
  }

  .home-brand {
    top: 14px;
  }

  .home-tile {
    min-height: 50vh;
    padding-top: 86px;
  }

  .field-row,
  .split-grid,
  .offer-line,
  .offer-preview article {
    grid-template-columns: 1fr;
  }

  .offer-line img,
  .offer-preview img {
    width: 100%;
  }
}
