/*
Theme Name: cosper-me
Author: Jason Cosper
Description: A personal site theme inspired by Swiss Design. Bold typography, editorial chrome, and structured grids.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: cosper-me
Tags: block-theme, full-site-editing, portfolio, personal

cosper-me — Swiss Design theme
*/

/* ===========================
   FONTS — Atkinson Hyperlegible Next & Mono (variable, self-hosted)
   =========================== */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-mono-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('./assets/fonts/atkinson-hyperlegible-mono-latin-ext-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===========================
   SHARED PRIMITIVES
   =========================== */

.red-dot {
  color: var(--wp--preset--color--red);
}

.blue-dot {
  color: var(--wp--preset--color--blue);
}

/* Top chrome bar (CV template header text) */
.top-chrome {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.top-chrome .wp-block-group {
  flex-grow: 1;
}

/* Hero image container (used as portrait wrapper on the index page) */
.hero-image-container {
  position: relative;
  overflow: hidden;
  background-color: var(--wp--preset--color--blue);
  min-height: 420px;
}

.hero-image-container .wp-block-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero-image-container .wp-block-image figure,
.hero-image-container figure.wp-block-image {
  margin: 0;
  height: 100%;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  mix-blend-mode: screen;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Meta row */
.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 3px solid var(--wp--preset--color--ink);
  border-bottom: 1px solid var(--wp--preset--color--ink);
  padding: 0.75rem 0;
}

.meta-row p {
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 !important;
}

/* Section headers */
.sec-head {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--wp--preset--color--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sec-head p {
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 !important;
}

/* Bio text */
.bio-text {
  font-size: 1.35rem !important;
  line-height: 1.45 !important;
  max-width: 95%;
}

/* Elsewhere list */
.elsewhere-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.elsewhere-item {
  display: grid;
  grid-template-columns: 90px 1fr 30px;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dotted rgba(10, 10, 10, 0.2);
}

.elsewhere-item:first-child {
  border-top: 1px dotted rgba(10, 10, 10, 0.2);
}

.elsewhere-label {
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.elsewhere-link {
  font-size: 1.15rem !important;
}

.elsewhere-link a {
  color: var(--wp--preset--color--blue) !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: color 0.2s ease;
}

.elsewhere-link a:hover {
  color: var(--wp--preset--color--red) !important;
}

.elsewhere-num {
  font-size: 10px !important;
  color: var(--wp--preset--color--red) !important;
  text-align: right;
}

/* Footer / header chrome */
.cm-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(10, 10, 10, 0.15);
  padding-top: 1rem;
}

.cm-footer p {
  font-size: 9px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

.cm-footer a {
  color: var(--wp--preset--color--blue) !important;
  text-decoration: none !important;
}

.cm-footer a:hover {
  color: var(--wp--preset--color--red) !important;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ===========================
   POSTER LAYOUT (index.html)
   =========================== */
.hero-name-poster {
  font-size: clamp(60px, 9.5vw, 140px) !important;
  line-height: 0.85 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 0 !important;
}

.poster-left-col {
  background-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--40);
}

.poster-left-col .sec-head {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.poster-left-col .bio-text {
  color: var(--wp--preset--color--white);
}

.poster-left-col .bio-text strong {
  color: var(--wp--preset--color--red);
}

.poster-left-col .elsewhere-item {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.poster-left-col .elsewhere-item:first-child {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.poster-left-col .elsewhere-label {
  color: var(--wp--preset--color--white);
  opacity: 1;
}

.poster-left-col .elsewhere-link a {
  color: var(--wp--preset--color--blue-tint) !important;
}

.poster-left-col .elsewhere-link a:hover {
  color: var(--wp--preset--color--red) !important;
}

.current-status p {
  white-space: nowrap;
}

.poster-portrait {
  min-height: 380px;
  max-width: 100%;
}

/* Pinned items */
.pinned-list .pinned-item {
  border-bottom: 1px solid rgba(10, 10, 10, 0.15);
  padding-bottom: var(--wp--preset--spacing--20);
  margin-bottom: var(--wp--preset--spacing--20);
}

.pinned-item a {
  text-decoration: none;
}

/* ===========================
   CV LAYOUT (cv.html)
   =========================== */
.cv-hero-title {
  font-size: clamp(48px, 7vw, 96px) !important;
  font-weight: 800 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 0 !important;
}

.cv-section-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: baseline;
  border-bottom: 2px solid var(--wp--preset--color--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0;
  gap: 1rem;
}

.cv-section-head p {
  margin: 0 !important;
}

.cv-entry {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.15);
  gap: 2rem;
}

.cv-entry > * {
  margin-block-start: 0 !important;
}

.cv-entry p {
  margin: 0 !important;
}

.cv-entry .cv-dates {
  font-variant-numeric: tabular-nums;
}

.cv-entry .cv-num {
  text-align: right;
}

.cv-entry-details .cv-company {
  font-size: 1.25rem !important;
  font-weight: 700;
}

.cv-entry-details .cv-role {
  opacity: 0.6;
  margin-top: 0.15rem !important;
}

.cv-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cv-tools-grid > * {
  margin-block-start: 0 !important;
}

.cv-tool-cell {
  border: 1px solid rgba(10, 10, 10, 0.15);
  padding: 1rem;
  margin-right: -1px;
  margin-bottom: -1px;
}

.cv-tool-cell p {
  margin: 0 !important;
}

.cv-tool-cell .cv-tool-name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cv-tool-cell .cv-tool-note {
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cv-footer-links a {
  text-decoration: none !important;
  font-weight: 700;
}

.cv-footer-links a:first-child,
.cv-footer-links a.cv-hire-link {
  color: var(--wp--preset--color--blue) !important;
}

.cv-footer-links a:first-child:hover,
.cv-footer-links a.cv-hire-link:hover {
  color: var(--wp--preset--color--red) !important;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-image-container {
    min-height: 300px;
  }

  .hero-image-container img {
    position: relative;
  }

  .cv-entry {
    grid-template-columns: 1fr 30px;
    gap: 1rem;
  }

  .cv-entry .cv-dates {
    grid-column: 1 / -1;
    margin-bottom: -0.5rem;
  }

  .cv-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 781px) {
  .poster-right-col .sec-head:first-child {
    margin-top: 2rem !important;
  }
}

@media (max-width: 600px) {
  .elsewhere-item {
    grid-template-columns: 70px 1fr 25px;
  }

  .cv-tools-grid {
    grid-template-columns: 1fr;
  }

  .cv-footer-links {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
}
