:root {
  --content-max-width: 58rem;
  --bg-soft: #f4f6f8;
  --line: #cbd2d9;
  --text: #17212b;
  --link: #0b5fa5;
  --link-hover: #084c84;
  --tab-active-bg: #ffffff;
  --tab-inactive-bg: #e6ebf0;
  --tab-focus: #1769aa;
}

body {
  margin: 1.5rem;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(244, 246, 248, 0.68)),
    url("jjbatwork.webp") center center / cover no-repeat fixed;
  min-height: 100vh;
}

img.site-logo {
  display: block;
  width: 220px;
  height: 170px;
  margin-bottom: 1rem;
}

.site-content {
  max-width: var(--content-max-width);
}

.tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--tab-inactive-bg);
}

.tab-button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--tab-inactive-bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button[aria-selected="true"] {
  background: var(--tab-active-bg);
}

.tab-button:focus-visible {
  outline: 2px solid var(--tab-focus);
  outline-offset: -2px;
}

.tab-panel {
  padding: 1rem 1.1rem;
}

.tab-panel p {
  text-wrap: pretty;
}

a {
  color: var(--link);
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

@media (max-width: 720px) {
  body {
    margin: 1rem;
    background-attachment: scroll;
  }

  .tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-button {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
  }
}
