/* Wrightway Software homepage. Subpages keep style.css. */

@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-head.woff2") format("woff2");
  font-weight: 560;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-450.woff2") format("woff2");
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-display-650.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FAF9F6;
  --ink: #141414;
  --muted: #5C5B53;
  --line: #DAD7CE;
  --grid: #14141417;
  --paper: #FFFDF8;
  --stone: #EEEAE0;
  --sage: #E3EADF;
  --sage-ink: #5A7458;
  --product: #F8ECE6;
  --product-stage: #F0DBD1;
  --product-line: #DFC6BA;
  --product-grid: #14141421;
  --accent: #C2462B;
  --on-accent: #FFFDF9;
  --accent-text: #A83620;
  --serif: Fraunces, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --ink: #FAF9F6;
    --muted: #C2BFB4;
    --line: #45433B;
    --grid: #FAF9F620;
    --paper: #211F1C;
    --stone: #262520;
    --sage: #222B23;
    --sage-ink: #A9BFA6;
    --product: #281D19;
    --product-stage: #37261F;
    --product-line: #654438;
    --product-grid: #FAF9F626;
    --accent: #E5573A;
    --on-accent: #141414;
    --accent-text: #FF917B;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 450 16px/1.6 Inter, system-ui, sans-serif;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
picture, img { display: block; max-width: 100%; }
picture img { height: auto; }
a:focus-visible { outline: 3px solid var(--sage-ink); outline-offset: 5px; }
.skip {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-130%);
  background: var(--paper);
  padding: 10px 16px;
  z-index: 4;
}
.skip:focus { transform: none; }
.wrap {
  width: min(1190px, calc(100% - 2 * clamp(20px, 4vw, 56px)));
  margin-inline: auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  min-height: 78px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -.035em;
  font-size: 19px;
  text-decoration: none;
}
.brand img { flex: none; }
.topbar nav { display: flex; align-items: center; gap: 27px; font-weight: 600; font-size: 13px; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.topbar nav a:last-child {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  white-space: nowrap;
}

.hero {
  padding-top: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
}
.eyebrow,
.board-top,
.board-no,
.board-bottom,
.section-rule > span,
.device-stage figcaption {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero .eyebrow,
.next .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 17px;
}
.status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-ink);
}
.hero h1 {
  font: 560 clamp(49px, 6.6vw, 95px)/.99 var(--serif);
  letter-spacing: -.067em;
}
.lede {
  font-size: clamp(16px, 1.6vw, 21px);
  max-width: 41ch;
  color: var(--muted);
  margin-top: 21px;
}
.actions {
  display: flex;
  gap: 12px 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 15px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { opacity: .86; }
.text-link { font-weight: 600; font-size: 14px; text-underline-offset: 4px; }
.text-link span { margin-left: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

.mark-board {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  display: grid;
  place-items: center;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 21px;
  overflow: hidden;
}
.mark-board::before {
  content: "";
  position: absolute;
  inset: 44px 19px 43px;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 29px 29px;
  border-right: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}
.board-top, .board-no, .board-bottom { position: absolute; color: var(--muted); font-size: 9px; }
.board-top { top: 17px; left: 18px; }
.board-no { top: 17px; right: 18px; }
.board-bottom { bottom: 15px; left: 18px; }
.drawing { width: 74%; position: relative; display: grid; place-items: center; }
.drawing span {
  position: absolute;
  inset: 19% 3%;
  border: 1px solid var(--grid);
  background: var(--stone);
  z-index: -1;
}
.drawing::after,
.drawing::before { position: absolute; content: ""; pointer-events: none; }
.drawing::before { left: 50%; top: 11%; bottom: 11%; border-left: 1px dashed var(--grid); }
.drawing::after { left: 0; right: 0; top: 50%; border-top: 1px dashed var(--grid); }
.drawing img { width: min(290px, 24vw); height: auto; }

.section { margin-top: 77px; scroll-margin-top: 20px; }
.section-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-bottom: 14px;
  color: var(--muted);
}
.section-rule > span { font-size: 10px; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--product-line);
  border-radius: 22px;
  background: var(--product);
}
.product-copy { padding: clamp(24px, 4vw, 54px); }
.product-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.product-brand img { border-radius: 11px; }
.product-brand h2 { font: 560 31px/1 var(--serif); letter-spacing: -.05em; }
.product-head {
  font: 560 clamp(32px, 4.2vw, 57px)/1.01 var(--serif);
  letter-spacing: -.055em;
  max-width: 17ch;
}
.product-body { margin-top: 12px; color: var(--muted); max-width: 48ch; }
.price { margin-top: 19px; border-top: 1px solid var(--product-line); padding-top: 14px; }
.price strong {
  font: 560 43px/.95 var(--serif);
  letter-spacing: -.045em;
  color: var(--accent-text);
}
.price strong span {
  font: 650 13px/1.4 Inter, sans-serif;
  letter-spacing: 0;
  color: var(--ink);
  margin-left: 4px;
}
.price p { color: var(--muted); font-size: 13px; margin-top: 7px; max-width: 46ch; }
.product-button { background: var(--accent); color: var(--on-accent); }
.product .text-link { color: var(--accent-text); }

.device-stage {
  min-height: 460px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 28px 22px 44px;
  background: var(--product-stage);
  overflow: hidden;
}
.device-stage::before {
  content: "";
  position: absolute;
  inset: 20px 20px 42px;
  border-radius: 10px;
  border: 1px solid var(--product-grid);
  background: repeating-linear-gradient(90deg, transparent 0 31px, var(--product-grid) 31px 32px);
  z-index: -2;
}
.device-stage::after {
  content: "";
  position: absolute;
  width: min(70%, 330px);
  height: 85%;
  bottom: 8%;
  border-radius: 50% 50% 10px 10px;
  background: var(--accent);
  z-index: -1;
}
.device-frame {
  position: relative;
  width: clamp(150px, 16vw, 193px);
  background: #141414;
  border: 1px solid #68645C;
  border-radius: 27px;
  padding: 6px;
  box-shadow: 7px 8px 0 #14141430;
}
.device-screen {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  background: #FAF9F6;
  line-height: 0;
}
.device-screen picture { display: block; }
.device-screen img { width: 100%; height: auto; }
.device-screen::after {
  content: "";
  position: absolute;
  top: 2.75%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #141414;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .device-screen { background: #141414; }
}
.device-stage figcaption {
  position: absolute;
  bottom: 15px;
  color: var(--ink);
  font-size: 9px;
  text-align: center;
}

.rules-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.rules-head h2,
.next h2 {
  font: 560 clamp(36px, 4.9vw, 66px)/1.01 var(--serif);
  letter-spacing: -.06em;
}
.rules-head > a { margin-bottom: 4px; white-space: nowrap; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.rule {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--stone);
  padding: 19px 22px 23px;
}
.rule:nth-child(2) { background: var(--sage); }
.rule:nth-child(3) { background: var(--paper); }
.rule img { width: min(100%, 275px); height: auto; margin: 0 auto 6px; }
.rule .eyebrow { color: var(--muted); }
.rule h3 {
  font-weight: 650;
  font-size: clamp(19px, 2.05vw, 27px);
  letter-spacing: -.05em;
  line-height: 1.15;
  margin: 7px 0;
}
.rule p:last-child { font-size: 14px; color: var(--muted); }

.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 4.5vw, 54px);
}
.next h2 { font-size: clamp(33px, 4.6vw, 61px); max-width: 18ch; }
.next .button { flex: none; }
.footer {
  border-top: 1px solid var(--line);
  margin-top: 66px;
  padding-block: 17px 25px;
}
.footer-top {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.footer-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.footer-links a { font-weight: 600; font-size: 14px; text-underline-offset: 4px; }
.footer-top .brand { font-size: 16px; }
.footer p { color: var(--muted); font-size: 12px; }
.footer .text-link { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .mark-board { min-height: 325px; }
  .section { margin-top: 56px; }
  .rule { padding-inline: 15px; }
}
@media (max-width: 690px) {
  .topbar { min-height: 65px; }
  .topbar nav { gap: 10px; font-size: 12px; }
  .topbar nav a:not(:last-child) { display: none; }
  .brand { font-size: 17px; gap: 7px; }
  .brand img { width: 30px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 24px; }
  .hero h1 { font-size: clamp(45px, 10.9vw, 65px); }
  .hero .eyebrow { margin-bottom: 10px; }
  .lede { margin-top: 13px; }
  .actions { margin-top: 17px; }
  .mark-board { min-height: 222px; }
  .drawing img { width: 159px; }
  .section { margin-top: 43px; }
  .product { grid-template-columns: 1fr; }
  .product-copy { padding: 22px 19px; }
  .device-stage { min-height: 342px; padding-top: 15px; padding-bottom: 37px; }
  .device-frame { width: 139px; border-radius: 23px; }
  .device-screen { border-radius: 17px; }
  .rules-head { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 12px; }
  .rules { grid-template-columns: 1fr; gap: 8px; }
  .rule {
    display: grid;
    grid-template-columns: 34% 1fr;
    align-items: center;
    gap: 9px;
    padding: 12px;
  }
  .rule img { margin: auto; }
  .rule .eyebrow { font-size: 10px; }
  .rule h3 { margin: 5px 0; }
  .rule p:last-child { font-size: 13px; }
  .next { align-items: flex-start; flex-direction: column; gap: 15px; }
  .footer { margin-top: 40px; }
  .footer-side { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .desktop-break { display: none; }
  .hero h1 { font-size: 41px; }
  .actions { gap: 10px 14px; }
  .button, .text-link { font-size: 13px; }
}
.next h2 { text-wrap: balance; max-width: 21ch; }
