/* styles/webdesign.css */

/*––––– Variables –––––*/
:root {
  --bg: #111;
  --fg: #ddd;
  --highlight: #e54e3b;
  --font-sans: 'Montserrat', sans-serif;
}

/*––––– Reset –––––*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*––––– Base –––––*/
body.dark-theme {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/*––––– Skip Link –––––*/
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--highlight);
  color: #fff;
  padding: 0.5rem;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 1rem;
}

/*––––– Header/Nav –––––*/
.nav--primary {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 10;
}
.nav--primary .logo {
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

/*––––– Hero –––––*/
.portfolio-hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.portfolio-hero .eyebrow {
  font-size: 0.875rem;
  color: var(--fg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.portfolio-hero .hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}
.portfolio-hero .accent-dot {
  position: absolute;
  top: 20%; right: 25%;
  width: 1rem; height: 1rem;
  background: var(--highlight);
  border-radius: 50%;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1rem); }
}

/*––––– Side‐bars –––––*/
.side-bar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.side-bar--left { left: 1rem; }
.side-bar--right { right: 0; }

/*––––– Social Links –––––*/
.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.social-list a {
  color: var(--fg);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
}
.social-list a:hover {
  color: var(--highlight);
}

/*––––– Nav tabs –––––*/
.external-tab {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--highlight);
  color: #fff;
  padding: 0.75rem 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  margin: 3rem 0;
  transition: transform 0.3s;
}
.external-tab:hover {
  transform: translateX(-0.5rem);
}

/*––––– Footer –––––*/
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  color: #777;
}

/*––––– Mobile adjustments –––––*/
@media (max-width: 600px) {
  .portfolio-hero {
    height: 40vh;
    padding: 0 1rem;
  }
  .portfolio-hero .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .accent-dot { display: none; }
  .side-bar--left { left: 0.5rem; }
  .side-bar--right { right: 0.5rem; }
}

/* styles/article.css */

/*––––– Article Container –––––*/
.article-container {
  max-width: 800px;
  width: 90%;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-family: var(--font-sans);
}

/* Header styling */
.article-header {
  margin-bottom: 2rem;
  text-align: center;
}
.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.article-meta {
  font-size: 0.875rem;
  color: #777;
}

/* Paragraphs */
.article-container p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Subheadings */
.article-container h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 2rem 0 1rem;
  color: var(--highlight);
}

/* Figures & Images */
.article-container figure {
  margin: 2rem 0;
  text-align: center;
}
.article-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0.5rem;
}
.article-container figcaption {
  font-size: 0.875rem;
  color: #aaa;
  margin-top: 0.5rem;
}

/* Article Footer */
.article-footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: #777;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .article-container {
    margin: 2rem auto;
    padding: 1rem;
  }
  .article-header h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }
}
