/* restyled.is company page. Visual language follows rewindvintage.is:
   white background, rust foreground, gold-brown bars, Libre Baskerville
   headings, Figtree body. Fonts are self-hosted (SIL OFL 1.1). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/libre-baskerville-latin.woff2") format("woff2");
}

:root {
  --rust: #a04508;
  --rust-soft: rgba(160, 69, 8, 0.78);
  --gold: #8f6214;
  --cream: #fffefa;
  --ink: #1f1f1f;
  --line: rgba(160, 69, 8, 0.2);
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Libre Baskerville", Georgia, serif;
  --max: 68rem;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--rust-soft);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rust);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
}

.bar {
  background: var(--gold);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem 1rem;
  letter-spacing: 0.06em;
}

.bar a {
  color: var(--cream);
}

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

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--rust);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.lang {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lang a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

main {
  flex: 1;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--rust);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 1.5rem;
  max-width: 20ch;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  max-width: 38rem;
  margin: 0 0 2.5rem;
}

.button {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border: 1px solid var(--rust);
  border-radius: 3px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: #fff;
  color: var(--rust);
}

.columns {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  border-top: 1px solid var(--line);
}

.columns p {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
  margin: 0 0 1rem;
}

.site-footer {
  background: var(--gold);
  color: rgba(255, 254, 250, 0.85);
  font-size: 0.9rem;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--cream);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
