/* myid.ie — Ireland's independent guide to digital identity
   Palette: slate ink + warm cream + muted clay accent
   Deliberately distinct from gov.ie green/yellow.
*/

:root {
  --ink:        #15212e;   /* near-black slate */
  --ink-soft:   #3a4858;   /* secondary text */
  --ink-muted:  #6e7c8c;   /* tertiary */
  --paper:      #fbf7f0;   /* warm cream background */
  --paper-alt:  #f5efe2;   /* card background */
  --rule:       #e3dccb;   /* subtle dividers */
  --rule-dark:  #c7bda6;
  --clay:       #c2532e;   /* muted clay accent — for CTAs, links on hover */
  --clay-deep:  #8a3a20;
  --link:       #0f3554;   /* deep navy link */
  --link-hover: var(--clay);
  --good:       #2e7d4f;   /* used sparingly for "OK" callouts */
  --warn:       #b3651f;   /* amber for caution */
  --bad:        #aa2e2e;   /* used for "do not do this" callouts */

  --maxw:       1080px;
  --maxw-narrow: 720px;
  --maxw-read:  680px;
  --shadow:     0 6px 22px rgba(20, 20, 32, 0.08);
  --shadow-lg:  0 12px 36px rgba(20, 20, 32, 0.12);
  --radius:     6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.55em;
  letter-spacing: -0.005em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
h4 { font-size: 1.05rem; margin-top: 1.2em; }

p { margin: 0 0 1.05em; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }

strong { font-weight: 600; }
em { font-style: italic; }

code, kbd, pre { font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; }
code { background: var(--paper-alt); padding: 0.1em 0.35em; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--maxw-narrow); }
.container.read { max-width: var(--maxw-read); }

/* ============== NAVBAR ============== */
.navbar {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo .logo-mark { color: var(--clay); font-weight: 700; }
.logo .logo-tag { color: var(--ink-muted); font-size: 0.65em; font-style: italic; margin-left: 6px; letter-spacing: 0; font-weight: 400; font-family: 'Inter', sans-serif; }
.nav-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-menu a:hover { border-bottom-color: var(--clay); color: var(--paper); }
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; height: 2px; background: var(--paper); border-radius: 2px; }

/* ============== HERO ============== */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  padding: 64px 24px 56px;
  border-bottom: 1px solid var(--rule);
}
.hero-content { max-width: var(--maxw-narrow); margin: 0 auto; text-align: left; }
.hero h1 { font-size: 2.7rem; margin-bottom: 0.35em; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.4em; line-height: 1.5; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.5em; }
.hero-trust { font-size: 0.88rem; color: var(--ink-muted); border-left: 3px solid var(--clay); padding: 4px 12px; margin: 0; font-style: italic; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none !important;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn-primary {
  background: var(--clay);
  color: var(--paper) !important;
}
.btn-primary:hover { background: var(--clay-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }
.btn:active { transform: translateY(1px); }

/* ============== SECTIONS ============== */
section { padding: 56px 0; }
section + section { padding-top: 0; }
.section-head { margin-bottom: 2em; max-width: var(--maxw-narrow); }
.section-head h2 { margin-top: 0; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

/* ============== PILLARS / CARD GRID ============== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.pillar-card {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--rule);
  position: relative;
}
.pillar-card .pillar-num {
  display: inline-block;
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--clay);
  margin-bottom: 8px;
}
.pillar-card h3 { margin-top: 0; }

/* ============== READ-LONG ============== */
.read-long { max-width: var(--maxw-read); margin: 0 auto; padding: 24px 24px 80px; }
.read-long h1, .read-long h2 { max-width: 100%; }
.read-long > p:first-of-type,
.read-long > .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.6em;
}
.read-long ul, .read-long ol { margin: 0 0 1.2em 1.4em; }
.read-long li { margin-bottom: 0.4em; }

/* breadcrumb + meta */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 1.4em 0 0.6em;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--clay); text-decoration: underline; }
.page-meta {
  font-size: 0.86rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  margin: 1.6em 0 2em;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.page-meta strong { color: var(--ink-soft); font-weight: 600; }

/* ============== CALLOUTS ============== */
.callout {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--clay);
  padding: 16px 20px;
  margin: 1.4em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout.warn  { border-left-color: var(--warn); }
.callout.bad   { border-left-color: var(--bad); }
.callout.good  { border-left-color: var(--good); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 0.4em;
}
.callout.warn .callout-label { color: var(--warn); }
.callout.bad  .callout-label { color: var(--bad); }
.callout.good .callout-label { color: var(--good); }

/* ============== STEP-LIST ============== */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.6em 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps > li:not(:last-child) { margin-bottom: 22px; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.steps h3 { margin-top: 0; font-size: 1.08rem; }
.steps p:last-child { margin-bottom: 0; }

/* ============== TABLE ============== */
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.96rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink); background: var(--paper-alt); }
tr:last-child td { border-bottom: 0; }

/* ============== INDEX CARDS ============== */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 1.6em 0;
}
.index-card {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.06s;
}
.index-card:hover { border-color: var(--clay); color: var(--ink); }
.index-card:active { transform: translateY(1px); }
.index-card h3 { margin-top: 0; margin-bottom: 0.3em; font-size: 1.05rem; }
.index-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }

/* ============== DISCLAIMER BAR ============== */
.disclaimer-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 24px;
  text-align: center;
  font-size: 0.84rem;
}
.disclaimer-bar strong { color: var(--clay); font-weight: 600; }

/* ============== FOOTER ============== */
footer.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 24px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 38px;
}
footer h4 {
  color: var(--paper);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a {
  color: var(--paper);
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.92rem;
}
footer a:hover { opacity: 1; color: var(--clay); }
.footer-brand {
  font-family: 'Source Serif 4', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.footer-brand .logo-mark { color: var(--clay); }
.footer-tag {
  color: var(--paper);
  opacity: 0.7;
  font-style: italic;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.footer-disclaimer {
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.55;
}
.footer-disclaimer strong { color: var(--clay); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 38px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  opacity: 0.65;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 720px) {
  .hero { padding: 44px 18px 38px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.05rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  .menu-toggle { display: flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    padding: 16px 24px;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.open { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* ============== UTILS ============== */
.text-muted { color: var(--ink-muted); }
.text-small { font-size: 0.9rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
