@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

/* Same palette as the landing page: cream paper, dark ink, orange accent. */
:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --text: #1b1a17;
  --muted: #6b665c;
  --border: #e3dccd;
  --accent: #d24c1f;
  --accent-soft: rgba(232, 87, 42, 0.09);
  --code-bg: #efe8da;
  --ink: #1b1a17;
  --on-ink: #f6f1e8;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 800;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

/* Page nav */
.page-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 16px 0 0;
}
.page-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.page-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Content */
main { padding: 8px 0 48px; }

h1, h2 { font-family: "Bricolage Grotesque", Inter, sans-serif; }
h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 28px 0 6px;
  letter-spacing: -0.02em;
}
.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
h2 {
  font-size: 20px;
  margin: 36px 0 10px;
  padding-top: 8px;
  letter-spacing: -0.01em;
}
h3 { font-size: 16px; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.summary {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
}
.summary ul { margin: 0; padding-left: 20px; }
.summary li:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 600; background: var(--code-bg); }
tr:last-child td { border-bottom: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 14px;
}
.card h3 { margin-top: 0; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 24px;
}
.contact-card a.email { font-size: 18px; font-weight: 700; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0 0 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 18px;
  list-style-position: outside;
}
details > div { padding: 0 18px 4px; }

code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.92em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Language visibility: English is the no-JS default */
[data-lang-block]:not([data-lang-block="en"]) { display: none; }
html[lang="tr"] [data-lang-block="tr"],
html[lang="ja"] [data-lang-block="ja"],
html[lang="de"] [data-lang-block="de"] { display: revert; }
html:not([lang="en"]) [data-lang-block="en"] { display: none; }

/* Japanese: system Japanese fonts, no tight Latin tracking, keep words together where possible. */
html[lang="ja"] body { font-family: Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0; }

@media (max-width: 520px) {
  h1 { font-size: 26px; }
  body { font-size: 15.5px; }
}
