/* Shared styles for standalone /practice/ prompt pages. */
:root {
  color-scheme: light;
  --ink: #142937;
  --muted: #49616d;
  --dim: #647681;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #d8e1df;
  --line-strong: #b9cbc8;
  --cyan: #d7f4f4;
  --cyan-strong: #086a75;
  --sage: #e6f0e7;
  --page: 72.5rem;
  --content: 58rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--paper);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan-strong);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--page));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(251 250 245 / 95%);
}

.header-inner {
  min-height: 4.875rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand img {
  width: 2.4375rem;
  height: 2.4375rem;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.625rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
}

.nav a:hover,
.breadcrumb a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 2.6875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.0625rem;
  border-radius: 0.8125rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 800;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--dim);
  font-size: 0.8125rem;
}

.breadcrumb a {
  text-underline-offset: 0.22em;
}

.hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.75rem, 5vw, 3.75rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy > p {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
}

.practice-section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-block: 1px solid var(--line);
  background: var(--sage);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.step-detail {
  max-width: var(--content);
  padding: clamp(1.15rem, 3vw, 1.7rem);
  border: 1px solid #c7d7d1;
  border-radius: 1.1rem;
  background: var(--surface);
  box-shadow: 0 0.75rem 2rem rgb(20 41 55 / 8%);
}

.step-eyebrow {
  margin-bottom: 0.8rem;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.step-detail h3 {
  margin-bottom: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.step-description {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.button {
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--cyan-strong);
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--cyan-strong);
  background: var(--cyan-strong);
  color: #fff;
}

.button--primary:hover {
  background: #0b5862;
}

.button img {
  width: 1rem;
  height: 1rem;
  display: block;
}

.action-note {
  width: 100%;
  margin: 0.1rem 0 0;
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.55;
}

.optional-help {
  margin-top: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.optional-help summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 650;
}

.optional-help summary:hover {
  color: var(--cyan-strong);
}

.help-content {
  margin-top: 1rem;
}

.detail-label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--dim);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  min-height: 5.2rem;
  padding: 0.8rem;
  border-top: 1px solid var(--line-strong);
  background: #f3f6f1;
  counter-increment: steps;
}

.steps li::before {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cyan-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 750;
  content: "0" counter(steps);
}

.steps strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.8rem;
}

.steps span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.prompt-box {
  margin-top: 1.25rem;
}

.prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.prompt-heading .detail-label {
  margin-bottom: 0;
}

.copy-button {
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--cyan-strong);
}

pre {
  max-height: 14rem;
  margin: 0;
  padding: 0.9rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f3f6f1;
  color: var(--muted);
  font: 0.68rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

/* A single prompt should feel immediate, not like a multi-step journey. */
main {
  padding: 1.25rem 0 clamp(3rem, 6vw, 4.5rem);
}

.practice {
  max-width: var(--content);
}

.practice .breadcrumb {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--cyan-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.practice h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.introduction {
  max-width: 42rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.actions .button {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 800;
}

.actions .button--primary {
  background: var(--cyan-strong);
  color: #fff;
}

.account-note {
  margin: 0.8rem 0 0;
  color: var(--dim);
  font-size: 0.75rem;
  line-height: 1.5;
}

.practice > .steps {
  gap: 1px;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--line);
}

.practice > .steps li {
  min-height: 8rem;
  padding: 1.25rem;
  border-top: 0;
  background: var(--sage);
}

.practice > .steps li::before {
  margin-bottom: 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.practice > .steps strong {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.practice > .steps span {
  font-size: 0.82rem;
  line-height: 1.5;
}

.practice > .prompt-box {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.practice > .prompt-box .prompt-heading {
  margin-bottom: 1rem;
}

.practice > .prompt-box h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.practice > .prompt-box pre {
  max-height: 24rem;
  padding: 1rem;
  border: 0;
  font-size: 0.78rem;
  line-height: 1.65;
}

.prompt-actions {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.example-video {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.example-video h2 {
  margin-bottom: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.example-video > p {
  max-width: 42rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.video-facade,
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-facade {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
}

.video-facade picture,
.video-facade img {
  width: 100%;
  height: 100%;
  display: block;
}

.video-facade img {
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-facade:hover img {
  transform: scale(1.01);
}

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(3.5rem, 8vw, 4.75rem);
  height: clamp(3.5rem, 8vw, 4.75rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(20 41 55 / 92%);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0.65rem 1.75rem rgb(0 0 0 / 22%);
}

.video-facade__play svg {
  width: 42%;
  fill: currentColor;
  transform: translateX(0.1rem);
}

.video-frame {
  display: block;
  border: 0;
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
}

.video-caption a {
  color: var(--cyan-strong);
  font-weight: 800;
  text-decoration: none;
}

.video-caption a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  padding: 1.9375rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-row,
.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  justify-content: flex-end;
  gap: 1.2rem;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 48rem) {
  .nav {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: 0;
  }
}

@media (max-width: 36rem) {
  .actions,
  .practice-actions,
  .footer-row,
  .footer-links,
  .prompt-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-links {
    gap: 0.7rem;
  }

  .video-caption--stacked-mobile {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .video-facade img {
    transition: none;
  }
}
