* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 38em) {
  html {
    font-size: 16px;
  }
}

body {
  color: #515151;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

a {
  color: #268bd2;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 600;
  line-height: 1.1;
  color: #333;
  letter-spacing: -.025rem;
}

h1 {
  font-size: 1.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  list-style: inside circle;
  padding-left: 0;
}

ul li {
  margin-bottom: .25rem;
  list-style-type: none;
}

img {
  display: block;
  max-width: 100%;
  margin: 0 0 1rem;
}

.container {
  max-width: 3000px;
  padding: 2rem 1.5rem;
  margin-left: auto;
  margin-right: auto;
  float: left;
  margin-left: 50px;
  display: table;
}

@media (min-width: 38rem) {
  .container {
    padding: 4rem 1rem;
  }
}

.masthead {
  width: 193px;
  float: left;
  display: table-cell;
}

.masthead-title {
  font-weight: 300;
}

.masthead-title a {
  color: #333;
}

.masthead-title a:hover,
.masthead-title a:focus {
  text-decoration: none;
}

.masthead .masthead-nav {
  margin-bottom: 2rem;
}

.masthead .masthead-nav ul {
  margin-left: 35px;
}

.masthead .masthead-nav a {
  color: #aaa;
  font-weight: 300;
  text-transform: lowercase;
  -webkit-transition: all .2s ease;
  -moz-transition: all .2s ease;
  transition: all .2s ease;
}

.masthead .masthead-nav a:hover,
.masthead .masthead-nav a:focus {
  color: #333;
  text-decoration: none;
}

.masthead .masthead-nav a.current-page {
  color: #333;
  font-weight: 500;
}

.page-description {
  margin-bottom: 1.5rem;
  color: #515151;
  font-size: 13px;
  line-height: 1.6;
}


.masthead .masthead-nav a+a {
  margin-left: .25rem;
}

.content {
  padding-left: 30px;
  border-left: 1px solid #dedfe0;
  font-size: 13px;
  display: table-cell;
  vertical-align: top;
}

.list {
  max-width: 700px;
}

.hero-image {
  max-width: 80%;
}

@media screen and (max-width: 850px) {
  .hero-image {
    max-width: 100%;
  }

  .container {
    margin: 0 auto;
    padding-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 600px;
    float: none;
    display: block;
  }

  .masthead {
    width: 100%;
  }

  .masthead-nav {
    float: left;
    display: inline;
    padding-left: 0;
    margin-bottom: 2px;
  }

  .masthead .masthead-nav ul {
    margin-left: 0;
  }

  .masthead-nav li {
    margin: 0;
    padding: 0;
    display: inline;
  }

  .masthead-nav li::after {
    content: " | ";
  }

  .masthead-nav ul li:last-child::after {
    content: "";
  }



  .masthead .masthead-nav {
    margin-bottom: 0px;
  }

  .content {
    width: 100%;
    padding: 0px;
    border-left: none;
    float: left;
    border-top: 1px solid #dedfe0;
    padding-top: 10px;
    margin-left: 0px;
    position: relative;
    display: block;
  }
}
/* ── Writing page ── */
.writing-section {
  margin-bottom: 40px;
}

.writing-section h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
  border-bottom: 1px solid #dedfe0;
  padding-bottom: 8px;
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-item {
  margin-bottom: 8px;
  padding: 6px 0;
}

.article-item:last-child {
  border-bottom: none;
}

.article-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.article-title a {
  color: #333;
  text-decoration: none;
}

.article-title a:hover {
  color: #268bd2;
  text-decoration: underline;
}

.article-meta {
  font-size: 0.9rem;
  color: #666;
}

.article-meta .publication {
  font-weight: 500;
  font-style: italic;
}

.article-meta .publication.no-italic {
  font-style: normal;
}

/* ── Photos page ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 500px));
  gap: 50px;
  margin-top: 20px;
  justify-content: start;
}

.photo-item {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  margin: 0;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-caption {
  padding: 4px 20px 20px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.photo-caption .location {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 15px;
}

.photo-caption .description {
  color: #666;
  font-size: 13px;
}

@media screen and (max-width: 850px) {
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    justify-content: center;
  }
  .photo-item { width: 100%; max-width: 100%; }
  .photo-item img { width: 100%; height: auto; aspect-ratio: 3/2; }
}

/* ── Operators / Cold War Dads page ── */
.ops-intro {
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: 13px;
  line-height: 1.7;
  color: #515151;
}

.ops-page-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.ops-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 1.25rem;
}

.ops-tagline {
  font-style: italic;
  color: #888;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 480px));
  gap: 44px;
  margin-top: 20px;
  justify-content: start;
}

.ops-era {
  grid-column: 1 / -1;
  border-top: 1px solid #dedfe0;
  padding-top: 28px;
  margin-top: 8px;
  margin-bottom: -12px;
}

.ops-era-years {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 3px;
}

.ops-era-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.01em;
}

.ops-era-count {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ccc;
  margin-left: 10px;
  vertical-align: middle;
}

.ops-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 34px;
  height: 34px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: none;
  z-index: 200;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.ops-back-top:hover {
  opacity: 1;
}

/* ── Era anchor navigation ── */
.ops-era-nav {
  margin-top: 1rem;
  font-size: 11px;
  color: #aaa;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ops-era-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ccc;
}

.ops-era-nav-link {
  color: #999;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.ops-era-nav-link:hover {
  color: #333;
  text-decoration: none;
}

.ops-entry {
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ops-entry:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.ops-photo-wrap {
  background: #111;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.ops-photo-placeholder {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.018) 3px,
      rgba(255,255,255,0.018) 4px
    ),
    #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.ops-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ops-photo-placeholder::before,
.ops-photo-placeholder::after {
  content: '';
  position: absolute;
  border: 1px solid #2a2a2a;
}

.ops-photo-placeholder::before {
  inset: 10px;
}

.ops-photo-placeholder::after {
  inset: 14px;
}

.ops-placeholder-text {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #2e2e2e;
  text-transform: uppercase;
  user-select: none;
  position: relative;
  z-index: 1;
}

.ops-caption {
  padding: 14px 20px 24px 20px;
}

.ops-side {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ops-side.american { color: #a02828; }
.ops-side.soviet   { color: #1d5a9a; }

.ops-name {
  font-weight: 600;
  color: #111;
  font-size: 14px;
  margin-bottom: 3px;
  line-height: 1.3;
}

.ops-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 11px;
  line-height: 1.5;
}

.ops-text {
  font-size: 13px;
  color: #515151;
  line-height: 1.75;
  margin: 0;
}

/* ── Filter buttons ── */
.ops-filter {
  margin-top: 1.5rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-filter-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #aaa;
  background: none;
  border: 1px solid #e0e0e0;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-transform: lowercase;
}

.ops-filter-btn:hover {
  color: #333;
  border-color: #bbb;
}

.ops-filter-btn.active {
  color: #111;
  border-color: #111;
  background: #111;
  color: #fff;
}

.ops-filter-count {
  font-weight: 400;
  opacity: 0.75;
}

/* ── Further Reading ── */
.ops-footer {
  grid-column: 1 / -1;
  border-top: 1px solid #dedfe0;
  padding-top: 36px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ops-footer-section h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
}

.ops-book-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ops-book {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 9px;
  padding-left: 0;
}

.ops-book em {
  font-style: italic;
  color: #333;
}

.ops-book .author {
  color: #999;
}

.ops-photo-note {
  font-size: 11px;
  color: #aaa;
  line-height: 1.65;
}

.ops-photo-note a {
  color: #aaa;
  text-decoration: underline;
}

@media screen and (max-width: 850px) {
  .ops-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ops-footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Print ── */
@media print {
  .masthead,
  .ops-filter,
  .ops-back-top {
    display: none !important;
  }

  .container {
    display: block;
    float: none;
    margin: 0;
    padding: 1.5rem;
    max-width: 100%;
  }

  .content {
    display: block;
    padding: 0;
    border-left: none;
    width: 100%;
  }

  .ops-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0;
  }

  .ops-era {
    break-before: page;
  }

  .ops-era:first-child {
    break-before: avoid;
  }

  .ops-entry {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    transform: none !important;
  }

  .ops-photo-placeholder {
    background: #f4f4f4 !important;
  }

  .ops-placeholder-text {
    color: #bbb;
  }

  .ops-footer {
    break-before: page;
    grid-template-columns: 1fr 1fr;
  }

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