/* fieldwright.ca — the Fieldcraft identity (brand/README.md). No scripts; every asset is local. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #F6F3EB;          /* warm paper */
  --ink: #193D32;         /* evergreen: headings, wordmark, primary button */
  --body: #4F6159;        /* supporting copy */
  --hairline: #D3D9D0;
  --copper: #A4522F;      /* small identifying accents only */
  --panel: #EEEEE5;       /* contact section */
  --grid: #D3D9D0;
  --button-bg: #193D32;
  --button-ink: #F6F3EB;
  --button-hover: #0F2B23;

  /* SurvPic keeps its own colours in both schemes */
  --sp-navy: #131D29;
  --sp-orange: #FD5D0A;
  --sp-text: #EDF1F6;
  --sp-body: #C3CCD8;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12211B;
    --ink: #F1EEE5;
    --body: #B8C4BC;
    --hairline: #2C4038;
    --copper: #DB9A72;
    --panel: #1A2E26;
    --grid: #2C4038;
    --button-bg: #E6EADF;
    --button-ink: #193D32;
    --button-hover: #F6F3EB;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; }

a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--button-bg);
  color: var(--button-ink);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.icon {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.55em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  vertical-align: -0.02em;
}

/* Labels: IBM Plex Mono, sparingly */
.label, .eyebrow, .hero-mark figcaption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow { color: var(--copper); margin-bottom: 1.25rem; }
.label { color: var(--ink); margin-bottom: 1.5rem; }

.display {
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.display span, h1 span { display: inline-block; text-wrap: balance; }

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  position: relative;
}
.site-header .wrap::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  border-bottom: 1px solid var(--hairline);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.lockup .symbol { width: 2.25rem; height: 2.25rem; fill: var(--ink); flex: none; }
.symbol .accent, .hero-mark .accent { fill: var(--copper); }
.lockup-text { display: flex; flex-direction: column; line-height: 1; }
.lockup-name {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lockup-sub {
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--body);
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding-top: clamp(3rem, 8vw, 6rem); }
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; }
}

h1 {
  font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}
.lead {
  max-width: 34rem;
  font-size: 1.125rem;
}
@media (min-width: 48rem) {
  .lead { font-size: 1.25rem; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  background: var(--button-bg);
  color: var(--button-ink);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}
.button:hover { background: var(--button-hover); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.hero-mark { max-width: 15rem; }
.hero-mark svg { width: 100%; height: auto; }
.hero-mark .grid path { stroke: var(--grid); stroke-width: 1; fill: none; }
.hero-mark .ink { fill: var(--ink); }
.hero-mark figcaption { margin-top: 1rem; color: var(--body); letter-spacing: 0.12em; }
@media (max-width: 55.99rem) {
  .hero-mark { display: none; }
}
@media (min-width: 56rem) {
  .hero-mark { justify-self: end; width: 100%; max-width: 17rem; }
}

.locale {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--body);
}
.locale-item { display: inline-flex; align-items: center; gap: 0.625rem; }
.square { width: 0.5rem; height: 0.5rem; background: var(--copper); flex: none; }

/* Product */
.product { padding-top: clamp(4rem, 9vw, 6.5rem); }
.product-panel {
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--sp-navy);
  color: var(--sp-body);
  border-radius: 10px;
}
@media (min-width: 56rem) {
  .product-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    align-items: center;
    padding-right: 0;
    overflow: hidden;
  }
  .product-shot img { border-radius: 6px 0 0 6px; border-right: 0; }
}
.product-logo { width: 9.5rem; height: auto; margin-bottom: 1.75rem; }
.product .display { color: var(--sp-text); margin-bottom: 1.25rem; }
.product-copy p { max-width: 28rem; }
.product-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  color: var(--sp-orange);
  font-weight: 500;
  text-decoration: none;
}
.product-link:hover { text-decoration: underline; }
.product :focus-visible { outline-color: var(--sp-orange); }
.product-shot img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #2A3646;
  background: #EDF1F6;
}
.product-shot figcaption {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--sp-body);
}

/* About */
.about { padding-top: clamp(4rem, 9vw, 6.5rem); }
.about-grid {
  display: grid;
  gap: 1.5rem 4rem;
}
.about-grid::before {
  content: "";
  grid-column: 1 / -1;
  border-top: 1px solid var(--hairline);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 48rem) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.about-copy { max-width: 38rem; }

/* Contact */
.contact { padding-block: clamp(4rem, 9vw, 6rem); }
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--panel);
  border-radius: 10px;
}
.contact .display { margin-bottom: 0.5rem; }
.contact-email { margin: 0; }
.contact-email a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  user-select: text;
}

/* Footer */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
  padding-block: 2rem 3rem;
  position: relative;
  font-size: 0.9375rem;
}
.site-footer .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--hairline);
}
.site-footer p { margin: 0; color: var(--ink); }
.site-footer .muted { color: var(--body); font-size: 0.875rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* Privacy and 404: one readable column */
.page { padding-block: clamp(3rem, 8vw, 5rem) clamp(4rem, 9vw, 6rem); }
.page .wrap > * { max-width: 40rem; }
.page h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); margin-bottom: 1.25rem; }
.page .lead { margin-bottom: 2rem; }
