body {
  margin: 0;
  background: #181b1f;
  color: #657381;
  font-family: "Abel";
}

.container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 2fr 0.5fr 2fr 1fr;
  grid-template-rows: 110px 177px 1fr 90px;
  grid-template-areas:
    "header header header header header"
    "centerwell centerwell centerwell centerwell centerwell"
    "lgutter primary primary secondary rgutter"
    "footer footer footer footer footer";
}

/* ---------------- header ---------------- */

.header {
  grid-area: header;
  background: #181b1f;
  display: grid;
  grid-template-columns: 1fr 2fr 0.5fr 2fr 1fr;
  height: 100%;
}

.logo {
  height: 100px;
  grid-column: 1;
  width: auto;
  display: flex;
  place-self: center;
}

.brand {
  grid-column: 2;
  justify-self: start;
  display: flex;
  align-items: center;
}

.brand-bar {
  width: 1px;
  height: 30px;
  background: #2a2f35;
}

.brand-text {
  font-size: 20px;
  letter-spacing: 2px;
  padding-left: 25px;
  color: #657381;
}

/* ---------------- centerwell ---------------- */

.centerwell {
  grid-area: centerwell;
  background: #3d464e;
  display: grid;
  grid-template-columns: 1fr 2fr 0.5fr 2fr 1fr;
  height: 100%;
}

.cw-nav {
  grid-column: 2 / 5;
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.cw-btn {
  height: 100%;
  flex: 1 1 0;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  border-right: 1px solid #2f3740;
  user-select: none;
  color: #657381;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1;

  transition: flex-grow 1000ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 1000ms ease, color 1000ms ease;
}

.cw-btn:hover,
.cw-btn:focus-visible {
  flex-grow: 3;
  background: #00ae0a;
  color: #181b1f;
  outline: none;
}

.cw-btn.is-active {
  background: #00ae0a;
  color: #181b1f;
}

.cw-btn:first-child {
  border-left: 1px solid #2f3740;
}

/* ---------------- view switching ---------------- */

.view,
.sideview {
  display: none;
}

.view-home {
  display: block;
}
.side-home {
  display: block;
}

#home:target ~ .view-home,
#job:target ~ .view-job {
  display: block;
}

body:has(#job:target) .view-home {
  display: none;
}
body:has(#job:target) .side-home {
  display: none;
}
body:has(#job:target) .side-job {
  display: block;
}

.view-anchor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------- gutters / footer ---------------- */

.lgutter {
  grid-area: lgutter;
  background: #181b1f;
}
.rgutter {
  grid-area: rgutter;
  background: #181b1f;
}

.footer {
  grid-area: footer;
  background: #181b1f;
}

/* ---------------- primary ---------------- */

.primary {
  grid-area: primary;
  background: #181b1f;
}

.primary_content {
  padding-top: 30px;
  padding-right: 30px;
  padding-left: 5px;
}

.primary_content p,
.primary_content span,
.primary_content em {
  color: #657381;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  padding-left: 5px;
}

.primary_content h2 {
  font-size: 35px;
  line-height: 33px;
  margin: 0 0 5px;
  letter-spacing: 1px;
  color: #00ae0a;
}

.primary_content .title.current {
  display: block;
  font-size: 15px;
  margin-bottom: 60px;
  color: #657381;
}

.primary_content h3 {
  position: relative;
  margin-top: 38px;
  margin-bottom: 12px;
  margin-left: calc(-100vw);
  font-size: 18px;
  letter-spacing: 1px;
  color: #00ae0a;
  padding-left: calc(0vw + 5px);
  border-left: 100vw solid #262b30;
}

/* h5 styling shared by job titles + news titles */
.primary_content h5,
.primary_content .location,
.news-title {
  display: block;
  color: #9eaebe;
  font-size: 13px;
  letter-spacing: 1px;
  margin: 0;
  padding-left: 5px;
}

/* ---------------- shared list layout: positions + newsstream ---------------- */

.positions,
.newsstream {
  list-style: none;
  margin: 0;
  padding: 0;
}

.positions li,
.newsstream li {
  position: relative;
  margin-bottom: 20px;
}

.positions li em.title {
  display: block;
  margin: 4px 0;
}

/* date in left gutter (shared) */
.positions li .date,
.newsstream li .date {
  position: absolute;
  left: -210px;
  top: 0;
  width: 200px;
  color: #373e46;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: right;
  white-space: nowrap;
}
/* --- positions: title-first hierarchy --- */

.positions li {
  position: relative;
  margin-bottom: 22px; /* a touch more breathing room */
}

/* role/title becomes the primary line */
.positions .pos-title {
  /* reuse your primary h5 look, but ensure it sits like a headline */
  margin: 0;
  padding-left: 5px;
  color: #9eaebe;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: bold;
}

/* company becomes secondary metadata */
.positions .pos-meta {
  padding-left: 5px;
  margin-top: 4px;
}

.positions .pos-company {
  display: block;
  color: #657381; /* subdued like body text */
  font-size: 12px;
  letter-spacing: 1px;
}

/* bullets align with the content column rhythm */
.positions .exp-bullets {
  margin: 10px 0 0 0;
  padding-left: 18px; /* keep bullets modest */
}

.positions .exp-bullets li {
  margin: 0 0 6px 0;
  color: #657381;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
}

/* ---------------- news-specific ---------------- */

.news-title a {
  color: inherit;
  text-decoration: none;
}

.news-title a:hover,
.news-title a:focus-visible {
  color: #00ae0a;
  outline: none;
}

.news-summary {
  margin: 4px 0 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #657381;
  padding-left: 5px;
}

/* ---------------- secondary ---------------- */

.secondary {
  grid-area: secondary;
  background: #262b30;
}

.secondary_content {
  padding-top: 144px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 40px;
  color: #9eaebe;
  font-size: 11px;
}

.secondary_content h5 {
  color: #00ae0a;
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.secondary_content h6 {
  color: #9eaebe;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 23px;
  margin: 0;
}

.secondary_content .skills h6 {
  font-size: 13px;
  line-height: 23px;
}

.secondary_content p {
  color: #657381;
  line-height: 15px;
  margin: 0 0 15px;
  letter-spacing: 0.5px;
}

.secondary_content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.secondary_content .client_list {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 1px;
  color: #9eaebe;
}

.secondary_content .client_names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;

  color: #657381;
  line-height: 14px;
  margin-bottom: 10px;
}

.secondary_content .client_names li {
  font-size: 11px;
  letter-spacing: 0.6px;
}

/* ---------------- weather ---------------- */

.weather {
  margin-top: 10px;
}

.weather-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.weather-temp {
  font-size: 18px;
  letter-spacing: 1px;
  color: #657381;
}

.weather-cond {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #657381;
}

.weather-meta {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #4a545e;
}
