:root {
  --ink: #161616;
  --muted: #6c6c6c;
  --line: #e6e1d8;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #8f5136;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

header {
  align-items: center;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a,
nav button,
.button,
button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  min-height: 38px;
  padding: 9px 13px;
  text-decoration: none;
}

nav a {
  background: transparent;
  color: var(--ink);
}

nav form {
  margin: 0;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 20px 64px;
}

.hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding: 28px 0;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 68px);
  line-height: 0.98;
  margin: 0 0 16px;
  max-width: 940px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card,
.panel,
table,
.stats > div {
  background: var(--panel);
  border: 1px solid var(--line);
}

.product-card img {
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-card h3,
.product-card p {
  margin: 0;
}

.product-card span,
.note {
  color: var(--muted);
  font-size: 13px;
}

.product-detail {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.8fr);
}

.product-detail img {
  background: #eee;
  max-height: 720px;
  object-fit: cover;
  width: 100%;
}

.panel {
  display: grid;
  gap: 14px;
  max-width: 720px;
  padding: 20px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  font: inherit;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

textarea {
  min-height: 110px;
}

table {
  border-collapse: collapse;
  margin-top: 20px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 22px;
}

.stats > div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.stats strong {
  font-size: 32px;
}

.stats span,
.total {
  color: var(--muted);
}

.title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

code {
  background: #eee8de;
  padding: 2px 5px;
}

@media (max-width: 760px) {
  header,
  .product-detail,
  .title-row {
    display: block;
  }

  nav {
    margin-top: 12px;
  }

  .product-detail img {
    margin-bottom: 20px;
  }
}
