@font-face {
  font-family: "PT Sans";
  src: url("/fonts/pt-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("/fonts/pt-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("/fonts/pt-sans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("/fonts/pt-sans-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --page-bg: #f4f5f3;
  --content-bg: #ffffff;
  --text: #171717;
  --muted: #686868;
  --border: #deded8;
  --accent: #49624a;
  --accent-dark: #263d2c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  background: #ffffff;
}

.header-image {
  position: relative;
  width: 100%;
  height: clamp(280px, 23.67vw, 450px);
  overflow: hidden;
}

.header-visual {
  position: absolute;
  inset: 0;
  background-color: #d8d8d2;
  background-image: var(
    --header-background-image,
    url("/images/assets/great-tefl-jobs-header.webp")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 140ms ease;
}

.header-visual.is-changing {
  opacity: 0.55;
}

.header-refresh {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  right: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(20, 20, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
  opacity: 0.76;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    opacity 140ms ease;
}

.header-refresh:hover,
.header-refresh:focus-visible {
  color: #ffffff;
  background: rgba(20, 20, 20, 0.58);
  opacity: 0.96;
}

.header-refresh:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.header-refresh:disabled {
  cursor: default;
}

.header-refresh svg {
  width: 15px;
  height: 15px;
}

.header-overlay {
  position: absolute;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  color: #111111;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 800;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.index-shell {
  max-width: 1180px;
}

.content-column,
.sidebar-block {
  background: var(--content-bg);
  border: 1px solid var(--border);
}

.content-column {
  padding: 40px;
}

.category-page-title {
  margin-bottom: 28px;
}

.author-profile {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.author-profile h1 {
  margin-bottom: 14px;
}

.author-profile p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 28px;
}

.homepage-section-heading {
  margin: 0 0 24px;
  font-size: 1.75rem;
}

.homepage-section-divided {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.eyebrow,
.post-category {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.post-list {
  display: grid;
}

.post-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.post-card-no-image {
  grid-template-columns: 1fr;
}

.post-card:first-child {
  padding-top: 0;
}

.category-page-title + .post-list .post-card:first-child {
  padding-top: 0;
}

.post-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.post-image-link {
  display: block;
  width: 220px;
}

.post-image-link img {
  display: block;
  width: 220px;
  height: 150px;
  object-fit: cover;
  background: #d8d8d2;
}

.post-card h2 {
  margin-bottom: 6px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.post-date {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.post-date a,
.post-meta a {
  color: var(--accent-dark);
}

.post-excerpt {
  margin-bottom: 0;
  color: var(--muted);
}

.sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.sidebar-block {
  padding: 26px;
}

.sidebar-block h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.sidebar-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-block li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-block li:last-child {
  border-bottom: 0;
}

.category-count {
  color: var(--muted);
  font-size: 0.9em;
}

.category-parent > a {
  font-weight: 700;
}

.sidebar-block .subcategory-list {
  margin: 8px 0 0 10px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

.subcategory-list li {
  padding: 7px 0;
  font-size: 0.95em;
}

.recent-comment strong {
  color: var(--text);
}

.recent-comment-message {
  color: var(--muted);
}

.ad-block {
  background: #faf9f4;
}

.ad-block p {
  margin-bottom: 0;
  color: var(--muted);
}

.support-link {
  display: block;
}

.support-link img {
  display: block;
  width: 100%;
  height: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.pagination a {
  color: var(--accent-dark);
}

.post-page h1 {
  margin-bottom: 24px;
}

.post-feature-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 24px;
  background: #d8d8d2;
}

.post-page-excerpt {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.job-details {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--page-bg);
  border: 1px solid var(--border);
}

.job-details h2 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.job-summary {
  margin-top: 20px;
}

.job-summary h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.job-summary p {
  margin-bottom: 0;
  line-height: 1.65;
}

.job-details dl {
  margin: 0;
}

.job-detail-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 8px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.job-detail-row:first-child {
  padding-top: 0;
}

.job-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.job-detail-row dt {
  font-weight: 800;
}

.job-detail-row dd {
  margin: 0;
}

.job-detail-row a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content {
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.comments h2 {
  margin-bottom: 24px;
  font-size: 1.75rem;
}

.comment-list {
  display: grid;
  gap: 20px;
}

.comment {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 8px;
}

.comment-header strong,
.comment-header a {
  color: var(--accent-dark);
  font-weight: 700;
}

.comment-header a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-content {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.comment-loading,
.comment-empty,
.comment-error {
  color: var(--muted);
}

.comment-form {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding: 24px;
  background: var(--page-bg);
  border: 1px solid var(--border);
}

.comment-form h3 {
  margin: 0;
  font-size: 1.35rem;
}

.comment-field {
  display: grid;
  gap: 6px;
}

.comment-field label {
  font-weight: 700;
}

.comment-field label span {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 400;
}

.comment-field input,
.comment-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8b8b0;
  border-radius: 3px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.comment-field textarea {
  resize: vertical;
}

.comment-field input:focus,
.comment-field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 1px;
}

.comment-form button {
  justify-self: start;
  padding: 10px 18px;
  border: 0;
  border-radius: 3px;
  background: var(--accent-dark);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.comment-form button:hover {
  background: var(--accent);
}

.comment-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.comment-form-status {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
}

.comment-form-status.is-success {
  color: var(--accent-dark);
  font-weight: 700;
}

.comment-form-status.is-error {
  color: #9b1c1c;
  font-weight: 700;
}

.comment-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: inherit;
}

.footer-separator {
  margin: 0 8px;
  color: var(--border);
}

@media (max-width: 850px) {
  .header-image {
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  .header-visual {
    position: relative;
    inset: auto;
    height: 190px;
  }

  .header-overlay {
    position: relative;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-brand {
    font-size: 1.35rem;
  }

  .job-detail-row {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .content-column {
    padding: 28px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-image-link,
  .post-image-link img {
    width: 100%;
  }

  .post-image-link img {
    height: 210px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
