/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --ink: #14181d;
  --ink-soft: #4d5661;
  --line: #dfe3e8;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --accent: #b4441f;
  --accent-dark: #8f3517;
  --radius: 10px;
  --wrap: 68rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow {
  max-width: 44rem;
}

.muted {
  color: var(--ink-soft);
}

/* A button that reads as a link. Used for CTAs that are deliberately inert
   until the product behind them exists - a <button> promises nothing, where
   an <a href="#"> promises navigation that does not happen. */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-underline-offset: 3px;
}

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

.link-button-light {
  color: #fff;
}

/* Loud on purpose: this must be impossible to miss if it ever reaches
   production with fake contact details still in place. */
.placeholder-banner {
  background: #fff4d6;
  border-bottom: 2px solid #e0a800;
  color: #5c4600;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  text-align: center;
}

.placeholder-banner code {
  background: rgba(0, 0, 0, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* Buttons */
/* Works as both <a class="btn"> and <button class="btn">. */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--bg-alt);
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  background:
    radial-gradient(120% 90% at 82% -10%, #ffe9e0 0%, transparent 55%),
    var(--bg);
}

.hero-inner {
  max-width: 46rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card-plain {
  background: transparent;
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0;
  padding: 1.25rem 0 0;
}

/* Closer */
.closer {
  background: var(--ink);
  color: #fff;
  border-top: none;
}

.closer-inner {
  max-width: 42rem;
}

.closer p {
  color: #b9c1cb;
}

.closer .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.closer .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.site-footer {
  background: #0d1014;
  color: #8e98a4;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0 0 0.25rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
}

.footer-meta {
  text-align: right;
}

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

  .footer-meta {
    text-align: left;
  }
}
