/* Tampan Code homepage */
:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  /* Navy and blue taken from the Tampan Code logo (blue darkened slightly so white button text stays readable). */
  --ink: #0b1a3a;
  --muted: #545a68;
  --blue: #1f6bff;
  --line: rgba(11, 26, 58, 0.14);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --ui-font: var(--body);
  --ui-ink: var(--ink);
  --ui-muted: var(--muted);
  --ui-accent: var(--blue);
  --ui-line: #cfcabe;
  --ui-radius: 10px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* The logo PNG has a white background; multiply lets the paper color show through. */
.brand img {
  mix-blend-mode: multiply;
}

.brand--small {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.site-nav a:not(.btn) {
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-nav__cta {
  min-height: 2.5rem;
  padding: 0.5em 1em;
}

@media (max-width: 40rem) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__kicker {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2.6rem, 8.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__title .ink {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.hero__lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
  align-items: start;
}

.demo-thumb a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  background: var(--paper-2);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 18px 40px -24px rgba(21, 23, 28, 0.55);
}

.demo-thumb:nth-child(2) {
  margin-top: 2.5rem;
}

.demo-thumb:nth-child(3) {
  margin-top: 1.25rem;
}

.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.demo-thumb a:hover img {
  transform: scale(1.04);
}

.demo-thumb__label {
  position: absolute;
  inset: auto 0.4rem 0.4rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  background: rgba(21, 23, 28, 0.86);
  color: #fff;
  line-height: 1.2;
}

.demo-thumb__category {
  font-size: 0.72rem;
  color: #c9cbd3;
}

.demo-thumb__action {
  font-size: 0.82rem;
  font-weight: 700;
}

/* Section heads ----------------------------------------------------------- */
.section-head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Demo list --------------------------------------------------------------- */
.demos {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  border-top: 1px solid var(--line);
}

.demo-list {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6.5rem);
}

.demo-row {
  display: grid;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .demo-row {
    grid-template-columns: 1.15fr 1fr;
  }

  .demo-row:nth-child(even) .demo-row__media {
    order: 2;
  }
}

.demo-row__media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}

.demo-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.demo-row__media:hover img {
  transform: scale(1.03);
}

.demo-row__body {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.demo-row__eyebrow {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-weight: 600;
  color: var(--muted);
}

.demo-row__eyebrow span {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--blue);
}

.demo-row__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.demo-row__title a {
  text-decoration: none;
}

.demo-row__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.demo-row__headline {
  font-size: 1.15rem;
  max-width: 32rem;
}

.demo-row__columns {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 34rem) {
  .demo-row__columns {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-row__columns h4 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-row__flow,
.demo-row__highlights {
  display: grid;
  gap: 0.5rem;
  font-size: 0.97rem;
}

.demo-row__flow {
  counter-reset: flow;
}

.demo-row__flow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
}

.demo-row__flow li::before {
  content: counter(flow) ".";
  font-weight: 700;
  color: var(--blue);
}

.demo-row__highlights li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
}

.demo-row__highlights li::before {
  content: "–";
  color: var(--muted);
}

.demo-row__path {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Included ---------------------------------------------------------------- */
.included {
  display: grid;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  background: var(--paper-2);
}

@media (min-width: 62rem) {
  .included {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

.included__list {
  display: grid;
  gap: 0;
}

@media (min-width: 40rem) {
  .included__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

.included__list div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.included__list dt {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.included__list dd {
  color: var(--muted);
}

/* Process ----------------------------------------------------------------- */
.process {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}

.process__steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 48rem) {
  .process__steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process__steps li {
  counter-increment: step;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}

.process__steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  color: var(--blue);
}

.process__steps h3 {
  font-size: 1.35rem;
}

.process__steps p {
  color: var(--muted);
}

/* Contact ----------------------------------------------------------------- */
.contact {
  display: grid;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

@media (min-width: 62rem) {
  .contact {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

.contact__intro p {
  margin-top: 1rem;
  max-width: 28rem;
  color: #c9cbd3;
  font-size: 1.1rem;
}

.contact__panel {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.contact__form {
  display: grid;
  gap: 1.25rem;
}

.contact__form .btn {
  justify-self: start;
}

.contact__panel .summary {
  border: 0;
  padding: 0;
  background: transparent;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 2rem var(--gutter) 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .brand {
  color: var(--ink);
}

.site-footer__fine {
  margin-left: auto;
  font-size: 0.85rem;
}
