@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --accent-color-red: #cc0000;
    --accent-color-black: #001020;
    --base-spacing: clamp(12px, 2vw, 24px);
}

body {
    background-color: #f7f7f1;
}

.title-container {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;  
  width: 100%;  
  max-width: 1200px;  
  margin-left: auto;  
  margin-right: auto; 
  padding: 0;  
  padding-left: -2px;
}

.title {
  font-size: clamp(24px, 8vw, 64px);
  font-family: 'Space Grotesk', Helvetica, sans-serif;
  font-weight: bold;
  letter-spacing: clamp(0.5px, 1vw, 5px);
  text-align: left; 
  margin: 0;
  color: var(--accent-color-black);
}

.subtitle {
  font-size: clamp(12px, 4vw, 20px);
  font-family: 'Space Grotesk', Helvetica, sans-serif;
  font-weight: normal;
  letter-spacing: clamp(0px, 0.5vw, 1px);
  color: gray;
  margin-left: 10px; 
  text-align: left; 
}

.spec-box {
    position: relative;
    margin-top: 32px;
    border: 2px solid var(--accent-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2px;
    transition: all 0.3s ease;
}

.spec-box.red {
    --accent-color: var(--accent-color-red);
}

.spec-box.black {
    --accent-color: var(--accent-color-black);
}

.spec-tab {
    position: absolute;
    top: 0;
    left: -2px;
    transform: translateY(-100%);
    background: var(--accent-color);
    color: white;
    padding: 0px 12px;
    font-size: clamp(12px, 1.5vw, 16px);
    font-family: 'Space Grotesk', Arial, sans-serif;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
    height: 24px;
    line-height: 24px;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 1;
}

.spec-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0px;
    width: calc(100% + 2px);
    height: 1px;
    background: var(--accent-color);
}

.spec-content {
    padding: clamp(6px, 2vw, 10px);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.4;
    font-family: 'Space Grotesk', Helvetica, sans-serif;
    transition: all 0.3s ease;
    opacity: 1;
}

.spec-content-dots {
    display: none;
    padding: var(--base-spacing);
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.2;
    font-family: 'Space Grotesk', Helvetica, sans-serif;
    font-weight: bold;
    color: var(--accent-color);
    cursor: pointer;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.spec-content-dots:hover {
    opacity: 1;
}

.spec-box.collapsed .spec-content {
    display: none;
}

.spec-box.collapsed .spec-content-dots {
    display: block;
}

nav {
    background: #f8f8f8;
    border-bottom: 2px solid var(--accent-color);
    padding: 0;
    margin-bottom: var(--base-spacing);
    width: 100%;
    overflow-x: auto; 
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2px;
    min-width: min-content; 
}

nav li {
    margin: 0;
    flex-shrink: 0; 
}

nav a {
    display: block;
    padding: clamp(6px, 1.5vw, 12px) clamp(12px, 2vw, 24px);
    text-decoration: none;
    background: #e0e0e0;
    color: #333;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: bold;
    border-top: 1px solid var(--accent-color);
    border-left: 1px solid var(--accent-color);
    border-right: 1px solid var(--accent-color);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    position: relative;
    bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

nav a:hover {
    background: #f0f0f0;
    color: var(--accent-color);
}

nav a.active, 
nav a:active {
    background: white;
    color: var(--accent-color);
    border-bottom: 2px solid white;
    bottom: -2px;
}

.highlight-list {
    display: flex;
    gap: 16px;
    justify-content: left;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 0;
    list-style: none; 
}

.highlight-item {
    background: var(--accent-color-red);  
    color: white;
    padding: 10px 20px;
    font-family: 'Space Grotesk', Helvetica, sans-serif;
    font-weight: bold;
    font-size: clamp(10px, 2vw, 16px);
    text-transform: uppercase;
    border-radius: 3px;
    list-style: none;  
}

a {
    color: #333; 
    text-decoration: none; 
    font-family: 'Space Grotesk', Helvetica, sans-serif;
    font-weight: bold; 
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    color: var(--accent-color); 
    background-color: #f0f0f0; 
    text-decoration: underline; 
}

a:active,
a:focus {
    color: var(--accent-color); 
    background-color: white; 
    outline: none; 
}

a.external-link {
    position: relative; 
}

a.external-link::after {
    content: '↗';  
    font-size: 0.8em;
    margin-left: 8px;
    font-weight: normal;
    opacity: 0.7; 
    transition: opacity 0.2s ease;
}

a.external-link:hover::after {
    opacity: 1; 
}

footer {
  font-size: clamp(12px, 4vw, 20px);
  font-family: 'Space Grotesk', Helvetica, sans-serif;
  font-weight: normal;
  letter-spacing: clamp(0px, 0.5vw, 1px);
  color: gray;
  margin-left: 10px; 
  text-align: right; 
}
