:root {
  --color-text: #333;
  --color-text-subtle: #666;
  --color-background: #fafafa;
  --color-border: #ccc;
  --color-error: #d00;
  --color-accent: #000;
  --font-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --base-font-size: 16px;
  --line-height: 1.5;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 3.75rem;
  --container-width: 1200px;
  --content-width: 75ch;
  --page-padding: clamp(1rem, 5vw, 3rem);
}

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

html {
  font-size: var(--base-font-size);
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: var(--line-height);
  font-weight: 400;
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 1.75rem);
  font-weight: 200;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  text-wrap: pretty;
}

h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-wrap: pretty;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-style: italic;
  line-height: 1.3;
}

.page-wrapper {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

header, footer {
  padding-block: var(--spacing-lg);
}

main {
  flex: 1;
}

footer {
  padding-block: 1.875rem;
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
}

nav {
  margin-top: var(--spacing-md);
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  margin-right: 1.875rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease-in-out;
  letter-spacing: 0.01em;
  cursor: pointer;
}

nav a:is(:hover, :focus, .active) {
  border-bottom-color: var(--color-text);
  outline: none;
}

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

.content > * + * {
  margin-top: 1.25em;
}

.content h2 {
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.625rem;
}

.content h3 {
  margin-top: 1em;
  margin-bottom: 1em;
}

.content ul {
  list-style: none;
}

.content li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9375rem;
}

.content li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.content.newspaper {
  hyphens: auto;
}

.contact.prominent {
  font-size: 1em;
  max-width: 500px;
}

.contact.prominent p {
  letter-spacing: 0.03em;
}

.contact.prominent a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
  color: var(--color-accent);
}

.hidden {
  display: none;
}

@media (min-width: 48em) {
  .content.newspaper {
    column-count: 2;
    column-gap: var(--spacing-lg);
    column-rule: 1px solid var(--color-border);
  }

  .content h2,
  .content h3,
  .content ul {
    break-inside: avoid;
  }

  .content h2 {
    column-span: all;
  }
}

.password-form-container {
  margin-block: 1rem;
}

.password-form {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-wrap: wrap;
}

.password-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  flex: 1;
  min-width: 150px;
  max-width: 300px;
}

.button-outline {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 1px solid var(--color-text);
  cursor: pointer;
  color: var(--color-text);
  transition: background-color 0.2s, color 0.2s;
}

.button-outline:hover,
.button-outline:focus {
  background-color: var(--color-text);
  color: var(--color-background);
  outline: none;
}

.error-text {
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: 0.625rem;
}

.job-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-location {
  font-weight: 300;
  font-size: 1.125rem;
  font-style: normal;
  color: var(--color-text-subtle);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1em;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 47.999em) {
  .job-title {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .job-location {
    font-size: 1rem;
  }
}