/* Ryan Haffele Software. Local stylesheet. No remote fonts or images. */

:root {
  --bg: #f3efe4;
  --paper: #fffdf8;
  --ink: #1a1714;
  --muted: #3c342c;
  --line: #d2c7b6;
  --link: #0c3c64;
  --visited: #3d215c;
  --header: #1a1714;
  --header-text: #f6f1e6;
  --header-dim: #e6dccb;
  --pine: #1b4332;
  --copper: #9a4e32;
  --code-bg: #efe6d6;
  --focus: #0c3c64;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  padding: 0.6rem 0.9rem;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.site-header :focus,
.site-footer :focus {
  outline-color: var(--header-text);
}

.wrap {
  width: min(66rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--header);
  color: var(--header-text);
  border-bottom: 4px solid var(--copper);
}

.site-nav {
  padding-top: 1rem;
  padding-bottom: 0.85rem;
}

.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}

.brand,
.origin,
.email {
  margin: 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.origin {
  color: var(--header-dim);
}

.site-header a,
.site-footer a,
.site-header a:visited,
.site-footer a:visited {
  color: var(--header-text);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.4rem 0;
}

.nav-list a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

main {
  flex: 1 0 auto;
  padding: 1.75rem 0 3rem;
}

main h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 1.15rem + 1.8vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.25;
}

h3 {
  margin: 1.3rem 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

p,
ul {
  margin: 0.75rem 0;
}

ul {
  padding-left: 1.25rem;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 40rem;
}

.prose,
.policy {
  max-width: 42rem;
}

.catalog {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 46rem;
}

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

.catalog > li:last-child {
  border-bottom: 1px solid var(--line);
}

.catalog h2 {
  margin-top: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
  max-width: 46rem;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem 0.3rem;
  margin: 0;
}

.plan-pro {
  border-color: var(--ink);
  box-shadow: inset 0 4px 0 var(--pine);
}

.price {
  margin: 0.2rem 0;
}

.price-amount {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.price-alt {
  margin: 0.15rem 0 0.6rem;
  font-weight: 700;
}

.store-note {
  margin: 1rem 0 1.25rem;
}

button.soon {
  display: inline-block;
  max-width: 100%;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
  background: var(--code-bg);
  border: 2px solid var(--ink);
  padding: 0.7rem 0.95rem;
  cursor: not-allowed;
  opacity: 1;
}

button.soon:disabled {
  opacity: 1;
  color: var(--ink);
  background: var(--code-bg);
}

.fine-print {
  font-size: 0.95rem;
}

.policy h2 {
  margin-top: 1.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.policy a,
.policy code,
.prose a {
  overflow-wrap: anywhere;
}

code {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.05em 0.28em;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--paper);
}

th,
td {
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  overflow-wrap: anywhere;
}

th {
  background: var(--code-bg);
  font-weight: 700;
}

.site-footer {
  background: var(--header);
  color: var(--header-text);
  border-top: 4px solid var(--copper);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 2rem;
  padding-block: 1.4rem 2rem;
}

address {
  font-style: normal;
}

address span {
  display: block;
}

.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.site-footer .nav-list {
  margin-top: 0;
}

@media (max-width: 36rem) {
  .identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .price-amount {
    font-size: 1.4rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer {
    background: #fff;
    color: #000;
    border-color: #000;
  }

  .site-header a,
  .site-footer a,
  .site-header a:visited,
  .site-footer a:visited,
  .origin {
    color: #000;
  }

  .skip-link {
    display: none;
  }
}
