:root {
  --bg: #ebfaf8;
  --surface: #ffffff;
  --text: #051413;
  --muted: #3d5c58;
  --line: rgba(5, 20, 19, 0.12);
  --accent: #0e3934;
  --accent-hover: #165a52;
  --header-bg: #0e3934;
  --footer-bg: #c6f1ec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(5, 20, 19, 0.06), 0 8px 24px rgba(5, 20, 19, 0.06);
  --max: 40rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ish-tech-wordmark-size: 1.5rem;
  --brand-wordmark-color: #64d8cb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--header-bg);
}

.header-inner {
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-lockup .ish-tech-wordmark {
  color: var(--brand-wordmark-color);
}

.brand-logo {
  width: auto;
  height: 1.875rem;
  flex-shrink: 0;
}

.ish-tech-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.07em;
  font-size: var(--ish-tech-wordmark-size);
  font-weight: 400;
  line-height: 1;
  color: inherit;
}

.ish-tech-wordmark__ish,
.ish-tech-wordmark__tech {
  transform-origin: left center;
}

.ish-tech-wordmark__ish {
  font-family: "Times New Roman", serif;
  letter-spacing: 0.015em;
  transform: scaleX(1.07);
}

.ish-tech-wordmark__tech {
  font-family: "Courier New", monospace;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  transform: scaleX(0.94);
}

.brand-logo[src$=".png"],
.brand-logo[src$=".webp"] {
  width: auto;
  height: 1.875rem;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 480px) {
  .brand-logo {
    height: 2rem;
  }

  .brand-logo[src$=".png"],
  .brand-logo[src$=".webp"] {
    height: 2rem;
  }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(0.75rem, 4dvh, 1.75rem) 1.25rem;
}

.panel {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.intro {
  padding: clamp(1.25rem, 4dvh, 2rem) clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 18rem;
  margin-block: auto;
}

.panel-clock {
  margin-top: clamp(0.4rem, 1.1vh, 0.65rem);
  margin-left: auto;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  background: #0e3934;
  width: clamp(11rem, 31vw, 14.5rem);
}

.panel-clock .digital-clock {
  --segment-on-color: #64d8cb;
  --segment-off-color: #134B44;
  gap: 0.45rem;
}

/* Compact panel clock: roughly 95px total height with comfortable breathing room. */
.panel-clock .dc-time-row {
  --time-digit-width: clamp(1.15rem, 2vw, 1.55rem);
  gap: 0.22rem;
}

.panel-clock .dc-date-row {
  --date-row-digit-width: clamp(0.72rem, 1.2vw, 0.95rem);
  gap: 0.08rem;
}

.panel-clock .dc-date-cell,
.panel-clock .dc-day-cell {
  gap: 0.08rem;
}

.panel-clock .dc-time-row .dc-ampm-cell {
  gap: 0.06rem;
  margin-left: 0.1rem;
}

.panel-clock .dc-date-day-spacer {
  width: 0.33rem;
}

.intro h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.55;
}

.tags {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.tags span {
  white-space: nowrap;
}

.site-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.25rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid rgba(5, 20, 19, 0.08);
  background: var(--footer-bg);
}

.site-footer .ish-tech-wordmark {
  --ish-tech-wordmark-size: 0.8125rem;
  vertical-align: baseline;
}

.social {
  margin-bottom: 0.65rem;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(5, 20, 19, 0.06);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.social-link--avatar {
  overflow: hidden;
}

.social-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.footer-copy {
  margin: 0;
}

@media (max-width: 760px) {
  .intro {
    min-height: 0;
  }

  .panel-clock {
    width: clamp(10.6rem, 62vw, 13.2rem);
  }
}
