/* ==========================================================================
   Grainline Renovation - module demo stylesheet

   A new identity, chosen to share nothing with the other demos, the sample
   sites or MareCraftAI's own site:

   | Feel    | Solid and plain-spoken, a contractor who shows up on time     |
   | Value   | Light-dominant on a neutral concrete grey, not cream           |
   | Type    | Schibsted Grotesk throughout: heavy display, regular text     |
   | Accent  | One olive, #4A5F1B. Hue 79, away from Rivergate's sage (158)  |
   |         | and MareCraftAI's teal (184)                                   |
   | Shape   | 4px on everything, near square without Northline's hard 0     |

   Type is self-hosted from /assets. Theme is locked light, like the samples.
   Contrast: ink on concrete 14.5:1, muted on concrete 6.0:1, white on olive
   7.1:1, olive on concrete 6.0:1.
   ========================================================================== */

@font-face{ font-family: "Schibsted Grotesk"; src: url("/assets/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root{
  --concrete: #ECEDE9;
  --surface: #F9F9F7;
  --surface-2: #E1E3DD;
  --line: #CDD0C7;
  --line-strong: #A6AA9F;
  --ink: #1B1E18;
  --body-ink: #3B3F37;
  --muted: #545A4F;
  --olive: #4A5F1B;
  --olive-deep: #3B4C15;
  --olive-wash: #DFE5CF;

  --font: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --r: 4px;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --k-font: var(--font);
  --k-ink: var(--ink);
  --k-muted: var(--muted);
  --k-bg: var(--concrete);
  --k-surface: var(--surface);
  --k-surface-2: var(--surface-2);
  --k-line: var(--line-strong);
  --k-accent: var(--olive);
  --k-accent-ink: #FFFFFF;
  --k-radius: var(--r);
  --k-radius-control: var(--r);

  color-scheme: light;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--concrete);
  color: var(--body-ink);
  font: 400 clamp(1rem, .97rem + .16vw, 1.0625rem)/1.65 var(--font);
  overflow-x: hidden;
}
a{ color: inherit; }
::selection{ background: var(--olive-wash); color: var(--ink); }
:focus-visible{ outline: 3px solid var(--olive); outline-offset: 3px; }

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

.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 10;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--olive); color: #FFFFFF;
  padding: .75rem 1.25rem;
  font: 700 1rem/1 var(--font);
}
.skip-link:focus{ left: 0; }

h1, h2, h3{
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}

/* --- banner and masthead -------------------------------------------------- */

.demo-banner{ background: var(--olive-wash); color: var(--body-ink); font-size: .875rem; }
.demo-banner__inner{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .7rem; }
.demo-banner p{ margin: 0; max-width: 92ch; line-height: 1.55; }
.demo-banner strong{ color: var(--ink); }
.demo-banner a,
.foot a{ display: inline-flex; align-items: center; min-height: 24px; }
.demo-banner a{ color: var(--olive-deep); font-weight: 700; white-space: nowrap; }

.masthead{ border-bottom: 6px solid var(--olive); }
.masthead__inner{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.mark{ display: inline-flex; align-items: baseline; gap: .55rem; }
.mark__name{ font: 800 1.55rem/1 var(--font); letter-spacing: -.04em; color: var(--ink); }
.mark__sub{ font: 500 .95rem/1 var(--font); color: var(--muted); }
.masthead__cta{
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem;
  border-radius: var(--r); border: 2px solid var(--ink); color: var(--ink); text-decoration: none;
  font: 700 .95rem/1 var(--font);
  transition: background-color .15s ease, color .15s ease;
}
.masthead__cta:hover{ background: var(--ink); color: var(--concrete); }

/* --- intro ----------------------------------------------------------------- */

.intro{ padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.intro h1{ font-size: clamp(2.2rem, 1.2rem + 4.8vw, 5.4rem); max-width: 17ch; }
.intro__lede{ margin: 1.25rem 0 0; max-width: 50ch; color: var(--muted); font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); }
.intro__jump{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.intro__jump a{
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface);
  font: 700 .95rem/1 var(--font); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.intro__jump a:hover{ border-color: var(--olive); background: var(--olive-wash); }

/* --- the modules, in this identity --------------------------------------- */

.k-module + .k-module{ border-top: 2px solid var(--line); }
.k-module__head h2{ font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); }
.k-tab,
.k-control{ font-weight: 700; }

/* --- closing and footer ---------------------------------------------------- */

.closing{ background: var(--olive); color: #FFFFFF; }
.closing__inner{ display: grid; gap: 1.1rem; justify-items: start; padding-block: clamp(3.5rem, 7vw, 6rem); }
.closing h2{ color: #FFFFFF; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); max-width: 16ch; }
.closing p{ margin: 0; max-width: 52ch; color: #E3E9D3; }
.closing__cta{
  display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.4rem;
  border-radius: var(--r); background: #FFFFFF; color: var(--olive-deep); text-decoration: none;
  font: 700 1rem/1 var(--font);
  transition: background-color .15s ease, transform .1s ease;
}
.closing__cta:hover{ background: var(--olive-wash); }
.closing__cta:active{ transform: translateY(1px); }
.closing :focus-visible{ outline-color: #FFFFFF; }

.foot{ background: var(--surface); border-top: 1px solid var(--line); }
.foot__inner{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; padding-block: 2rem 2.5rem; font-size: .9rem; color: var(--muted); }
.foot p{ margin: 0; max-width: 84ch; }
.foot a{ color: var(--olive-deep); font-weight: 700; }

@media (max-width: 767px){
  .mark__sub{ display: none; }
  .masthead__cta{ font-size: .85rem; padding: .5rem .8rem; }
}
