@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #57534e;
  --surface: #fafaf9;
  --lavender: #ede9fe;
  --lavender-deep: #c4b5fd;
  --accent: #8b5cf6;
  --accent-deep: #6d28d9;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 35% 15%, #f5f3ff 0%, #ede9fe 35%, #ddd6fe 70%, #c4b5fd 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  width: min(1080px, 90vw);
  margin: 0 auto;
}

.site-header {
  padding: 0;
}

.header-bar {
  background: #f7f6f5;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 18px 0;
}

.header-links {
  display: flex;
  gap: 10px;
  font-weight: 500;
  color: #2f2b33;
  justify-self: center;
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.header-links .nav-link {
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-links .nav-link:hover,
.header-links .nav-link:focus-visible {
  background: #ece7fb;
  color: #241b33;
}

.header-links .nav-link.is-active {
  background: oklch(0.8876 0.0589 290.48);
  color: oklch(0.2486 0.0413 287.16);
}

.logo img {
  width: auto;
  height: 22px;
}

.header-spacer {
  width: 110px;
}

.site-main {
  padding: 90px 0 140px;
  flex: 1;
}

.hero-image {
  min-height: 96vh;
  background-image: url("/assets/index-background1.png");
  background-size: cover;
  background-position: center;
  margin-top: -90px;
}

.hero-image-overlay {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 90px;
  background: linear-gradient(180deg, rgba(15, 14, 24, 0.35) 0%, rgba(15, 14, 24, 0.55) 100%);
}

.hero-image-content {
  text-align: center;
  color: #fff;
}

.hero-image-content h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin: 0 0 24px;
}

.hero-jobs-button {
  background: #b58cff;
  color: #1c1917;
}

.jobs-list {
  text-align: center;
  padding: 10px 0 60px;
}

.jobs-list h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 40px;
}

.jobs-table {
  display: grid;
  gap: 0;
  max-width: 640px;
  margin: 0 auto 32px;
  border-top: 1px solid rgba(40, 36, 66, 0.16);
}

.job-row {
  padding: 24px 0;
  border-bottom: 1px solid rgba(40, 36, 66, 0.16);
}

.job-title {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 2px solid rgba(40, 36, 66, 0.6);
  padding-bottom: 2px;
}

.job-meta {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.job-status-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.22);
}

.job-status-button.is-disabled {
  background: #ddd6fe;
  color: #6d28d9;
  box-shadow: none;
  cursor: not-allowed;
}

.jobs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28);
}

.hero {
  text-align: center;
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 24px;
  color: #1c1917;
}

.hero p {
  margin: 0 auto 26px;
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.visiting-address {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.visiting-address h2 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.visiting-address p {
  margin: 4px 0;
}

.contact-map {
  padding: 60px 0 40px;
}

.contact-map-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.4fr);
  gap: 40px;
  align-items: center;
}

.contact-map-details h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.contact-map-details p {
  margin: 6px 0;
}

.contact-map-link {
  display: inline-block;
  margin-top: 14px;
  color: #1c1917;
  font-weight: 600;
  text-decoration: underline;
}

.contact-map-embed {
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  background: #f5f5f4;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

.contact-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.job-hero {
  text-align: center;
  padding-bottom: 20px;
}

.job-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 12px;
}

.job-attributes {
  margin: 22px auto 0;
  max-width: 620px;
  display: grid;
  gap: 12px;
  background: transparent;
}

.job-attribute {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(68, 64, 60, 0.12);
  text-align: left;
}

.job-attribute:last-child {
  border-bottom: none;
}

.job-attribute-label {
  font-size: 0.85rem;
  color: #57534e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.job-attribute-value {
  font-size: 0.95rem;
  color: #1c1917;
  font-weight: 500;
  text-align: right;
}

.job-body {
  margin-top: 30px;
}

.job-body h2 {
  font-size: 1.1rem;
  margin-top: 28px;
}

.job-apply {
  margin-top: 36px;
  text-align: center;
}

.job-apply-details {
  display: inline-block;
  text-align: center;
  max-width: 760px;
  width: 100%;
}

.job-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28);
  list-style: none;
}

.job-apply-details summary {
  margin: 0 auto;
}

.job-apply-button::marker {
  content: "";
}

.job-apply-button::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.job-apply-details[open] .job-apply-button::after {
  content: "–";
}

.job-apply-panel {
  margin: 16px auto 0;
  max-width: 760px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(250, 250, 249, 0.8);
  border: 1px solid rgba(68, 64, 60, 0.12);
  color: var(--muted);
}

.job-apply-panel a {
  color: var(--accent-deep);
  font-weight: 600;
}

.job-apply-details[open] .job-apply-panel {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  padding: 28px 24px 32px;
  background: #37344a;
  color: #e4dffc;
}

.job-apply-details[open] .job-apply-panel a {
  color: #fffefe;
}

.job-apply-details[open] .job-apply-panel > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.job-apply-form {
  margin-top: 16px;
}

.job-apply-form iframe {
  display: block;
  width: 100%;
  height: 870px;
}

.job-apply-note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: #57534e;
}

.job-apply-details[open] .job-apply-note {
  color: #e4dffc;
}

.job-apply-button.is-disabled {
  background: #ddd6fe;
  color: #6d28d9;
  box-shadow: none;
  cursor: not-allowed;
}

.section-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.section {
  padding: 40px 0 0;
  text-align: center;
}

.site-footer {
  margin-top: 80px;
  padding: 60px 0 40px;
  text-align: left;
  font-size: 0.95rem;
  color: #44403c;
  background: #f6f4fb;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(68, 64, 60, 0.18);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  font-weight: 500;
}

.footer-meta {
  text-align: right;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: #57534e;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-main {
    padding: 70px 0 100px;
  }

  .jobs-table {
    width: 90%;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-image {
    margin-top: -70px;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
    text-align: left;
  }

  .footer-meta {
    text-align: left;
  }

  .contact-map-grid {
    grid-template-columns: 1fr;
  }
}
