/* Colors and fonts come from tokens.css (the brand pack's tokens/css-variables.css). */
:root {
  --ivory: color-mix(in srgb, var(--tmk-color-bg) 40%, #fffdf8);
  --sand: var(--tmk-color-bg);
  --charcoal: var(--tmk-color-neutral-dark);
  --copper: var(--tmk-color-brand);
  --muted: #5b5045;
  --line: color-mix(in srgb, var(--tmk-color-bg) 70%, #8b7a60);
  --font-serif: Rockwell, "Roboto Slab", "Bookman Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

/* The footer sits at the bottom of the window on short pages */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--charcoal);
  font: 1.0625rem/1.6 var(--tmk-font-body);
}

main { flex: 1 0 auto; width: 100%; }

.site-header,
main,
.site-footer {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  width: 100%;
}

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

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

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }

/* Header: the mark and wordmark link home; Products and About on the right */
.site-header {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.studio-name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal);
  text-decoration: none;
}

.studio-name img {
  display: block;
  width: 34px;
  height: 34px;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-links a:hover { text-decoration-line: underline; text-decoration-color: var(--copper); }
.nav-links a[aria-current="page"] { text-decoration-line: underline; text-decoration-color: var(--line); }

/* Shared bits */
.button {
  display: inline-block;
  background: var(--copper);
  color: var(--tmk-color-neutral-light);
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--copper);
}

.button:hover { opacity: 0.9; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.status {
  font-family: var(--tmk-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.lede { font-size: 1.25rem; color: var(--muted); margin: 0; max-width: 36rem; }

/* Illustrations: transparent ink-and-rust art on the ivory page */
.art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Home: headline left, illustration right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 32.5rem);
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  margin: 0 0 1rem;
}

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

/* Products and About */
.page { padding-top: 1rem; padding-bottom: 3rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 1.5rem; }

.product-section { padding: 1.5rem 0 2rem; scroll-margin-top: 1rem; }
.product-section + .product-section { border-top: 1px solid var(--line); }
.product-section h2 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.product-section p { max-width: 42rem; }

.screenshot {
  display: block;
  max-width: 640px;
  margin: 1.25rem 0 1.25rem;
  text-decoration: none;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.caption {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: underline;
}

.tool-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.steps { padding-left: 1.4rem; max-width: 42rem; }
.steps li { margin-bottom: 0.35rem; }

/* PlainSend: copy beside a static concept preview of a request */
.plainsend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  align-items: start;
  gap: 1.5rem 3rem;
}

.plainsend h3 { font-size: 1.25rem; margin: 0.25rem 0 0.75rem; }

.concept { margin: 0.5rem 0 0; }

.request-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgb(11 15 20 / 0.06);
}

.request-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; margin: 0 0 0.6rem; }

.request-card ul { list-style: none; padding: 0; margin: 0; }

.request-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.state { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }

.state::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  vertical-align: 0.05em;
}

.state-received { color: var(--tmk-color-accent-1); }
.state-received::before { background: currentColor; }
.state-requested { color: var(--muted); }

.concept figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

/* About: copy left, the full emblem right */
.about-spread {
  display: grid;
  grid-template-columns: minmax(0, 40rem) 260px;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0 2rem;
}

.about-spread .prose p { color: var(--muted); }
.about-spread .prose p:last-child { margin-bottom: 0; }
.about-spread .prose a { font-weight: 600; }

.about-emblem img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Footer, shared by every page */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); }

/* Desktop: the Home headline breaks after "things"; smaller widths wrap naturally */
@media (min-width: 721px) {
  .hero h1 .line { display: block; }
}

/* Phone: headline first, then the art; spreads stack */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0.5rem 0 2.5rem;
  }
  .plainsend { grid-template-columns: 1fr; }
  .about-spread { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-emblem { max-width: 200px; }
  .studio-name { font-size: 1rem; gap: 0.5rem; }
  .studio-name img { width: 32px; height: 32px; }
}
