/* /assets/styles.css — LIGHT (creamy) theme, Chakra Petch, truly non-repeating background */

/* =========================
   Theme tokens (LIGHT default)
========================= */
:root{
  color-scheme: light;

  /* Creamy base */
  --bg: #f6f1e8;
  --bg2:#efe7db;
  --text:#14161a;
  --muted: rgba(20,22,26,0.62);

  /* Surfaces */
  --border: rgba(20,22,26,0.14);
  --card: rgba(255,255,255,0.72);
  --card2: rgba(255,255,255,0.52);

  /* Accent system (warm + teal) */
  --accent: #0f766e;
  --accent2:#2563eb;
  --accent3:#b45309;

  /* Buttons */
  --btnText: #ffffff;
  --btnBg: #0f766e;
  --btnBgHover: #0b5f58;
  --btnGhostBg: rgba(20,22,26,0.06);
  --btnGhostText: #14161a;

  /* Pills */
  --pill: rgba(20,22,26,0.06);
  --pillText: #14161a;

  /* Shadows (lighter) */
  --shadow: 0 14px 34px rgba(20,22,26,0.10);

  /* Layout helpers */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1040px;

  /* Code */
  --codeBg: #0b1220;
  --codeText: rgba(248,250,252,0.94);
  --codeBorder: rgba(255,255,255,0.12);

  /* Header height spacer (for fixed header) */
  --headerH: 72px;
}

/* keep compatibility if anything sets data-theme */
:root[data-theme="dark"] { color-scheme: dark; }

/* =========================
   Base
========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* Important: ensure the page itself is solid.
   The gradients live on body::before so they can never "tile". */
html{ background: var(--bg); }

body{
  margin: 0;

  /* Brian.mount font stack (NO Inter) */
  font-family: "Noto Sans", ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Solid base only (no gradients here) */
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Let the pseudo-element sit behind everything without interacting */
  position: relative;
  isolation: isolate;

  /* FIXED HEADER: reserve space so content never slides underneath */
  padding-top: var(--headerH);
}

/* Non-repeating background layer (fixed, single paint) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 800px at 12% -10%, rgba(15,118,110,0.18), rgba(0,0,0,0) 62%),
    radial-gradient(900px 650px at 92% 0%, rgba(37,99,235,0.16), rgba(0,0,0,0) 58%),
    radial-gradient(900px 700px at 40% 110%, rgba(180,83,9,0.10), rgba(0,0,0,0) 60%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;

  /* A tiny blur can hide GPU banding seams on some machines */
  filter: blur(0.001px);
}

/* Links */
a { color: rgba(20,22,26,0.92); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.accent, .accent a { color: var(--accent); }

/* Inline code (prose) */
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 0.12em 0.36em;
  border-radius: 8px;
  border: 1px solid rgba(20,22,26,0.14);
  background: rgba(255,255,255,0.60);
}

/* =========================
   Layout
========================= */
.container{
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.container-narrow{
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Grid system: 1 / 2 / 3 columns + spanning helpers */
.grid { display: grid; gap: 14px; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

#start .grid {
  max-width: 720px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch; /* THIS is key */
}

/* =========================
   Work-in-progress banner
========================= */
.wip-banner{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,118,110,0.10);
  border-bottom: 1px solid rgba(15,118,110,0.22);
  backdrop-filter: blur(10px);
}
.wip-inner{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.wip-inner strong{ font-weight: 800; }
.wip-inner span{ color: rgba(20,22,26,0.75); }

/* =========================
   Header
   (Fix: sticky can stop mid-scroll in Safari when an ancestor creates a new containing block.
    Use fixed on the injected wrapper.)
========================= */
#siteHeader{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
}

.site-header{
  /* changed from sticky -> normal (wrapper handles fixed positioning) */
  background: rgba(246,241,232,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}

.brand{ display: inline-flex; align-items: center; }
.brand-logo,
.brand img{
  height: 34px;
  width: auto;
  display: block;
}

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 8px;
  flex: 1;
}
.nav-link,
.nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  text-decoration: none;
}
.nav-link:hover,
.nav a:hover{ color: var(--text); text-decoration: none; }

.nav-link[aria-current="true"],
.mobile-link[aria-current="true"]{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(15,118,110,0.55);
}

.header-right{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* XMR pill (kept for later; harmless if unused) */
.xmr-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20,22,26,0.14);
  background: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.xmr-pill:hover{
  border-color: rgba(15,118,110,0.28);
  background: rgba(15,118,110,0.08);
}
.xmr-pill__label{
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(20,22,26,0.60);
}
.xmr-pill__value{
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

/* Generic pill (kept for compatibility; avoid on homepage if you want “no pills”) */
.pill{
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(20,22,26,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.60);
  color: rgba(20,22,26,0.62);
}

/* Language controls */
.lang{ display: inline-flex; gap: 6px; align-items: center; }
.lang select{
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(20,22,26,0.14);
  background: rgba(255,255,255,0.65);
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
}

/* Menu button */
.menu-btn{
  display: none;
  height: 32px;
  width: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20,22,26,0.14);
  background: rgba(255,255,255,0.65);
  color: var(--text);
  cursor: pointer;
}
.menu-btn:hover{ background: rgba(20,22,26,0.06); }

.mobile-menu{
  border-top: 1px solid var(--border);
  padding: 10px 24px 16px;
  background: rgba(246,241,232,0.96);
}
.mobile-link{
  display: block;
  padding: 10px 0;
  color: rgba(20,22,26,0.68);
  font-size: 14px;
}
.mobile-link:hover{ color: var(--text); text-decoration: none; }

/* =========================
   Hero / Typography
========================= */
.hero{ padding: 72px 0 40px; }
.hero-title{
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.hero-subtitle,
.sub{
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.hero-subtitle {
  font-size:24px;
  padding-bottom:10px;
}

h1{ margin: 10px 0; font-size: 42px; }
h3{ margin: 10px 0; font-size: 32px; }

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary{
  background: var(--btnBg);
  color: var(--btnText);
  box-shadow: 0 12px 24px rgba(15,118,110,0.18);
}
.btn-primary:hover{
  background: var(--btnBgHover);
  text-decoration: none;
}

.btn-ghost{
  background: rgba(255,255,255,0.65);
  color: var(--btnGhostText);
  border: 1px solid rgba(20,22,26,0.14);
}
.btn-ghost:hover{ text-decoration: none; background: rgba(20,22,26,0.06); }

/* Build page compatibility */
.btn-outline{
  border: 1px solid rgba(15,118,110,0.55);
  color: var(--accent);
  background: transparent;
  height: auto;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-block;
}

/* Tags */
.tag-row{ display: flex; gap: 8px; flex-wrap: wrap; }
.tag{
  font-size: 12px;
  color: rgba(20,22,26,0.70);
  border: 1px solid rgba(20,22,26,0.14);
  background: rgba(255,255,255,0.62);
  padding: 6px 10px;
  border-radius: 999px;
}
.tag:hover{ border-color: rgba(15,118,110,0.35); }

/* =========================
   Homepage hero: split layout (copy + image)
========================= */
.hero-split{ padding: 40px 0 40px; }

.hero-split__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.hero-frame {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;  /* horizontal */
  align-items: center;      /* vertical */
}



.hero-img {
  max-width: 69%;
  max-width:250px;
  height: auto;
}



/* =========================
   Sections / Content
========================= */
.section{ padding: 44px 0; }
.section-title{
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.muted{ color: var(--muted); }

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.bullets li{ margin: 8px 0; color: var(--text); }
.bullets li::marker{ color: rgba(20,22,26,0.35); }

/* Cards */
.card{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(20,22,26,0.12);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-title{ font-weight: 800; margin-bottom: 6px; }
.card-text{ margin: 0 0 10px; color: rgba(20,22,26,0.62); }

.card-link{
  display: inline-block;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
  margin-top:auto;
}

.card-note,
.note{ margin-top: 10px; color: rgba(20,22,26,0.62); font-size: 13px; }

.notice{
  margin-top: 16px;
  border: 1px solid rgba(180,83,9,0.22);
  background: rgba(180,83,9,0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.notice-title{ font-weight: 900; margin-bottom: 6px; }
.notice-text{ margin: 0; color: rgba(20,22,26,0.64); }

/* Callout */
.callout{
  margin-top: 14px;
  border: 1px solid rgba(15,118,110,0.22);
  background: rgba(15,118,110,0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.callout strong{ font-weight: 900; }
.callout p{ margin: 8px 0 0; color: rgba(20,22,26,0.64); }

/* FAQ */
.faq{
  border: 1px solid rgba(20,22,26,0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(255,255,255,0.66);
  margin-top: 10px;
}
.faq summary{ cursor: pointer; font-weight: 800; }
.faq-body{ margin-top: 10px; color: rgba(20,22,26,0.64); }

/* =========================
   Code blocks (strong separation)
========================= */
pre.code{
  margin: 12px 0;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.18);
  background: linear-gradient(180deg, rgba(11,18,32,0.98), rgba(11,18,32,0.92));
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

pre.code code{
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
  color: var(--codeText);
}

/* Optional prose block */
.prose-block{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(20,22,26,0.12);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* =========================
   Footer
========================= */
.footer{ padding: 26px 0; border-top: 1px solid rgba(20,22,26,0.14); }
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-link{ color: inherit; }

.footer-meta{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-meta .dot{ opacity: 0.35; }



/* =========================
   Footer hero
========================= */
.footer-hero{
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-top: 1px solid rgba(20,22,26,0.10);
  background: #0e0d12;
  isolation: isolate;
}

.footer-hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(8,8,10,0.20) 0%,
      rgba(8,8,10,0.24) 28%,
      rgba(8,8,10,0.46) 52%,
      rgba(8,8,10,0.74) 72%,
      rgba(8,8,10,0.92) 100%
    ),
    url("/assets/hachiko-sakura-footer-wide.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 15% center;
}

.footer-hero__inner{
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 72px;
  padding-bottom: 72px;
}

.footer-hero__content{
  width: min(100%, 500px);
  margin-left: auto;
  color: #f6f1e8;
}

.footer-hero__eyebrow{
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 221, 230, 0.82);
}

.footer-hero__headline{
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 9ch;
  color: #fff7fb;
}

.footer-hero__copy{
  margin: 18px 0 0;
  max-width: 28ch;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246,241,232,0.78);
}

.footer-hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Make buttons feel a little better on the dark image */
.footer-hero .btn-primary{
  box-shadow: 0 14px 28px rgba(15,118,110,0.22);
}

.footer-hero .btn-ghost{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  color: #fff7fb;
  backdrop-filter: blur(8px);
}

.footer-hero .btn-ghost:hover{
  background: rgba(255,255,255,0.16);
}

/* Existing footer sits nicely after image */
.footer{
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(6px);
}

@media (max-width: 920px){
  .footer-hero,
  .footer-hero__inner{
    min-height: 540px;
  }

  .footer-hero__media{
    background-image:
      linear-gradient(
        180deg,
        rgba(8,8,10,0.12) 0%,
        rgba(8,8,10,0.18) 34%,
        rgba(8,8,10,0.64) 72%,
        rgba(8,8,10,0.90) 100%
      ),
      url("/assets/hachiko-sakura-footer-wide.png");
    background-position: 38% center;
  }

  .footer-hero__inner{
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .footer-hero__content{
    width: 100%;
    max-width: 100%;
  }

  .footer-hero__headline{
    max-width: 11ch;
  }
}

@media (max-width: 560px){
  .footer-hero,
  .footer-hero__inner{
    min-height: 500px;
  }

  .footer-hero__media{
    background-position: 34% center;
  }

  .footer-hero__copy{
    font-size: 15px;
  }

  .footer-hero__actions{
    flex-direction: column;
    align-items: stretch;
  }

  .footer-hero__actions .btn{
    width: 100%;
  }
}



/* =========================
   Accessibility
========================= */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Responsive
========================= */
@media (min-width: 920px){
  .hero-split__inner{ grid-template-columns: 1.12fr 0.88fr; gap: 26px; }
}

@media (max-width: 920px){
  .nav{ display: none; }
  .menu-btn{ display: inline-flex; align-items: center; justify-content: center; }

  .header-inner{ padding: 12px 16px; }
  .container{ width: min(var(--maxw), calc(100% - 32px)); }

  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .span-2, .span-3{ grid-column: span 1; }

  /* fixed header height is a bit smaller on mobile */
  :root{ --headerH: 64px; }
}

@media (max-width: 560px){
  .brand-logo, .brand img{ height: 30px; }

  .xmr-pill{ padding: 6px 8px; gap: 6px; }
  .xmr-pill__label{ font-size: 11px; }
  .xmr-pill__value{ font-size: 12px; }

  .lang select{ height: 30px; padding: 0 8px; }

  .hero{ padding: 56px 0 34px; }
  .hero-split{ padding: 56px 0 34px; }
}