:root {
  --bg: #f6f7f3;
  --surface: #fff;
  --text: #171915;
  --muted: #596159;
  --line: #d9ded4;
  --line-strong: #b7c0b2;
  --accent: #0b6b57;
  --accent-soft: #e3f2ec;
  --link: #0645ad;
  --code: #f0f2ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  display: block;
  height: 4px;
  background: var(--accent);
  content: "";
}

main {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

header,
nav,
section {
  margin-bottom: 32px;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin-top: 0;
}

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

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

.eyebrow a:hover,
.eyebrow a:focus-visible {
  text-decoration: underline;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

header p:not(.eyebrow),
section > p,
.section-header p {
  color: var(--muted);
}

ul,
ol {
  padding-left: 24px;
}

li + li {
  margin-top: 6px;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(22 26 20 / 6%);
}

.tab,
.copy-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.tab:hover,
.copy-button:hover {
  background: var(--accent-soft);
  border-color: var(--line);
}

.tab:focus-visible,
.copy-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(11 107 87 / 25%);
  outline-offset: 2px;
}

.tab[aria-selected="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}

.repo-link {
  margin-left: auto;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.repo-link:hover,
.repo-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-header p,
.copy-status {
  margin-bottom: 0;
}

.copy-button {
  flex: none;
  background: var(--surface);
  border-color: var(--line-strong);
  font-weight: 650;
}

.copy-button:disabled {
  color: var(--muted);
  cursor: wait;
}

.copy-status {
  min-height: 1.5em;
  color: var(--muted);
}

.office-hours-card,
.markdown-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgb(22 26 20 / 5%);
}

.office-hours-card {
  max-width: 560px;
  padding: 24px;
}

.office-hours-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--line-strong);
  border-radius: 50%;
}

.office-hours-status[data-state="open"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgb(11 107 87 / 28%);
}

.office-hours-status[data-state="open"] .status-dot {
  background: var(--accent);
}

.office-hours-status[data-state="closed"] .status-dot {
  background: #8a6a00;
}

.office-hours-window {
  margin-bottom: 8px;
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1.15;
}

.office-hours-card p {
  color: var(--muted);
}

.meet-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-weight: 650;
  text-decoration: none;
}

.meet-link:hover,
.meet-link:focus-visible {
  background: #075746;
  text-decoration: none;
}

img {
  max-width: 100%;
}

code {
  padding: 0.125rem 0.25rem;
  background: var(--code);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.925em;
}

pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
}

pre code {
  padding: 0;
  background: transparent;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

th,
td {
  padding: 7px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

blockquote {
  margin-left: 0;
  padding-left: 16px;
  color: var(--muted);
  border-left: 4px solid var(--line-strong);
}

.markdown-document {
  margin-top: 14px;
  padding: 24px;
}

.markdown-document h1 {
  font-size: 1.7rem;
  line-height: 1.2;
}

.markdown-document h2 {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.markdown-document h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.markdown-document h3 {
  margin-top: 24px;
}

@media (max-width: 700px) {
  main {
    width: min(100% - 24px, 980px);
    padding: 36px 0 48px;
  }

  .tabs {
    align-items: stretch;
  }

  .tab {
    flex: 1 1 auto;
  }

  .repo-link {
    width: 100%;
    margin-left: 0;
    padding-left: 8px;
  }

  .section-header {
    display: block;
  }

  .copy-button {
    margin-top: 12px;
  }

  .markdown-document {
    padding: 18px;
  }

  .office-hours-card {
    padding: 18px;
  }
}
