/*
 * groomworth.com: one stylesheet for every page.
 *
 * Paper, ink and the app's teal. The page is a warm off-white rather than the
 * app's cool grey: the site is read, not worked in, and long text reads better
 * on something closer to paper. Headlines are set in a book serif (Iowan Old
 * Style on Apple devices, Palatino or Georgia elsewhere); anything you act on
 * is in the system sans, the same face the app uses.
 *
 * System fonts only, so the site loads instantly and asks no outside server for
 * anything. That is also why there is no analytics script: the privacy policy
 * can say "no tracking" and mean it. The Content-Security-Policy in
 * netlify.toml forbids inline styles, so every style lives here.
 */

:root {
  --paper: #f6f4ef;
  --paper-sunk: #eeebe4;
  --card: #fffefb;
  --ink: #141a1b;
  --ink-2: #4b5658;
  --ink-3: #79838a;
  --rule: #ddd7cc;
  --rule-strong: #c9c2b5;
  --teal: #0e7c86;
  --teal-ink: #0a646c;
  --teal-tint: #d9eae8;
  --band: #0d2a2d;
  --band-ink: #eef3f1;
  --band-muted: #a7bebd;
  --band-rule: #25484c;
  --positive-bg: #e1efe5;
  --positive-ink: #1b5e3a;
  --caution-bg: #f6e9d0;
  --caution-ink: #774906;
  --shadow:
    0 1px 1px rgb(20 26 27 / 4%),
    0 12px 28px -12px rgb(20 26 27 / 16%),
    0 40px 80px -40px rgb(20 26 27 / 28%);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1314;
    --paper-sunk: #151b1c;
    --card: #182123;
    --ink: #edf0ee;
    --ink-2: #a9b3b3;
    --ink-3: #7f8c8d;
    --rule: #263133;
    --rule-strong: #35444a;
    --teal: #4ab7c0;
    --teal-ink: #82d1d7;
    --teal-tint: #143a3e;
    --band: #0a2124;
    --band-ink: #eef3f1;
    --band-muted: #9fb6b6;
    --band-rule: #1f4246;
    --positive-bg: #12301f;
    --positive-ink: #8fe0b0;
    --caution-bg: #33260e;
    --caution-ink: #f3c97a;
    --shadow: 0 1px 1px rgb(0 0 0 / 30%), 0 24px 60px -24px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

::selection {
  background: var(--teal-tint);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--card);
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink-3);
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 400 23px/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .nav-cta {
  color: var(--teal-ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .site-nav {
    gap: 20px;
  }

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

@media (max-width: 420px) {
  .site-header .wrap {
    gap: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .site-nav {
    gap: 16px;
    font-size: 14px;
  }
}

/* Buttons and small things */

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.button:hover {
  background: var(--teal-ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.button:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(3px);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.note {
  max-width: 36em;
  margin: 0 0 36px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 16px;
}

.note[hidden] {
  display: none;
}

.note.positive {
  background: var(--positive-bg);
  color: var(--positive-ink);
}

.note.caution {
  background: var(--caution-bg);
  color: var(--caution-ink);
}

/* Sections share one grid: a narrow label column and a wide content column. */

.split {
  display: grid;
  gap: 8px;
}

@media (min-width: 920px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 48px;
  }

  .split > .eyebrow {
    padding-top: 0.9em;
  }
}

.section-title {
  max-width: 15em;
  margin: 0;
  font: 400 clamp(34px, 4.6vw, 54px)/1.06 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Home: hero */

.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
}

.hero .wrap {
  display: grid;
  align-items: center;
  gap: clamp(56px, 7vw, 80px);
}

@media (min-width: 920px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

.hero h1 {
  margin: 0 0 28px;
  font: 400 clamp(46px, 7.2vw, 88px)/0.98 var(--serif);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--teal-ink);
}

.lede {
  max-width: 31em;
  margin: 0 0 40px;
  color: var(--ink-2);
  font-size: clamp(18px, 1.9vw, 20px);
  line-height: 1.55;
}

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

.actions .aside {
  color: var(--ink-3);
  font-size: 15px;
}

.rise {
  animation: rise 0.9s var(--ease) both;
}

.rise-2 {
  animation-delay: 0.08s;
}

.rise-3 {
  animation-delay: 0.16s;
}

.rise-4 {
  animation-delay: 0.28s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Home: the example groom */

.specimen {
  margin: 0;
}

.stage {
  position: relative;
  max-width: 420px;
  margin: 18px 0 0;
}

@media (min-width: 920px) {
  .stage {
    margin-left: auto;
  }
}

.ticket {
  padding: 28px 28px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.ticket-head .eyebrow {
  margin: 0;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--positive-bg);
  color: var(--positive-ink);
  font: 600 12px/1 var(--sans);
}

.pet {
  margin: 0 0 4px;
  font: 400 32px/1.1 var(--serif);
  letter-spacing: -0.01em;
}

.pet-meta {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 15px;
}

.rows {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.rows dt {
  color: var(--ink-2);
  font-size: 15px;
}

.rows dt small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.rows dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.paid {
  padding-top: 22px;
}

.paid-label {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 15px;
}

.paid-figure {
  margin: 0 0 18px;
  font: 400 68px/1 var(--serif);
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}

.paid-figure span {
  margin-left: 4px;
  color: var(--ink-3);
  font-size: 22px;
  letter-spacing: 0;
}

.meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-sunk);
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 81%;
  border-radius: inherit;
  background: var(--teal);
  transform-origin: left center;
  animation: fill 1.4s var(--ease) 0.5s both;
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.meter-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.chip {
  position: absolute;
  top: -20px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font: 600 14px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

.chip svg {
  width: 16px;
  height: 16px;
}

.specimen figcaption {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 920px) {
  .specimen figcaption {
    margin-left: auto;
  }
}

/* Home: the idea */

.statement {
  padding: clamp(72px, 10vw, 136px) 0;
  border-top: 1px solid var(--rule);
}

.statement-text {
  max-width: 23em;
  margin: 0;
  font: 400 clamp(27px, 3.5vw, 44px)/1.24 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.statement-text em {
  color: var(--teal-ink);
}

/* Home: how it works */

.how {
  padding: 0 0 clamp(72px, 10vw, 136px);
}

.how .split {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

.steps li {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps li {
    padding: 36px 36px 8px 0;
    border-bottom: 0;
  }

  .steps li + li {
    padding-left: 36px;
    border-left: 1px solid var(--rule);
  }
}

.step-num {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font: 400 60px/1 var(--serif);
  font-variant-numeric: lining-nums;
}

.steps h3 {
  margin: 0 0 10px;
  font: 600 19px/1.3 var(--sans);
}

.steps p {
  margin: 0;
  color: var(--ink-2);
}

/* Home: features */

.features {
  padding: clamp(72px, 10vw, 136px) 0;
  background: var(--paper-sunk);
}

.features .section-title {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.spec {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

@media (min-width: 760px) {
  .spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

.spec li {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--rule);
}

.spec h3 {
  margin: 0 0 8px;
  font: 400 24px/1.25 var(--serif);
  letter-spacing: -0.01em;
}

.spec p {
  margin: 0;
  color: var(--ink-2);
}

/* Home: privacy */

.band {
  padding: clamp(80px, 11vw, 148px) 0;
  background: var(--band);
  color: var(--band-ink);
}

.band .eyebrow {
  color: var(--band-muted);
}

.band h2 {
  margin: 0 0 24px;
  font: 400 clamp(44px, 6.4vw, 80px)/1 var(--serif);
  letter-spacing: -0.03em;
}

.band .lede {
  color: var(--band-muted);
}

.facts {
  display: grid;
  margin: 8px 0 40px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--band-rule);
}

.facts li {
  padding: 24px 0;
  border-bottom: 1px solid var(--band-rule);
}

@media (min-width: 760px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facts li {
    padding: 28px 28px 4px 0;
    border-bottom: 0;
  }

  .facts li + li {
    padding-left: 28px;
    border-left: 1px solid var(--band-rule);
  }
}

.facts strong {
  display: block;
  margin-bottom: 6px;
  font: 400 23px/1.3 var(--serif);
}

.facts span {
  color: var(--band-muted);
  font-size: 15px;
}

.band a {
  color: var(--band-ink);
}

.band a:hover {
  color: #ffffff;
}

/* Home: closing */

.closing {
  padding: clamp(88px, 12vw, 168px) 0;
}

.closing h2 {
  max-width: 11em;
  margin: 0 0 24px;
  font: 400 clamp(44px, 6.4vw, 80px)/1 var(--serif);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.closing .lede {
  margin-bottom: 36px;
}

/* Text pages: privacy, terms, account deletion, support */

.doc-head {
  padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}

.doc-head h1 {
  max-width: 14em;
  margin: 0 0 18px;
  font: 400 clamp(42px, 6.2vw, 72px)/1.02 var(--serif);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.doc-head .updated {
  max-width: 36em;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
}

.doc-body {
  display: grid;
  gap: 40px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(80px, 10vw, 128px);
}

@media (min-width: 960px) {
  .doc-body.has-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 80px;
  }
}

.toc {
  display: none;
  font-size: 14px;
  line-height: 1.4;
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 32px;
    display: block;
    align-self: start;
  }
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--rule);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--teal);
  color: var(--ink);
}

.doc {
  max-width: 680px;
}

.doc > :first-child {
  margin-top: 0;
}

.doc h2 {
  margin: 60px 0 14px;
  font: 400 29px/1.2 var(--serif);
  letter-spacing: -0.012em;
  scroll-margin-top: 24px;
}

.doc h3 {
  margin: 34px 0 8px;
  font: 600 17px/1.4 var(--sans);
}

.doc p {
  margin: 0 0 16px;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.doc li {
  margin: 8px 0;
}

.doc li::marker {
  color: var(--ink-3);
}

.summary {
  margin: 0 0 8px;
  padding: 26px 30px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
}

.summary > :last-child {
  margin-bottom: 0;
}

.summary .summary-title {
  margin: 0 0 12px;
  color: var(--teal-ink);
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom-color: var(--rule-strong);
}

/* Footer */

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.footer-brand p {
  max-width: 24em;
  margin: 16px 0 0;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--ink-3);
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a[aria-current="page"] {
  color: var(--ink);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
