/* Smartduck preview. Ink on Paper. Signal teal is hover fill only, never text. */

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/syne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14171a;
  --paper: #f6f3ec;
  --harbour: #0e5f5c;
  --signal: #2a9d8f;
  --line: rgba(20, 23, 26, 0.2);
  --header-h: 4.25rem;
  --page: 72rem;
  --measure: 40rem;
  --gutter: 1.25rem;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

p,
ul,
ol,
dl,
address {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--harbour);
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--harbour);
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a,
button,
input,
textarea,
select,
summary,
[tabindex] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  scroll-margin-bottom: 1.25rem;
}

::selection {
  background: var(--harbour);
  color: var(--paper);
}

.skip-link {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

main:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.mark {
  width: 36px;
  height: 26px;
  flex: none;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.lockup:hover,
.lockup:visited {
  color: var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding: 0.35rem var(--gutter);
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 600 1rem/1 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
}

.js .menu-button {
  display: inline-flex;
}

.site-nav {
  flex: 1 0 100%;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.45rem;
}

.nav-dot {
  display: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.site-nav a:hover {
  color: var(--harbour);
}

.site-nav a[aria-current="page"] {
  color: var(--harbour);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--harbour);
  background: var(--harbour);
  color: var(--paper);
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

a.button,
a.button:visited {
  color: var(--paper);
}

.button:hover,
a.button:hover,
.button:visited:hover,
a.button:focus-visible {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.button[aria-current="page"] {
  box-shadow: inset 0 0 0 2px var(--paper);
}

.button[aria-current="page"]:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mono,
.money {
  font-family: var(--font-mono);
  font-weight: 400;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.money {
  white-space: nowrap;
}

/* The mono comma is a full digit wide, so the thousands separator uses the body face. */
.num-sep {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  font-variant-numeric: normal;
  font-feature-settings: "kern" 1;
  margin-left: -0.05em;
  margin-right: -0.05em;
}

.hero {
  padding-block: 2.5rem 2.75rem;
}

.hero h1 {
  font-size: 2.25rem;
  max-width: 11em;
}

.lede {
  max-width: 38rem;
  margin-top: 1.15rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.section h2 + p,
.section .lede {
  margin-top: 0.85rem;
}

.tiles {
  margin-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.tile {
  padding: 1.4rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.tile h3 {
  margin-bottom: 0.45rem;
}

.tile p + p {
  margin-top: 0.45rem;
}

.steps {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  align-items: baseline;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.step-num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--harbour);
}

.steps h3 {
  font-size: 1.25rem;
}

.steps p {
  margin: 0;
}

.contact-strip-links {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
}

.contact-strip-links a,
.detail-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
}

.page-intro {
  padding: 2.5rem 0 0.5rem;
}

.page-intro .lede {
  margin-top: 1rem;
}

.stack {
  padding: 1.75rem 0 3rem;
}

.stack > * + * {
  margin-top: 2.25rem;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 0.85rem;
}

.rule-list,
.skills {
  max-width: var(--measure);
  margin-top: 0.9rem;
  padding: 0;
  list-style: none;
}

.rule-list li,
.skills li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.skills li:last-child,
.rule-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.roles {
  border-top: 1px solid var(--line);
}

.roles h3 {
  margin: 0;
  padding-top: 0.85rem;
  font-size: 1.2rem;
}

.roles p {
  margin: 0.25rem 0 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.methods {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
  max-width: var(--measure);
}

.methods li {
  padding: 0.35rem 0 0.85rem;
}

.methods li::marker {
  color: var(--harbour);
  font-family: var(--font-display);
  font-weight: 700;
}

.methods h3 {
  font-size: 1.2rem;
}

.methods p {
  margin-top: 0.25rem;
}

.gst-lead {
  margin-top: 0.85rem;
  font-size: 1.125rem;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.5rem;
  reading-flow: flex-visual;
}

.plan-list:not([data-ordered]) .plan--subscription {
  order: -1;
}

.plan {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 1.2rem 1.1rem 1.25rem;
}

.plan--subscription {
  border-color: var(--harbour);
  box-shadow: inset 0 0 0 1px var(--harbour);
}

.usual {
  margin: 0 0 0.35rem;
  min-height: 1.3em;
  color: var(--harbour);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.usual-slot {
  display: none;
}

.plan h2 {
  font-size: 1.55rem;
}

.figures {
  margin: 0.85rem 0 0;
}

.figures div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  border-top: 1px solid var(--line);
}

.figures dt,
.figures dd {
  margin: 0;
}

.figures .money {
  font-size: 1.25rem;
}

.gst-under {
  display: block;
  margin: 0.45rem 0 0;
  font-size: 1rem;
}

.plan .term,
.plan .blurb {
  margin-top: 0.85rem;
}

.plan-notes {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.address {
  font-style: normal;
}

.detail-block {
  margin-top: 1.25rem;
}

.detail-block .address {
  margin-top: 0.35rem;
}

.form {
  max-width: 36rem;
  margin-top: 0.4rem;
}

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

.field + .field {
  margin-top: 1rem;
}

.field label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-sans);
}

input[type="text"],
input[type="email"] {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  line-height: 1.25;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-width: 2px;
}

.field-error,
.form-error {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.field-error {
  margin-top: 0.35rem;
}

.form .button {
  margin-top: 1.15rem;
  width: 100%;
}

.form-error {
  margin-top: 1rem;
  padding: 0.15rem 0 0.15rem 0.75rem;
  border-left: 2px solid var(--ink);
}

.form-note {
  max-width: 36rem;
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-block: 1.5rem 2rem;
}

.footer-inner .lockup {
  margin-bottom: 0.35rem;
}

.footer-inner a {
  display: flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}

.footer-inner address {
  display: block;
  min-height: 44px;
  padding-block: 0.55rem;
  font-style: normal;
}

@media (max-width: 420px) {
  :root {
    --gutter: 1rem;
  }

  .wordmark {
    font-size: 1.12rem;
  }

  .mark {
    width: 32px;
    height: 23px;
  }

  .button-contact,
  .menu-button {
    padding-inline: 0.65rem;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 2.5rem;
    --header-h: 4.5rem;
  }

  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .menu-button,
  .js .menu-button {
    display: none;
  }

  .header-bar {
    flex-wrap: nowrap;
    gap: 1rem 1.5rem;
  }

  .site-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
  }

  .nav-dot {
    display: block;
    color: var(--ink);
    padding-inline: 0.2rem;
  }

  .site-nav a {
    min-height: 44px;
    padding-inline: 0.45rem;
    border-top: 0;
  }

  .hero {
    padding-block: 5rem 4.25rem;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .lede {
    font-size: 1.35rem;
  }

  .section {
    padding-block: 4rem;
  }

  .usual-slot {
    display: block;
  }

  .page-intro {
    padding-top: 4.25rem;
  }

  .tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .tile {
    border-bottom: 0;
    padding: 1.6rem 1.5rem 1.75rem 0;
  }

  .tile + .tile {
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .steps li {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  .step-num {
    grid-row: auto;
    font-size: 2rem;
  }

  .contact-strip {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 2rem;
    align-items: center;
  }

  .contact-strip h2 {
    grid-column: 1;
  }

  .contact-strip-links {
    grid-column: 1;
    flex-direction: row;
    gap: 1.75rem;
    margin-top: 0.35rem;
  }

  .contact-strip-links a,
  .detail-link {
    width: auto;
  }

  .contact-strip .actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .methods {
    max-width: none;
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .methods li {
    padding: 0 1.25rem 0 0;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
  }

  .plan-list {
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
  }

  .plan-list:not([data-ordered]) .plan--subscription {
    order: 0;
  }

  .plan {
    flex: 1 1 0;
  }

  .gst-under {
    display: none;
  }

  .plan-notes {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }

  .actions .button,
  .form .button {
    width: auto;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.35rem;
    padding-block: 1.75rem 2.25rem;
  }

  .footer-inner .lockup {
    margin-bottom: 0;
    margin-right: 0.5rem;
  }
}

@media (max-width: 959px) {
  .header-bar .lockup {
    order: 1;
    margin-right: auto;
  }

  .header-tools {
    order: 2;
  }

  .site-nav {
    order: 3;
  }

  .js .site-nav {
    display: none;
  }

  .js.nav-open .site-nav {
    display: block;
  }

  .actions .button {
    width: 100%;
  }

  .actions .text-link,
  .footer-inner a,
  .contact-strip-links a,
  .detail-link {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 44px;
    min-height: 44px;
  }

  .footer-inner a,
  .contact-strip-links a,
  .detail-link {
    width: 100%;
  }
}

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

/* Temporary hit-area overlay. Off unless the page is opened with ?debug=taps. */
html.debug-taps a.text-link,
html.debug-taps .contact-strip-links a,
html.debug-taps .detail-link,
html.debug-taps .footer-inner a[href^="mailto:"],
html.debug-taps .footer-inner a[href^="tel:"],
html.debug-taps .footer-inner a[href="/privacy/"],
html.debug-taps input[type="text"],
html.debug-taps input[type="email"] {
  background: rgba(14, 95, 92, 0.16);
  box-shadow: inset 0 0 0 2px #0e5f5c;
}
