/* NouriLoop LLC business site: one stylesheet for every page. Plain CSS, no build step. */
:root {
  --bg: #fbfaf7;
  --surface: #f1efe8;
  --text: #1e2420;
  --muted: #4f5a53;
  --accent: #2f6b4f;
  --accent-text: #ffffff;
  --rule: #d9d5ca;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151916;
    --surface: #1e2420;
    --text: #e9ece8;
    --muted: #aab4ad;
    --accent: #7cc3a0;
    --accent-text: #0f1a14;
    --rule: #333b36;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-text); padding: .5rem 1rem;
}
.skip:focus { left: 1rem; }
a { color: var(--accent); text-underline-offset: .15em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.125rem; margin-top: 1.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

/* Site bar: name and navigation, the same on every page. */
.site-bar { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.site-bar .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.brand {
  font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); text-decoration: none;
}
/* The Coil: a Flemish-coiled rope, drawn like the service icons. Source: icons/coil.svg. */
/* Inline, not flex, so the brand keeps its text baseline in line with the nav; the drop centers
   the mark on the capitals. */
.brand-mark { width: 26px; height: 26px; margin-right: .6rem; vertical-align: -.45em; color: var(--accent); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Photo banner: one of John's photographs at the top of each page, a hand-chosen 2:1 crop
   always shown whole (never cropped further by CSS). */
.banner { max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1rem 0; }
.banner img { display: block; width: 100%; height: auto; border-radius: .4rem; }
.banner figcaption { color: var(--muted); font-size: .8125rem; padding: .4rem 0 0; }
.banner figcaption a { color: inherit; }

/* Page header: the hero on Home, the page title elsewhere. */
.page-head { padding: 2rem 0 2rem; border-bottom: 1px solid var(--rule); }
.hero { padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--rule); }
.sub { color: var(--muted); font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .65rem 1.1rem; border-radius: .4rem;
  text-decoration: none; font-weight: 600; border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { color: var(--accent); }

section { padding: 3rem 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
/* Maritime line drawings (inline SVG, drawn in the accent color). */
.icon { color: var(--accent); flex: none; }
.icon-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.icon-head h2 { margin: 0; }
.icon-list { list-style: none; padding: 0; }
.icon-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.icon-list .icon { margin-top: .1rem; }
/* App screenshots inside a page (NouriLoop). */
.shot { margin: 1.5rem 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: .4rem; }
.shot a { display: block; }
.shot figcaption { color: var(--muted); font-size: .875rem; padding-top: .4rem; }
.keep { background: var(--surface); padding: .75rem 1rem; border-radius: .4rem; }
.note { color: var(--muted); font-style: italic; }
.name-note { background: var(--surface); padding: 1rem 1.25rem; border-radius: .4rem; }
.portrait { display: block; width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; margin: 0 0 1.5rem; }

form { margin: 1.5rem 0 2rem; }
label { display: block; font-weight: 600; margin: 0 0 .25rem; }
.optional { font-weight: 400; color: var(--muted); }
input, textarea {
  display: block; width: 100%; margin: 0 0 1rem; padding: .6rem .7rem;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--muted); border-radius: .4rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { padding: 2rem 0 3rem; color: var(--muted); font-size: .9375rem; border-top: 1px solid var(--rule); }
footer p { margin: 0 0 .5rem; }
/* Links spelled out as visible URLs, so a printout or screenshot still carries them. */
.links { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem 1rem; margin: 0 0 1.25rem; }
.links dd { margin: 0; overflow-wrap: anywhere; }
/* The Coil again, sized to the footer text (see .brand-mark). */
.footer-mark { width: 1.35em; height: 1.35em; margin-right: .4em; vertical-align: -.35em; color: var(--accent); }
@media (max-width: 30rem) {
  .links { grid-template-columns: 1fr; gap: 0; }
  .links dd { margin-bottom: .5rem; }
}
