:root {
  --bg: #0e0f12;
  --grid: #16181c;
  --panel: #17191e;
  --panel-hover: #1c1e24;
  --well: #24272e;
  --edge: #2c3038;
  --text: #f2f3f5;
  --muted: #a3a8b3;
  --meta: #8f95a0;
  --dim: #7a808b;
  --accent: #f03a47;
  --accent-strong: #d11f2e;
  --accent-hover: #e02634;
  --display: 'Chakra Petch', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  color: var(--text);
  font-family: var(--body);
}

main {
  box-sizing: border-box;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

svg {
  display: block;
  flex: none;
}

/* Chamfered corners: an outer "edge" layer with 1px padding, an inner fill. */
.video,
.amazon,
.social {
  --cut: 12px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.card {
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}

.video,
.amazon,
.social {
  display: flex;
  box-sizing: border-box;
  padding: 1px;
  background: var(--edge);
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: background 120ms ease;
}

.video:hover,
.amazon:hover,
.video:focus-visible,
.amazon:focus-visible {
  background: var(--accent);
}

.video:focus-visible,
.amazon:focus-visible,
.social:focus-visible {
  padding: 3px;
  background: var(--accent);
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.logo {
  display: block;
  width: 150px;
  height: 176px;
  max-width: 100%;
  object-fit: contain;
}

h1 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.handle {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.bio {
  margin: 4px 0 0;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Sections */
section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rule {
  flex: 1;
  height: 1px;
  background: var(--edge);
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

/* Video card */
.video {
  --cut: 16px;
}

.video .card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
}

.video .thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0c0e;
  overflow: hidden;
}

.video .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: var(--accent-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
}

.video .play {
  --cut: 12px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-strong);
  color: #fff;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: width 120ms ease, height 120ms ease;
}

.video .play svg {
  margin-left: 3px;
}

.video:hover .play {
  width: 72px;
  height: 72px;
}

.video .alert {
  color: var(--accent);
}

.video .thumb-msg {
  font-size: 14px;
  font-weight: 500;
  color: #c3c7cf;
}

.video .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}

.video .kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.video .yt {
  color: var(--accent);
}

.video .title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video .cta {
  --cut: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-top: 4px;
  background: var(--accent-strong);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  transition: background 120ms ease;
}

.video:hover .cta {
  background: var(--accent-hover);
}

/* Product cards (Amazon tools) */
.tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amazon .card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--panel);
  transition: background 120ms ease;
}

.amazon:hover .card {
  background: var(--panel-hover);
}

/* The photo well is a fixed 88px square so product photos of any size
   (Amazon serves them up to 1500px+) never stretch the card. */
.amazon .well {
  --cut: 8px;
  flex: none;
  position: relative;
  box-sizing: border-box;
  width: 88px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  background: #e9eaed;
  color: var(--dim);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.amazon .well img {
  display: block;
  width: 76px;
  height: 76px;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.amazon .well-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e646e;
}

.amazon .part {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: #5e646e;
}

.amazon .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.amazon .brand {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

.amazon .name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amazon .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 4px 8px;
  background: var(--well);
  font-size: 12px;
  font-weight: 600;
  transition: background 120ms ease;
}

.amazon:hover .chip {
  background: var(--accent-strong);
  color: #fff;
}

.amazon .view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.disclosure {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}

/* Footer + socials */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social {
  --cut: 10px;
  width: 52px;
  height: 52px;
  background: #24272e;
}

.social .card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-hover);
  transition: background 120ms ease;
}

.social:hover {
  background: var(--accent-strong);
}

.social:hover .card {
  background: var(--accent-strong);
  color: #fff;
}

.social.text {
  width: auto;
  height: auto;
  padding: 14px 16px;
  background: var(--panel-hover);
  font-weight: 600;
}

.copyright {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
