/* Golden Rawr, LLC. One stylesheet, system fonts, no third-party requests. */

:root {
  color-scheme: light dark;
  --paper: #faf7f0;
  --surface: #ffffff;
  --ink: #1f1b16;
  --muted: #5c5547;
  --rule: #e4dccb;
  --gold: #c8962b;
  --gold-ink: #7a5a0c;
  --focus: #1f1b16;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140f;
    --surface: #201c15;
    --ink: #f3ede0;
    --muted: #b9b09d;
    --rule: #3a3327;
    --gold: #d9a93f;
    --gold-ink: #e3b958;
    --focus: #f3ede0;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.5rem;
}

.site-nav a:hover {
  background: var(--surface);
  text-decoration: underline;
}

/* Sections */

main > section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

main > section + section {
  border-top: 1px solid var(--rule);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  letter-spacing: -0.01em;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--muted);
  max-width: 46ch;
}

.hero {
  position: relative;
}

.hero .wrap::after {
  content: "";
  display: block;
  width: 5rem;
  height: 0.3rem;
  margin-top: 2.25rem;
  background: var(--gold);
  border-radius: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.button.quiet {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  text-decoration: underline;
}

/* Company facts */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  overflow: hidden;
}

.facts div {
  background: var(--surface);
  padding: 1.1rem 1.25rem;
}

.facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* Brand card */

.card {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
}

@media (min-width: 46rem) {
  .card {
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.card-logo img {
  width: 100%;
  max-width: 15rem;
  height: auto;
}

.fineprint {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

address {
  font-style: normal;
}

.contact-grid a {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

/* Legal page */

.legal h1 {
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  max-width: none;
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
}

.legal ul {
  max-width: var(--measure);
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a,
.contact-grid a,
.legal p > a {
  display: inline-block;
  padding-block: 0.55rem;
}

/* Inner pages */

.site-nav a[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  font-weight: 600;
}

.site-footer a[aria-current="page"] {
  font-weight: 600;
}

main > .page-head {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem);
}

.page-head h1 {
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  max-width: 22ch;
}

.page-head .lede {
  max-width: 58ch;
}

main > .page-head + section {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.5rem;
}

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

.tile p {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.tags li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.92rem;
}

.card + .card {
  margin-top: 1.5rem;
}

.card h2 {
  font-size: 1.6rem;
}

.card-wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #1f1b16;
}

.contact-grid h2 {
  font-size: 1.35rem;
}

.note {
  max-width: var(--measure);
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 0.75rem 0.75rem 0;
}

.note p:last-child {
  margin-bottom: 0;
}
