/* ══════════════════════════════════════════════════
   ideogram limited — corporate site
   ══════════════════════════════════════════════════ */

:root {
  /* Colors — white background, navy as sole accent */
  --bg: #ffffff;
  --ink: #28241e;          /* warm body ink */
  --muted: #6e6760;        /* warm muted */
  --muted-cool: #6a6a6a;   /* cool muted for rules and meta */
  --label: #928178;        /* warm muted for editorial labels */
  --rule: #dcd9d4;         /* subtle warm-leaning rule */
  --hover-bg: #f7f5f3;
  --accent: #0f2350;       /* deep navy (logo colour) — sole accent */

  /* Type families */
  --serif-en: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --sans-en: 'Inter', sans-serif;
  --serif-jp: 'Noto Serif JP', serif;

  /* Layout */
  --col: 750px;
}

/* EM dash override — render U+2014 in Cormorant for slimmer glyph */
@font-face {
  font-family: 'EmDashOverride';
  src: local('Cormorant Garamond'), local('CormorantGaramond-Regular');
  unicode-range: U+2014;
}

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

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

body {
  font-family: 'EmDashOverride', var(--serif-jp);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.95;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ─── ENGLISH VERSION OVERRIDES ─── */

/* Font family */
html[lang="en"] body,
html[lang="en"] .hero h1,
html[lang="en"] .hero .lead,
html[lang="en"] .person-name,
html[lang="en"] .service-name .jp {
  font-family: 'Cormorant Garamond', serif;
}

/* Sizes and weights */
html[lang="en"] body {
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
}
html[lang="en"] .hero h1 {
  font-size: 40px;
}
html[lang="en"] .hero .lead {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.02em;
}
html[lang="en"] .person-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
}
html[lang="en"] .service-block p,
html[lang="en"] .person p,
html[lang="en"] .practice p,
html[lang="en"] .contact-line {
  line-height: 1.65;
}

/* ─── HEADER ─── */
.site-header {
  max-width: var(--col);
  margin: 0 auto;
  padding: 56px 40px 44px;
  display: flex;
  align-items: center;
  gap: 21px;
}
.site-header img {
  width: 40px;
  height: auto;
  display: block;
  opacity: 0.95;
  flex-shrink: 0;
}
.site-header .wordmark {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1;
}
.site-header .lang-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.site-header .lang-toggle .active {
  color: var(--ink);
  font-weight: 500;
}
.site-header .lang-toggle .separator {
  color: var(--muted-cool);
  opacity: 0.5;
  font-weight: 400;
}
.site-header .lang-toggle a {
  color: var(--muted);
  font-weight: 400;
}
.site-header .lang-toggle a:hover {
  color: var(--accent);
}

/* ─── MAIN ─── */
main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 40px;
}

/* Section rhythm */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  font-family: var(--sans-en);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: var(--label);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}

/* ─── HERO ─── */
.hero {
  padding: 30px 0 90px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 36px;
}
.hero .lead {
  font-family: var(--serif-jp);
  font-size: 15.5px;
  line-height: 2.0;
  color: var(--ink);
  font-weight: 300;
}
.hero .lead strong {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--accent);
}

/* ─── SERVICES ─── */
.service-block { margin-bottom: 48px; }
.service-block:last-child { margin-bottom: 0; }

.service-name {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.service-name .jp {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  margin-left: 12px;
  letter-spacing: 0.04em;
}
.service-block p {
  margin-top: 12px;
  line-height: 1.95;
  color: var(--ink);
}
.service-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans-en);
  font-size: 12.5px;
  color: var(--muted-cool);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.service-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.service-link .arrow {
  font-family: var(--serif-en);
  margin-left: 6px;
  transition: transform 0.2s;
  display: inline-block;
}
.service-link:hover .arrow { transform: translateX(3px); }

/* ─── TEAM ─── */
.person { margin-bottom: 44px; }
.person:last-child { margin-bottom: 0; }

.person-name {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.person-name .role {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--muted-cool);
  margin-left: 10px;
}
.person p {
  line-height: 1.95;
  color: var(--ink);
}

/* ─── PRACTICE ─── */
.practice p {
  line-height: 1.95;
  color: var(--ink);
  margin-bottom: 18px;
}
.practice p:last-child {
  margin-bottom: 0;
}

/* ─── CONTACT ─── */
.contact-line {
  line-height: 2.1;
}
.contact-line a {
  transition: color 0.2s;
}
.contact-line a:hover {
  color: var(--accent);
}
.contact-meta {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted-cool);
  line-height: 1.9;
}

/* ─── FOOTER ─── */
footer {
  max-width: var(--col);
  margin: 0 auto;
  padding: 50px 40px 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted-cool);
  letter-spacing: 0.06em;
}
footer .footer-links a {
  margin-left: 28px;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
footer .footer-links a:first-child {
  margin-left: 0;
}
footer .footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
footer .copy {
  color: var(--muted-cool);
  opacity: 0.85;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .site-header { padding: 40px 24px 32px; gap: 16px; }
  .site-header img { width: 34px; }
  .site-header .wordmark { font-size: 14px; }
  .site-header .lang-toggle { font-size: 12.5px; gap: 5px; }
  main { padding: 0 24px; }
  section { padding: 56px 0; }
  .section-label { margin-bottom: 28px; }
  .hero { padding: 20px 0 60px; }
  .hero h1 { font-size: 25px; line-height: 1.6; }
  .hero .lead { font-size: 14.5px; line-height: 1.95; }
  .service-name { font-size: 20px; }
  .service-name .jp { display: block; margin-left: 0; margin-top: 2px; font-size: 15px; }
  footer { 
    flex-direction: column;
    gap: 14px;
    padding: 36px 24px 50px;
    text-align: center;
  }
  footer .footer-links a { margin: 0 12px; }
  footer .footer-links a:first-child { margin-left: 12px; }
}
