/* ==========================================================================
   Clocked-Out Co-work — base
   Design tokens, reset, typography, and components shared by every page.
   ========================================================================== */

:root {
  /* Brand palette — see the brand guide. These four are the whole system. */
  --cream: #f7f0e3;
  --ink: #2a2520;
  --terracotta: #d2603a;
  --terracotta-bright: #e0714a;

  /* Supporting tones, derived */
  --sage: #7c8b6a;
  --mustard: #e3a72f;
  --ink-70: rgba(42, 37, 32, 0.72);
  --ink-20: rgba(42, 37, 32, 0.2);
  --ink-16: rgba(42, 37, 32, 0.16);
  --cream-70: rgba(247, 240, 227, 0.72);

  /* Type */
  --font-display: "Archivo", Arial, Helvetica, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1080px;
  --gutter: 28px;
  --radius: 14px;
  --radius-pill: 999px;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
}

p {
  margin: 0 0 1.15em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------- components -- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/*
 * The toggle glyph. This is the hyphen in "Clocked-Out" — drawn in CSS so it
 * scales with the type instead of being a fixed-size image.
 * The knob ALWAYS sits on the left. The switch is off. Never flip it.
 * --knob should be set to whatever colour sits behind the glyph.
 */
.sw {
  display: inline-block;
  position: relative;
  width: 1.05em;
  height: 0.6em;
  border-radius: 0.3em;
  background: currentColor;
  margin: 0 0.18em;
  vertical-align: 0.04em;
}

.sw::before {
  content: "";
  position: absolute;
  left: 0.088em;
  top: 0.088em;
  width: 0.424em;
  height: 0.424em;
  border-radius: 50%;
  background: var(--knob, var(--ink));
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.5rem;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--terracotta-bright);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.9rem;
}

.link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.link:hover {
  color: var(--ink);
}

/* Visually hidden, but still announced by screen readers. */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 8px;
}

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ink);
  color: var(--cream-70);
  --knob: var(--ink);
  padding: 56px 0;
  text-align: center;
  font-size: 0.93rem;
}

.site-footer__mark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

.site-footer__mark .out {
  color: var(--terracotta-bright);
}

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

.site-footer__nav {
  margin-bottom: 1.2rem;
}

.site-footer__nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--terracotta-bright);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--terracotta-bright);
}
