/*
  EasyAkuru website: shared stylesheet
  ====================================
  One stylesheet for every page under /easyakuru/. Plain CSS, mobile-first,
  no web fonts, no third-party requests. The site's CSP is `default-src 'self'`,
  so pages must not use inline style="" attributes, <style> or <script>.
  Everything visual lives here.

  CANONICAL PAGE CHROME (copy this into every page; adjust per page)
  ------------------------------------------------------------------
  <head> essentials:

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>PAGE TITLE · EasyAkuru</title>
    <meta name="description" content="PAGE DESCRIPTION">
    <link rel="canonical" href="https://ratnayake.info/easyakuru/PATH/">
    <link rel="icon" href="/easyakuru/assets/img/favicon.ico" sizes="any">
    <link rel="apple-touch-icon" href="/easyakuru/assets/img/logo-192.png">
    <link rel="stylesheet" href="/easyakuru/assets/css/site.css">
    <meta name="theme-color" content="#8D153A">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="EasyAkuru">
    <meta property="og:title" content="PAGE TITLE">
    <meta property="og:description" content="PAGE DESCRIPTION">
    <meta property="og:url" content="https://ratnayake.info/easyakuru/PATH/">
    <meta property="og:image" content="https://ratnayake.info/easyakuru/assets/img/og-image.jpg">
    <meta property="og:image:width" content="1200">
    <meta property="og:image:height" content="630">
    <meta property="og:image:alt" content="The EasyAkuru logo, a white Sinhala letter අ on a maroon tile">
    <meta property="og:locale" content="en_US">          (Sinhala pages: si_LK)
    <meta name="twitter:card" content="summary_large_image">

  Header (English pages; on Sinhala pages use lang="si" on <html>, Sinhala nav
  labels, /easyakuru/si/... links where they exist, and move aria-current):

    <a class="skip-link" href="#main">Skip to main content</a>
    <header class="site-header">
      <div class="container">
        <a class="brand" href="/easyakuru/">
          <img src="/easyakuru/assets/img/logo.png" alt="" width="40" height="40">
          <span>EasyAkuru</span>
        </a>
        <nav class="site-nav" aria-label="Main">
          <ul>
            <li><a href="/easyakuru/#features">Features</a></li>
            <li><a href="/easyakuru/guide/">Guide</a></li>
            <li><a href="/easyakuru/support/">Support</a></li>
            <li><a href="/easyakuru/privacy/">Privacy</a></li>
          </ul>
        </nav>
        <nav class="lang-switch" aria-label="Language">
          <a href="/easyakuru/" hreflang="en" lang="en" aria-current="true">EN</a>
          <a href="/easyakuru/si/" hreflang="si" lang="si">සිං</a>
        </nav>
      </div>
    </header>
    <main id="main"> ... </main>

  (Current page in .site-nav: add aria-current="page" to its <a>.)

  Footer:

    <footer class="site-footer">
      <div class="container">
        <p>© 2026 Ratcon</p>
        <ul>
          <li><a href="/easyakuru/privacy/">Privacy</a></li>
          <li><a href="/easyakuru/support/">Support</a></li>
          <li><a href="mailto:isuru.sampath@ratnayake.info">isuru.sampath@ratnayake.info</a></li>
        </ul>
        <p class="footer-legal">Microsoft, Windows and Microsoft Store are trademarks of the Microsoft group of companies.</p>
      </div>
    </footer>

  Store badge CTA (official badge, don't restyle or recolour it):

    <a class="store-badge" href="https://apps.microsoft.com/detail/9P65C2RS1N87">
      <img src="/easyakuru/assets/img/ms-store-badge.svg" alt="Download from the Microsoft Store" width="161" height="44">
    </a>

  Contract classes: .site-header .site-nav .lang-switch .container .hero .section
  .section-alt .btn .btn-primary .btn-secondary .card-grid .card .steps .prose .kbd
  .table .note .site-footer. Helpers: .brand .skip-link .lead .eyebrow
  .store-badge .cta-row .split .shot .gallery .faq .examples .visually-hidden
  .center .footer-legal.
*/

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --brand: #8D153A;
  --brand-strong: #6E0F2C;
  --brand-tint: #F9EEF2;
  --on-brand: #FFFFFF;

  --bg: #FFFFFF;
  --bg-alt: #FAF5F7;
  --surface: #FFFFFF;
  --text: #1F1A1C;
  --muted: #56494E;
  --border: #E6DADF;
  --link: #8D153A;
  --focus: #8D153A;
  --shadow: 0 1px 2px rgba(40, 10, 20, .06), 0 6px 20px rgba(40, 10, 20, .08);

  --font: "Segoe UI", "Nirmala UI", "Iskoola Pota", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Segoe UI Mono", monospace;
  --radius: 12px;
  --max: 72rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-tint: #3A1522;
    --bg: #151113;
    --bg-alt: #1D171A;
    --surface: #221B1E;
    --text: #F3EDEF;
    --muted: #CDBFC5;
    --border: #3E3136;
    --link: #F4A3BC;
    --focus: #F4A3BC;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Sinhala script needs extra line height for vowel signs above/below */
:lang(si) { line-height: 1.8; }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1rem; }

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

code, kbd, samp { font-family: var(--mono); font-size: .92em; }
code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .05em .35em;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; }

.site-nav { order: 3; width: 100%; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a,
.lang-switch a {
  display: inline-block;
  padding: .35rem .1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.lang-switch a:hover { border-bottom-color: var(--link); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--link); }

.lang-switch {
  display: flex;
  gap: .25rem;
  font-size: .95rem;
}
.lang-switch a {
  padding: .25rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang-switch a[aria-current] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

@media (min-width: 48rem) {
  .site-nav { order: 0; width: auto; }
  .brand { margin-right: 1rem; }
  .site-nav { margin-right: auto; }
}

/* ---------- Buttons & badge ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .6rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: transparent; color: var(--link); border-color: currentColor; }
.btn-secondary:hover { background: var(--brand-tint); }

.store-badge { display: inline-block; line-height: 0; border-radius: 6px; }
.store-badge img { width: auto; height: 56px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #A01C45 0%, var(--brand) 45%, #5E0C25 100%);
  color: var(--on-brand);
  padding: 3rem 0 3.5rem;
}
.hero a:not(.btn):not(.store-badge) { color: var(--on-brand); }
.hero :focus-visible { outline-color: #FFFFFF; }
.hero .btn-secondary { color: var(--on-brand); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, .12); }
.hero .lead { color: #F6E7EC; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.hero code {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .35);
  color: var(--on-brand);
}
.hero-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
  border-radius: 22px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 0, 0, .25);
}
.hero h1 { margin-bottom: .3em; }
.hero .tagline-si { font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; }
.hero .fineprint { font-size: .95rem; color: #F6E7EC; margin: 1rem 0 0; }
.hero .shot { box-shadow: 0 12px 40px rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .25); }

@media (min-width: 60rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--link);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section > .container > h2:first-child,
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .4rem; }
.section-head p { margin: 0; }
@media (min-width: 48rem) { .section { padding: 5rem 0; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }

/* ---------- Screenshots ---------- */
.shot {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #FFFFFF;
}
figure { margin: 0; }
figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); }

.gallery {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { display: flex; flex-direction: column; height: 100%; }
/* Same-size frames; the backdrop matches the screenshots' own background */
.gallery .shot { aspect-ratio: 16 / 10; object-fit: contain; background: #CFC3C9; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--link);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3.25rem;
  min-height: 2.5rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  line-height: 2.25rem;
  text-align: center;
}
.steps > li > strong:first-child,
.steps h3 { display: block; margin-bottom: .2rem; }

/* ---------- Transliteration examples ---------- */
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.examples li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.examples code { background: none; border: 0; padding: 0; font-size: 1rem; }
.examples .arrow { color: var(--muted); }
.examples .si { font-size: 1.25rem; font-weight: 600; }

/* ---------- Keyboard keys ---------- */
.kbd,
kbd.kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: .05em .45em;
  font-family: var(--font);
  font-size: .9em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- Notes ---------- */
.note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--brand-tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
}
.note > :last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
}
.table th,
.table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table th { background: var(--bg-alt); font-weight: 700; }
.table caption { text-align: left; font-weight: 600; padding-bottom: .5rem; }
/* Narrow screens: let wide tables scroll sideways instead of overflowing */
@media (max-width: 40rem) {
  .table { display: block; overflow-x: auto; }
}

/* ---------- Long-form text (privacy, guide, support) ---------- */
.prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; padding-top: .5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose li > ul, .prose li > ol { margin-top: .4rem; }
.prose img { margin: 1rem 0; }
.prose .updated { color: var(--muted); font-size: .95rem; }
.prose nav ul { list-style: none; padding-left: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  list-style-position: outside;
  margin-left: 1rem;
}
.faq details > :not(summary) { padding: 0 1.25rem; }
.faq details > :last-child { padding-bottom: 1rem; margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-band {
  background: var(--brand);
  color: var(--on-brand);
  text-align: center;
}
.cta-band h2 { color: var(--on-brand); }
.cta-band p { color: #F6E7EC; }
.cta-band .cta-row { justify-content: center; }
.cta-band :focus-visible { outline-color: #FFFFFF; }
.cta-band .btn-secondary { color: var(--on-brand); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .95rem;
  padding: 2rem 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--link); overflow-wrap: anywhere; }
.site-footer .footer-legal { width: 100%; font-size: .85rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 4rem 0 5rem; }
.not-found .glyph { font-size: 5rem; line-height: 1; color: var(--link); margin-bottom: 1rem; }
.not-found .lead { margin-left: auto; margin-right: auto; }
.not-found .cta-row { justify-content: center; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .cta-row, .cta-band { display: none; }
  .hero { background: none; color: #000; }
  body { font-size: 11pt; }
}
