/* yasersalha.top — premium Scandinavian editorial identity.
   Deliberately separate from site.css: the profile must not share the
   industrial demos' visual language (navy/teal, monospace labels, dense
   utility panels). Warm paper, one clay accent, serif display, hairlines. */

:root {
  --paper: #faf8f4;
  --ink: #23201b;
  --muted: #6d6759;
  --line: #e6e0d4;
  --clay: #96502f;
  --clay-deep: #7c3f23;
  --char: #262219;
  --cream: #f3efe6;
  --serif: "Charter", "Bitstream Charter", "Sitka Text", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: #e9d7c8; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: #fff; padding: .75rem 1rem; outline: 2px solid var(--clay); }

/* Header: quiet, hairline, generous */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.05rem clamp(1.1rem, 5vw, 5rem);
  background: rgba(250, 248, 244, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  text-decoration: none;
  font: 600 1.02rem/1 var(--serif);
  letter-spacing: .02em;
}
.brand span { color: var(--clay); font-style: italic; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 2.5vw, 1.9rem); align-items: center; justify-content: flex-end; }
nav a {
  text-decoration: none;
  font: 500 .8rem var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
nav a:hover, nav a:focus-visible { color: var(--ink); }
nav a:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

/* Shared rhythm */
.hero, .section {
  width: min(100%, 1200px);
  margin: auto;
  padding: clamp(3.6rem, 8vw, 7.5rem) clamp(1.1rem, 5vw, 5rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--clay);
  font: 600 .76rem var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1 {
  max-width: 21ch;
  margin: 0 0 1.4rem;
  font: 400 clamp(2.5rem, 5.4vw, 4.7rem)/1.08 var(--serif);
  letter-spacing: -.015em;
}
h2 { margin: 0 0 1.1rem; font: 400 clamp(1.75rem, 3.2vw, 2.8rem)/1.14 var(--serif); letter-spacing: -.012em; }
h3 { margin: .4rem 0 .6rem; font: 600 1.22rem/1.3 var(--serif); }
p { margin: 0 0 1rem; }
.lead { max-width: 58ch; color: #494437; font-size: clamp(1.12rem, 1.4vw, 1.3rem); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: .8rem 1.65rem;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 600 .95rem var(--sans);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.button.primary { color: var(--paper); background: var(--ink); }
.button.primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { border-color: var(--clay); color: var(--clay-deep); }
.button:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Hero: editorial asymmetry, framed side panel without shadows */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: center;
  min-height: 68vh;
}
.scope {
  padding: 2rem 1.9rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.scope h2 { font-size: 1.45rem; }
.scope p { color: var(--muted); }
.scope dl { margin: 1.2rem 0 0; }
.scope dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .78rem 0; border-top: 1px solid var(--line); }
.scope dt { color: var(--muted); font: 500 .86rem var(--sans); }
.scope dd { margin: 0; font-weight: 600; text-align: right; }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head > p:last-child { color: var(--muted); font-size: 1.06rem; }

/* Offer: open editorial columns with hairline rules and serif numerals */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3.2rem); }
.card { min-width: 0; padding: 1.6rem 0 0; border-top: 2px solid var(--ink); background: transparent; }
.card p { color: var(--muted); font-size: 1.02rem; }
.card-index { font: 400 italic 1.05rem var(--serif); color: var(--clay); }

/* Method: warm charcoal interlude */
.process-section { max-width: none; width: 100%; background: var(--char); color: var(--cream); }
.process-section > * { width: min(100%, 1200px); margin-inline: auto; }
.process-section .eyebrow { color: #c9a284; }
.process-section .section-head > p:last-child { color: #b7b0a0; }
.process {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  padding: 2.2rem 0 0; margin: 1rem 0 0;
  border-top: 1px solid #4b443a;
  list-style: none;
  counter-reset: step;
}
.process li { padding: 0; border: 0; }
.process b { display: block; margin-bottom: .5rem; font: 600 1.2rem var(--serif); }
.process b::before { counter-increment: step; content: counter(step, decimal-leading-zero) " · "; color: #c9a284; font-style: italic; font-weight: 400; }
.process span { display: block; color: #b7b0a0; font-size: .99rem; }

/* Matcher: interactive but calm */
.matcher { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); }
.matcher > div:first-child p:last-child { color: var(--muted); }
.choices { display: grid; gap: .65rem; align-content: start; }
.choice {
  min-height: 54px; padding: .9rem 1.25rem;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 1rem var(--sans); text-align: left; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.choice:hover { border-color: var(--clay); }
.choice:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.choice.selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.recommendation { margin-top: 1.4rem; padding: 1.5rem 1.6rem; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.recommendation h3 { margin-top: 0; }
.recommendation p { margin-bottom: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact .notice { color: var(--muted); font: 400 .92rem var(--sans); border-left: 2px solid var(--clay); padding-left: 1rem; }
.contact-card { padding: 2rem 1.9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.contact-card a { display: block; margin-bottom: .5rem; text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 4px; }
.contact-card .button { margin-top: 1.2rem; display: inline-flex; }
.contact-card p { color: var(--muted); }
.contact-card p strong { color: var(--ink); font-size: 1.15rem; }

footer {
  padding: 2.6rem clamp(1.1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 .88rem var(--sans);
}
footer p { max-width: none; margin: 0 0 .35rem; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .matcher, .contact { grid-template-columns: 1fr; }
  nav a { font-size: .74rem; }
}
@media (max-width: 620px) {
  /* Stack the header: brand on its own line, a hairline, then the nav as a
     tidy left-aligned wrapped row — instead of the links crowding the brand. */
  .site-header { flex-direction: column; align-items: stretch; gap: 0; padding: .8rem clamp(1.1rem, 5vw, 5rem); }
  .brand { padding-bottom: .7rem; font-size: 1.05rem; }
  nav { justify-content: flex-start; gap: .5rem 1.15rem; padding-top: .7rem; border-top: 1px solid var(--line); }
  nav a { font-size: .72rem; }
  .process { grid-template-columns: 1fr; }
}

.demo-card h3 { margin-top: 0.4rem; }
.demo-meta { font-size: 0.82rem; color: #5a6675; border-top: 1px solid #e2e7ec; padding-top: 0.55rem; margin-top: 0.55rem; }
.demo-card .card-index { letter-spacing: 0.08em; }

