/* Self-hosted fonts (SIL Open Font License) – no requests to Google */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/bebas-neue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Artifiq Agency – brand tokens
   Background is always eggshell, text is always military green.
   Coral and purple are accents only (logo, symbol, lines, markers). */
:root {
  --eggshell: #F9F8F3;
  --green: #726E52;
  --coral: #E4704C;
  --purple: #DBCCF4;
  --line: rgba(114, 110, 82, 0.2);

  --font-head: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --max: 1080px;
  --gutter: clamp(16px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--eggshell);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.5rem, 5.5vw, 3.75rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); }

p { margin: 0 0 1.1em; max-width: 66ch; }

a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--green); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--eggshell); border: 1px solid var(--green); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--eggshell);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.site-header .brand img { height: 52px; width: auto; }
.site-header nav { display: flex; gap: clamp(16px, 4vw, 36px); }
.site-header nav a {
  font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--purple); }

/* Sections */
section { padding: clamp(64px, 10vw, 120px) 0; border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.6; }

/* Hero */
.hero { padding-top: clamp(56px, 10vw, 120px); }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 42ch; }
.columns .lead { font-size: inherit; line-height: inherit; }

/* Buttons – outline only */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.05em; line-height: 1;
  padding: 12px 20px 10px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--green); color: var(--green);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--purple); border-color: var(--purple); }
.btn .arrow { color: var(--coral); }

/* Two-column text sections */
.columns { display: grid; gap: 8px 56px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .columns { grid-template-columns: 5fr 7fr; } }

/* Services */
.services { list-style: none; padding: 0; margin: 48px 0 0; }
.service {
  display: grid; grid-template-columns: 1fr; gap: 8px 56px;
  padding: clamp(32px, 5vw, 48px) 0; border-top: 1px solid var(--line);
}
@media (min-width: 860px) { .service { grid-template-columns: 5fr 7fr; } }
.service .num { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.08em; color: var(--coral); }
.service h3 { margin: 4px 0 0; }
.service .label {
  display: block; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 4px;
}

/* Feed link cards – use for any link that opens another page */
.feed { display: grid; gap: 16px; }
.link-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(28px, 4.5vw, 44px) 0;
  border-top: 1px solid var(--green); border-bottom: 1px solid var(--green);
  text-decoration: none; color: var(--green);
}
.link-card + .link-card { border-top: 0; }
.link-card .kicker { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; }
.link-card h3 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 8px 0; }
.link-card p { margin: 0; }
.link-card .go {
  width: clamp(52px, 7vw, 68px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--coral); color: var(--coral);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  transition: background 0.2s, color 0.2s;
}
.link-card:hover .go { background: var(--purple); border-color: var(--purple); color: var(--green); }

/* Who */
.who .signature { display: flex; align-items: flex-end; gap: 20px; margin-top: 36px; }
.who .signature img { width: clamp(120px, 16vw, 180px); height: auto; border-radius: 12px; }
.who .signature p { margin: 0; font-weight: 600; }
.who .signature span { display: block; font-weight: 400; }

/* Clients */
.clients ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .clients ul { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 960px) { .clients ul { grid-template-columns: repeat(3, 1fr); } }
.clients li {
  font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: 0.03em; line-height: 1;
  padding: 20px 0 16px; border-bottom: 1px solid var(--line);
  min-height: 76px; display: flex; align-items: center;
}
.clients li img { height: 24px; width: auto; }
.clients li a { text-decoration: none; }
.clients li a:hover { text-decoration: underline; text-decoration-color: var(--coral); }

/* Contact */
.contact { border-bottom: 0; }
.contact .mail { font-family: var(--font-head); font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: 1; display: inline-block; margin: 12px 0 28px; }
.contact address { font-style: normal; }

/* Footer */
.site-footer { padding: 32px 0; font-size: 0.875rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer img { height: 28px; width: auto; }

/* The Hard Part */
.hard-list { list-style: none; padding: 0; margin: 0; counter-reset: hard; }
.hard-list li {
  counter-increment: hard;
  display: grid; grid-template-columns: auto 1fr; gap: 4px clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid var(--line);
}
.hard-list li:first-child { border-top: 0; padding-top: 0; }
.hard-list li::before {
  content: "0" counter(hard);
  font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: 0.08em; line-height: 1.6; color: var(--coral);
  grid-row: span 2;
}
.hard-list h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.hard-list p { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Mobile: larger logo + dropdown menu (only when JS is available) */
.menu-toggle { display: none; }
@media (max-width: 700px) {
  .site-header .brand img { height: 48px; }
  .site-header .wrap { height: 80px; }
  .js .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--green);
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform 0.2s, background 0.2s;
  }
  .menu-toggle .bars { position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -7px; }
  .menu-toggle .bars::after { top: 7px; }
  .menu-open .menu-toggle .bars { background: transparent; }
  .menu-open .menu-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js .site-header nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--eggshell); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .js .menu-open nav { display: flex; }
  .js .site-header nav a { font-size: 2rem; padding: 14px 0 10px; border-top: 1px solid var(--line); }
  .js .site-header nav a:first-child { border-top: 0; }
  .site-header { position: sticky; }
}
.clients li img.logo-tall { height: 84px; }
.clients li.logo-pair { gap: 16px; }
.clients li img.logo-mark { height: 56px; }

/* Hero with image: image matches the height of the text column (top of heading to bottom of buttons) */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-image img { width: 100%; height: auto; border-radius: 12px; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: stretch; }
  .hero-image { position: relative; }
  .hero-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
}
.not-found { border-bottom: 0; min-height: 60vh; }
