:root {
  color-scheme: light dark;
  --bg: #0b0b0d;
  --surface: #18181c;
  --surface-strong: #222228;
  --text: #f7f7f8;
  --muted: #b7b7c0;
  --line: #34343b;
  --accent: #ff6b35;
  --accent-strong: #ff8a5c;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 107, 53, .14), transparent 34rem),
    var(--bg);
  font-size: 1rem;
  line-height: 1.75;
}

a { color: var(--accent-strong); }

.site-header {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.site-header a { text-decoration: none; }

.brand {
  color: var(--text) !important;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.page {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.home { min-height: calc(100vh - 11rem); }

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--accent-strong);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.35rem, 8vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.article h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); }

h2 {
  margin: 3.5rem 0 1rem;
  padding-top: .5rem;
  font-size: 1.55rem;
  line-height: 1.35;
}

h3 {
  margin: 2rem 0 .45rem;
  font-size: 1.08rem;
  line-height: 1.5;
}

p { margin: 0 0 1.25rem; }

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
}

.updated { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.card {
  min-height: 10rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.card:hover, .card:focus-visible {
  border-color: var(--accent);
  background: var(--surface-strong);
}

.card-title {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.card-label {
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-list {
  grid-template-columns: minmax(0, 23rem);
}

.contact-panel {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.contact-panel h2 { margin-top: 0; }

.email {
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700;
}

dl { margin: 1.5rem 0; }
dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
dt { color: var(--muted); }
dd { margin: 0; }
.note { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

section + section {
  margin-top: 3.5rem;
  padding-top: .1rem;
  border-top: 1px solid var(--line);
}

footer {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .page { padding-top: 3rem; }
  dl div { grid-template-columns: 1fr; gap: 0; margin-bottom: .75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
  .card:hover { transform: translateY(-2px); }
}
