/* LENCOIS — a quiet, typography-first developer site */
:root {
  --color-bg: #fff;
  --color-text: #252525;
  --color-text-muted: #707070;
  --color-border: #e8e8e8;
  --color-accent: #0097e0;
  --color-link: #007da8;
  --color-accent-soft: #eff9fd;
  --space-6: 4rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); font-size: 14px; line-height: 1.9; -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-link); outline-offset: 6px; }
img { display: block; max-width: 100%; }
.container, .container--wide, .site-header__inner, .site-footer__inner { width: min(100% - 48px, 720px); margin-inline: auto; }
.site-header { padding-top: 42px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 15px; font-weight: 650; letter-spacing: .04em; text-decoration: none; color: var(--color-accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.site-nav a { font-size: 12px; text-decoration: none; color: var(--color-text-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-link); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav-toggle { display: none; }
.hero { padding: 112px 0 84px; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; color: var(--color-text-muted); font-size: 11px; letter-spacing: .09em; }
.hero__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--color-accent); }
.hero h1 { margin: 0 0 25px; font-size: clamp(27px, 5vw, 36px); line-height: 1.6; font-weight: 600; letter-spacing: .025em; }
.hero__lead { margin: 0; max-width: 580px; color: var(--color-text-muted); line-height: 2.1; }
.btn { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 12px; text-decoration: none; }
.btn::after { content: "↗"; color: var(--color-link); }
.btn:hover { text-decoration: underline; }
.section { padding: 0 0 56px; }
.section__header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.section__label { order: 2; margin: 0; color: var(--color-text-muted); font-size: 11px; }
.section__title { margin: 0; font-size: 13px; font-weight: 600; }
.project-grid { display: grid; }
.project-card { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--color-border); text-decoration: none; }
.project-card__thumb { flex: 0 0 64px; width: 64px; height: 64px; background: var(--color-accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; }
.project-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card__placeholder { color: var(--color-link); font-size: 24px; font-weight: 500; }
.project-card__body { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-content: start; column-gap: 16px; }
.project-card__body h3 { grid-column: 1; margin: 0 0 4px; font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.015em; }
.project-card__tagline { grid-column: 1; margin: 0; font-size: 13px; color: var(--color-text-muted); }
.project-card__description { grid-column: 1 / -1; margin: 12px 0 0; font-size: 13px; color: var(--color-text-muted); }
.project-card__status { grid-column: 2; grid-row: 1; align-self: center; font-size: 10px; color: var(--color-text-muted); white-space: nowrap; }
a.project-card:hover h3 { color: var(--color-link); text-decoration: underline; text-underline-offset: 5px; }
.page-header { padding-block: 95px 38px; }
.page-header h1 { margin: 0 0 16px; font-size: 28px; line-height: 1.5; font-weight: 550; letter-spacing: -.025em; }
.page-header p { margin: 0; color: var(--color-text-muted); font-size: 13px; max-width: 560px; }
.prose { max-width: 590px; }
.prose p { margin: 0 0 24px; line-height: 2.2; }
.prose p:last-child { margin-bottom: 0; }
.contact-card { border-top: 1px solid var(--color-border); }
.contact-item { display: flex; align-items: baseline; gap: 40px; padding-block: 24px; border-bottom: 1px solid var(--color-border); }
.contact-item__label { flex: 0 0 72px; font-size: 12px; color: var(--color-text-muted); }
.contact-item__value { color: var(--color-link); font-size: 14px; overflow-wrap: anywhere; }
.site-footer { margin-top: 48px; padding-bottom: 32px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid var(--color-border); font-size: 11px; color: var(--color-text-muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 540px) {
  .container, .container--wide, .site-header__inner, .site-footer__inner { width: calc(100% - 40px); }
  .site-header { padding-top: 26px; }
  .site-header__inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .site-nav { gap: 10px 20px; }
  .hero { padding-block: 72px 60px; }
  .hero h1 { font-size: 26px; }
  .hero__lead { font-size: 13px; }
  .page-header { padding-block: 64px 30px; }
  .project-card { gap: 16px; padding-block: 24px; }
  .project-card__thumb { flex-basis: 48px; width: 48px; height: 48px; border-radius: 10px; }
  .project-card__placeholder { font-size: 21px; }
  .project-card__body { column-gap: 8px; }
  .project-card__tagline { grid-column: 1 / -1; font-size: 12px; }
  .contact-item { gap: 16px; }
}

/* Official logo: preserve the SVG's original aspect ratio. */
.wordmark--logo { display: block; flex: 0 0 auto; width: 140px; }
.wordmark--logo img { width: 100%; height: auto; }

/* Blog: static article list and long-form reading. */
.blog-empty { padding: 44px 0 64px; }
.blog-empty p { margin: 0 0 8px; }
.blog-empty p + p { font-size: 12px; color: var(--color-text-muted); }
.post-list { list-style: none; padding: 0; margin: 0 0 48px; }
.post-link { display: grid; grid-template-columns: 92px 1fr 16px; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--color-border); text-decoration: none; }
.post-link time, .article-meta { color: var(--color-text-muted); font-size: 12px; }
.post-link h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.post-link p { margin: 0; font-size: 13px; color: var(--color-text-muted); }
.post-arrow { color: var(--color-link); }
.article-page { padding-top: 72px; padding-bottom: 32px; }
.article-back, .article-bottom { font-size: 12px; color: var(--color-link); }
.article-header { margin: 36px 0; padding-bottom: 28px; border-bottom: 1px solid var(--color-border); }
.article-meta { margin: 0 0 12px; }
.article-header h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.6; overflow-wrap: anywhere; }
.article-body { font-size: 15px; line-height: 2.1; overflow-wrap: anywhere; }
.article-body > * { margin-block: 0 24px; }
.article-body h2 { margin-top: 48px; font-size: 21px; line-height: 1.7; }
.article-body h3 { margin-top: 32px; font-size: 17px; }
.article-body a { color: var(--color-link); }
.article-body img { height: auto; margin-inline: auto; }
.article-body figure { margin-inline: 0; }
.article-body figcaption { margin-top: 10px; font-size: 12px; color: var(--color-text-muted); text-align: center; }
.article-body blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--color-accent); color: var(--color-text-muted); }
.article-body pre { overflow-x: auto; padding: 20px; background: #f6f8f9; font-size: 13px; line-height: 1.7; }
.article-body code { font-size: .9em; }
.article-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-border); }
@media (max-width: 540px) {
  .post-link { grid-template-columns: 1fr 16px; gap: 8px 16px; }
  .post-link time { grid-column: 1 / -1; }
  .post-arrow { grid-column: 2; grid-row: 2; }
  .article-page { padding-top: 48px; }
}

.project-card__link { grid-column: 1 / -1; margin-top: 12px; font-size: 12px; color: var(--color-link); text-decoration: underline; text-underline-offset: 4px; }

.contact-note { margin: 20px 0 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.9; }

.contact-form { max-width: 590px; margin-bottom: 48px; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form-title { padding: 0; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.contact-form label { display: block; margin: 20px 0 8px; font-size: 13px; }
.contact-form label span { margin-left: 8px; font-size: 10px; color: var(--color-text-muted); }
.contact-form input, .contact-form textarea, .contact-form select { display: block; width: 100%; min-width: 0; padding: 12px; border: 1px solid #aaa; border-radius: 6px; font: inherit; font-size: 16px; color: var(--color-text); background: white; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }
.contact-form input:disabled, .contact-form textarea:disabled, .contact-form select:disabled { background: #f7f7f7; }
.contact-form .contact-trap { display: none; }
#contact-verification { margin-top: 24px; }
.contact-submit { margin-top: 20px; padding: 12px 28px; background: var(--color-link); color: white; border: 0; border-radius: 999px; font: inherit; cursor: pointer; }
.contact-submit:disabled { background: #e8e8e8; color: #656565; cursor: default; }
#contact-status { font-size: 13px; margin-top: 18px; }
