/* Journal Word Formatter page styles. Ported from the standalone release site. */

:root {
  --ink: #112a35;
  --ink-soft: #36515d;
  --paper: #f7f8f3;
  --paper-deep: #edf1e9;
  --teal: #0d6a70;
  --teal-bright: #12a7a0;
  --change: #c3265a;
  --rule: #c9d4cd;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0 48px, rgba(13, 106, 112, 0.08) 48px 49px, transparent 49px),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--change);
  outline-offset: 4px;
}

.page-shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.masthead {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.release-stamp {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-stamp strong {
  color: var(--ink);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: center;
  padding: 84px 0 96px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

h1 span {
  display: block;
  color: var(--change);
  font-style: italic;
}

.lede {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

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

.primary-action {
  min-height: 56px;
  display: inline-flex;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-weight: 750;
  transition: transform 150ms ease, background 150ms ease;
}

.primary-action:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.secondary-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 750;
}

.requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  list-style: none;
}

.requirements li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--teal);
  font-weight: 900;
}

.revision-card {
  position: relative;
  min-height: 440px;
  padding: 58px 48px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(17, 42, 53, 0.12);
}

.revision-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 1px;
  background: rgba(195, 38, 90, 0.32);
}

.document-lines {
  display: grid;
  gap: 20px;
}

.document-lines span {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #dce4df;
}

.document-lines .short {
  width: 68%;
}

.document-lines .change {
  position: relative;
  width: 84%;
  background: rgba(195, 38, 90, 0.18);
}

.document-lines .change::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: var(--change);
}

.comment-pin {
  position: absolute;
  top: 170px;
  right: -17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--change);
  color: var(--white);
  font-weight: 800;
}

.comment {
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: min(350px, 86%);
  padding: 24px;
  border-top: 4px solid var(--change);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 48px rgba(17, 42, 53, 0.2);
}

.comment p {
  margin-bottom: 10px;
  line-height: 1.45;
}

.comment .comment-author,
.comment .comment-source {
  color: #9be3dc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comment .comment-source {
  margin-bottom: 0;
  color: #c9d4cd;
  font-weight: 600;
}

.quick-start,
.boundary-grid {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  column-gap: 48px;
  align-items: start;
}

.section-heading .eyebrow {
  grid-column: 1;
}

.section-heading h2 {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.section-heading > p:last-child {
  grid-column: 2;
}

h2 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 64px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.steps li {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 28px 28px 0;
  border-right: 1px solid var(--rule);
}

.steps li + li {
  padding-left: 28px;
}

.steps li:last-child {
  border-right: 0;
}

.step-number {
  color: var(--change);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.boundary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 64px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.boundary-columns article {
  padding: clamp(34px, 5vw, 64px);
  background: var(--white);
}

.boundary-columns .refuses {
  background: var(--ink);
  color: var(--white);
}

.column-label {
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.refuses .column-label {
  color: #9be3dc;
}

.boundary-columns ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-columns li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}

.does li::before,
.refuses li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}

.does li::before {
  content: "✓";
  color: var(--teal);
}

.refuses li::before {
  content: "×";
  color: #ff7fa5;
}

.release-notes,
.surface-note {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 48px;
  padding: 74px 0;
  border-top: 1px solid var(--rule);
}

.release-notes h2,
.surface-note h2 {
  font-size: clamp(32px, 4vw, 50px);
}

.release-notes > p,
.surface-note > p {
  align-self: end;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.62;
}

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  color: var(--ink-soft);
  font-size: 12px;
}

@media (max-width: 920px) {
  body {
    background: var(--paper);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .revision-card {
    width: min(620px, calc(100% - 28px));
  }

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

  .steps li:nth-child(2) {
    border-right: 0;
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 30px, 1220px);
  }

  .release-stamp span {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 72px;
    padding: 52px 0 90px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .secondary-action {
    justify-content: center;
  }

  .revision-card {
    min-height: 370px;
    padding: 46px 34px;
  }

  .comment {
    right: -14px;
    bottom: -48px;
  }

  .quick-start,
  .boundary-grid {
    padding: 74px 0;
  }

  .section-heading,
  .release-notes,
  .surface-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading h2,
  .section-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

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

  .steps li,
  .steps li + li {
    min-height: 210px;
    padding: 22px 0;
    border-top: 1px solid var(--rule);
    border-right: 0;
  }

  .boundary-columns {
    margin-top: 42px;
  }

  .release-notes,
  .surface-note {
    padding: 58px 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-action {
    transition: none;
  }
}

/* Additions for the jessemaddox.com static port. */

.copy-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

footer a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
