:root {
      --ink:        #0B0C0E;
      --panel:      #131519;
      --line:       rgba(236, 238, 240, 0.09);
      --line-2:     rgba(236, 238, 240, 0.14);
      --text:       #ECEEF0;
      --muted:      #9297A0;
      --faint:      #676C74;

      --amber:      #E9A23B;
      --amber-soft: rgba(233, 162, 59, 0.13);
      --amber-line: rgba(233, 162, 59, 0.32);

      --serif: 'Fraunces', Georgia, serif;
      --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
      --mono:  'IBM Plex Mono', ui-monospace, monospace;
    }

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

    body {
      background: var(--ink);
      color: var(--text);
      font-family: var(--sans);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; }

    .wrap { max-width: 720px; margin: 0 auto; padding: 0 32px; }

    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(14px);
      background: rgba(11, 12, 14, 0.72);
      border-bottom: 1px solid var(--line);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 66px;
    }
    .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
    .brand .mark { width: 32px; height: 32px; display: block; border-radius: 8px; object-fit: cover; }
    .brand .name { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
    .back {
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.18s;
    }
    .back:hover { color: var(--amber); }
    .nav-right { display: flex; align-items: center; gap: 18px; }

    .lang-select { position: relative; }
    .lang-select-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      font-family: var(--mono);
      font-size: 0.74rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      background: transparent;
      color: var(--faint);
      border: 1px solid var(--line-2);
      border-radius: 6px;
      padding: 5px 9px;
      cursor: pointer;
      transition: color 0.18s, border-color 0.18s;
    }
    .lang-select-btn:hover, .lang-select-btn[aria-expanded="true"] { color: var(--text); border-color: var(--amber-line); }
    .lang-select-caret { flex: none; transition: transform 0.18s; }
    .lang-select-btn[aria-expanded="true"] .lang-select-caret { transform: rotate(180deg); }
    .lang-select-menu {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      min-width: 168px;
      max-height: 60vh;
      overflow-y: auto;
      background: var(--panel);
      border: 1px solid var(--line-2);
      border-radius: 10px;
      padding: 6px;
      margin: 0;
      list-style: none;
      box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px);
      transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
      z-index: 200;
    }
    .lang-select.open .lang-select-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .lang-select-menu a {
      display: block;
      padding: 7px 10px;
      border-radius: 6px;
      font-family: var(--sans);
      font-size: 0.86rem;
      color: var(--muted);
      text-decoration: none;
      transition: background 0.14s, color 0.14s;
    }
    .lang-select-menu a:hover, .lang-select-menu a:focus-visible { background: var(--line); color: var(--text); }
    .lang-select-menu li[aria-selected="true"] a { color: var(--amber); }

    main { padding: 56px 0 80px; }

    h1 {
      font-family: var(--serif);
      font-weight: 400;
      font-size: clamp(1.9rem, 4.4vw, 2.6rem);
      letter-spacing: -0.02em;
      color: #fff;
      margin: 18px 0 10px;
    }

    .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); margin-bottom: 40px; }

    h2 {
      font-family: var(--serif);
      font-weight: 500;
      font-size: 1.3rem;
      color: #fff;
      letter-spacing: -0.01em;
      margin: 40px 0 12px;
    }

    p { color: var(--muted); margin-bottom: 12px; font-size: 0.98rem; }
    p strong { color: var(--text); font-weight: 500; }

    ul { list-style: none; margin-bottom: 12px; }
    ul li {
      color: var(--muted);
      font-size: 0.98rem;
      padding: 6px 0;
      padding-left: 20px;
      position: relative;
    }
    ul li::before { content: "→"; color: var(--amber); font-family: var(--mono); font-size: 0.85rem; position: absolute; left: 0; }
    ul li strong { color: var(--text); font-weight: 500; }

    a[href^="mailto:"], a[href^="http"] {
      color: var(--amber);
      text-decoration: none;
      border-bottom: 1px solid var(--amber-line);
    }
    a[href^="mailto:"]:hover, a[href^="http"]:hover { border-color: var(--amber); }

    hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

    footer { border-top: 1px solid var(--line); padding: 30px 0; }
    .foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
    .foot-inner p, .foot-inner a { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); letter-spacing: 0.02em; }
    .foot-inner a { text-decoration: none; border-bottom: none; transition: color 0.18s; }
    .foot-inner a:hover { color: var(--amber); }
    .foot-links { display: flex; gap: 22px; }

    @media (max-width: 640px) {
      .wrap { padding: 0 20px; }
      main { padding: 40px 0 56px; }
      .foot-inner { flex-direction: column; align-items: flex-start; }
    }
