/* Focus styles */
:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.1);
}

.type-tag:focus-visible,
.logo-specimen:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.1);
}

.type-specimen:focus-within,
.logo-grid:focus-within {
  outline: 2px solid #000;
  outline-offset: 4px;
}

/* Interactive states */
.type-tag {
  cursor: pointer;
  position: relative;
}

.type-tag:hover,
.type-tag:focus {
  outline: 2px solid #000;
  outline-offset: -2px;
  background-color: rgba(0, 0, 0, 0.02);
}

.type-tag::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background-image: repeating-linear-gradient(45deg,
      transparent,
      transparent 3px,
      #000 3px,
      #000 6px);
  opacity: 0;
  z-index: -1;
}

.type-tag:hover::after,
.type-tag:focus::after {
  opacity: 0.08;
}

.logo-specimen {
  cursor: pointer;
  position: relative;
}

.logo-specimen::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background-image: repeating-linear-gradient(45deg,
      transparent,
      transparent 4px,
      #fff 4px,
      #fff 8px);
  opacity: 0;
  z-index: -1;
}

.logo-specimen:hover::after,
.logo-specimen:focus::after {
  opacity: 0.12;
}

/* High contrast mode support */
@media (forced-colors: active) {

  .type-tag,
  .logo-specimen {
    border: 1px solid currentColor;
  }

  .type-specimen,
  .logo-specimen {
    border: 2px solid currentColor;
  }
}

/* Non-critical styles */
h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 24px;
  max-width: 720px;
  line-height: 1.3;
  margin: 0;
}

/* Principles */
.principle h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.05em;
}

.principle p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #595959;
}

/* Typography Showcase */
.type-specimen {
  background: #000;
  color: #fff;
  padding: 64px;
  margin: 0 0 16px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  overflow: hidden;
}

.type-specimen h2 {
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  position: absolute;
  top: 48px;
  left: 48px;
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 4px;
}

.specimen-text {
  font-size: 64px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  text-align: left;
  max-width: 90%;
  align-self: flex-start;
  padding-left: 48px;
}

.specimen-text .uppercase {
  display: block;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.specimen-text .lowercase {
  display: block;
  font-size: 48px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.specimen-text br {
  margin-bottom: 12px;
  display: block;
  content: "";
}

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.type-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #000;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
}

/* Logo Showcase */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0 0 16px 0;
  max-width: 800px;
}

@media (max-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

.logo-specimen {
  background: #000;
  color: #fff;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.logo-specimen h2 {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
}

/* Section Spacing */
header {
  padding: 48px 0;
}

section {
  margin: 0 0 64px 0;
}

section:last-of-type {
  margin-bottom: 0;
}

/* Footer */
footer {
  padding: 24px 0;
  border-top: 1px solid #000;
}

footer {
  text-align: left;
  padding: 32px 0;
}

footer p {
  font-size: 14px;
  margin: 0;
}

.copyright {
  font-size: 12px;
  color: #595959;
  margin-top: 12px;
}