:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #202020;
  --muted: rgba(32, 32, 32, 0.74);
  --line: rgba(32, 32, 32, 0.2);
  --line-strong: rgba(32, 32, 32, 0.4);
  --accent: #71cfb8;
  --accent-hover: #5fc7af;
  --accent-soft: rgba(113, 207, 184, 0.14);
  --soft: rgba(32, 32, 32, 0.04);
  --shadow: 0 6px 24px -16px #000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(113, 207, 184, 0.08) 0,
      rgba(113, 207, 184, 0.08) 1px,
      transparent 1px,
      transparent 18px
    ) left top / 176px 100% repeat-y,
    var(--bg);
  color: var(--ink);
  font-family:
    "Century Gothic", "Hiragino Kaku Gothic ProN", YuGothic, "Yu Gothic",
    Meiryo, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  word-break: break-word;
  word-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.84);
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid rgba(32, 32, 32, 0.3);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  border-radius: 5px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand strong,
.brand span span {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 400;
}

.brand span span {
  color: var(--muted);
  font-size: 0.84rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-link,
.blog-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(32, 32, 32, 0.14);
  border-radius: 0;
  background: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.language-link.active {
  border-color: #fff;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent);
}

main {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  background: var(--panel);
}

.intro {
  min-height: auto;
  padding: 72px 0 30px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.98;
}

.works {
  padding: 24px 0 72px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.work-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-card.featured {
  grid-column: auto;
}

.preview {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview.muted {
  filter: saturate(0.86);
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.work-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
}

.status {
  border: 1px solid #fff;
  border-radius: 0;
  padding: 5px 9px;
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent);
}

.status.ready {
  background: var(--accent);
}

.status.planned {
  background: rgba(32, 32, 32, 0.08);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(32, 32, 32, 0.08);
}

.work-body h3 {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  font-size: 1.14rem;
  font-weight: 400;
}

.work-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

code {
  border: 1px solid rgba(32, 32, 32, 0.48);
  border-radius: 0;
  background: var(--soft);
  padding: 2px 5px;
  color: var(--ink);
  font-family:
    Consolas, Monaco, monospace, "Hiragino Kaku Gothic ProN", Meiryo, YuGothic,
    "Yu Gothic", sans-serif;
  font-size: 0.92em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
  padding: 6px 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 400;
}

.button-link {
  align-self: flex-start;
  border-color: #fff;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent);
}

.button-link:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent-hover);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 2px solid #fff;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.site-footer a {
  color: #fff;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: auto;
  }

  h1 {
    font-size: 2.45rem;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.1rem;
  }
}
