:root {
  --background: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #06c;
  --green: #39a96b;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; background: var(--background); }

body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--background); letter-spacing: 0; }

a { color: inherit; }
button, a { font: inherit; }
button { cursor: pointer; }

.section-wrap { width: min(980px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: sticky; z-index: 10; top: 0; background: rgba(245, 245, 247, .86); border-bottom: 1px solid rgba(210, 210, 215, .72); backdrop-filter: saturate(180%) blur(18px); }
.header-inner { display: flex; width: min(980px, calc(100% - 48px)); min-height: 52px; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; }
.wordmark { color: var(--text); font-size: 21px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.site-state span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero { display: flex; min-height: 590px; align-items: center; justify-content: space-between; gap: 70px; padding-top: 112px; padding-bottom: 116px; }
.hero-copy { max-width: 650px; }
.eyebrow, .section-index { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 22px 0 19px; font-size: 80px; font-weight: 700; line-height: .98; letter-spacing: -.06em; }
.hero-subtitle { max-width: 510px; margin-bottom: 27px; color: var(--muted); font-size: 22px; line-height: 1.45; letter-spacing: -.02em; }
.primary-link, .email-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 15px; text-decoration: none; }
.primary-link:hover, .email-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-note { display: grid; width: 204px; min-height: 204px; align-content: space-between; flex: 0 0 auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.hero-note span, .hero-note small { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.hero-note strong { font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.hero-note small { line-height: 1.5; }

.intro-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(220px, .8fr); gap: 28px; align-items: start; padding-top: 58px; padding-bottom: 62px; }
.intro-statement { max-width: 550px; margin: 0; font-size: 28px; line-height: 1.35; letter-spacing: -.03em; }
.intro-detail { max-width: 270px; margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.content-section { padding-top: 104px; padding-bottom: 104px; }
.section-heading { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 28px; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: -.04em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr); gap: 90px; padding-top: 46px; }
.about-lead, .contact-lead { margin: 0; font-size: 28px; line-height: 1.35; letter-spacing: -.035em; }
.about-body { max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-meta { margin: 26px 0 0; color: var(--text); font-size: 12px; line-height: 1.8; }

.work-section { padding-top: 0; }
.work-list { border-bottom: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 28px; align-items: center; min-height: 112px; border-bottom: 1px solid var(--line); }
.work-row:last-child { border-bottom: 0; }
.work-number { color: var(--muted); font-size: 12px; }
.work-copy h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.work-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.work-status { color: var(--muted); font-size: 12px; white-space: nowrap; }
.work-status:first-letter { color: var(--green); }

.status-section { color: var(--text); background: #e8e8ed; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-inner { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto 36px; gap: 25px; min-height: 78px; align-items: center; }
.status-label { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-dot.is-error { background: #d64545; }
.status-inner p, #server-time { margin: 0; color: var(--muted); font-size: 12px; }
#server-time { white-space: nowrap; }
.refresh-button { display: grid; width: 32px; height: 32px; place-items: center; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; line-height: 1; }
.refresh-button:hover { color: var(--blue); border-color: var(--blue); }
.refresh-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.contact-section { padding-bottom: 128px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; padding-top: 46px; }
.email-link { font-size: 17px; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 10px; }
.footer-inner a { color: var(--text); text-decoration: none; }
.footer-inner a:hover { color: var(--blue); }

@media (max-width: 720px) {
  .hero { min-height: 540px; align-items: flex-start; flex-direction: column; gap: 56px; padding-top: 78px; padding-bottom: 80px; }
  h1 { font-size: 64px; }
  .hero-subtitle { font-size: 19px; }
  .hero-note { width: 100%; min-height: 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; }
  .hero-note strong { font-size: 16px; }
  .intro-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .intro-statement { font-size: 24px; }
  .intro-detail, .about-body { max-width: 470px; }
  .section-heading, .work-row { grid-template-columns: 46px minmax(0, 1fr); gap: 18px; }
  .work-row { min-height: 104px; }
  .work-status { grid-column: 2; }
  .status-inner { grid-template-columns: 150px minmax(0, 1fr) 34px; gap: 14px; }
  .status-inner #server-time { grid-column: 2; grid-row: 2; }
  .contact-grid { padding-top: 34px; }
}

@media (max-width: 480px) {
  .section-wrap, .header-inner { width: min(100% - 32px, 480px); }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: 11px; }
  .site-state { display: none; }
  .hero { min-height: 500px; padding-top: 64px; padding-bottom: 68px; }
  h1 { margin-top: 18px; font-size: 52px; }
  .hero-subtitle { font-size: 18px; }
  .hero-note { grid-template-columns: 1fr; gap: 8px; }
  .content-section { padding-top: 76px; padding-bottom: 76px; }
  .section-heading { padding-bottom: 17px; }
  .section-heading h2 { font-size: 28px; }
  .about-lead, .contact-lead { font-size: 24px; }
  .work-row { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .work-status { grid-column: 2; }
  .status-inner { grid-template-columns: 1fr 34px; gap: 9px; padding-top: 14px; padding-bottom: 14px; }
  .status-label, .status-inner p { grid-column: 1; }
  .status-inner #server-time { grid-column: 1; grid-row: auto; }
  .refresh-button { grid-column: 2; grid-row: 1 / span 3; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 16px; padding-bottom: 16px; }
}
