/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
:root {
  --ink: #171918;
  --gold: #e9b94c;
  --paper: #faf9f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
  max-width: 1440px;
  margin: auto;
  padding: 28px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9d9d4;
}

.brand {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.brand span {
  color: #af791a;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
}

.edition {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  min-height: 650px;
  max-width: 1440px;
  margin: auto;
}

.intro {
  padding: 75px 11% 65px 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 26px;
}

.eyebrow:before {
  content: '';
  display: inline-block;
  width: 27px;
  height: 3px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(50px, 5.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -3px;
  margin: 0 0 28px;
}

h1 em {
  font-weight: 400;
  color: #947027;
}

.intro p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 370px;
  margin: 0 0 33px;
  color: #595e59;
}

.button {
  display: inline-flex;
  background: var(--ink);
  color: white;
  padding: 17px 24px;
  font-size: 14px;
}

.button:hover {
  background: #554628;
}

.hero-image {
  position: relative;
  margin: 28px 28px 28px 0;
  min-height: 580px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 30px 26px;
  color: white;
  background: linear-gradient(transparent, #0009);
  font-size: 14px;
  line-height: 1.6;
}

.caption b {
  font-family: Georgia, serif;
  font-size: 25px;
  display: block;
  font-weight: 400;
}

/* ==========================================================================
   4. INFO STRIP
   ========================================================================== */
.strip {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 22px 6%;
  display: flex;
  gap: 40px;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.strip span:nth-child(2) {
  color: #a77b29;
}

/* ==========================================================================
   5. SECTIONS, TABS & FILTERS
   ========================================================================== */
.section {
  max-width: 1280px;
  padding: 80px 5%;
  margin: auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

h2 {
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 12px 0;
}

.section-head p {
  max-width: 350px;
  line-height: 1.65;
  color: #686b65;
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}

/*.tabs button {
  cursor: pointer;
  border: 1px solid #cfcfc7;
  padding: 10px 18px;
  background: none;
  color: #171918 !important;
  font: 14px Arial;
}*/
.tabs button {
  cursor: pointer;
  border: 1px solid #cfcfc7;
  padding: 10px 18px;
  background: none;
  font: 14px Arial, sans-serif;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ==========================================================================
   6. CARDS GRID
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card:nth-child(2) img {
  object-position: 50% 85%;
}

.category {
  display: block;
  margin-top: 23px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #886622;
}

h3 {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  margin: 14px 0 12px;
}

.card p {
  font-size: 16px;
  line-height: 1.7;
  color: #666b65;
  max-width: 440px;
}

/* Koppling till ditt JavaScript för att gömma kort */
.card[hidden] {
  display: none;
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
.about {
  background: var(--ink);
  color: #fff;
  padding: 75px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.about h2 {
  font-size: 45px;
}

.about p {
  color: #c5c7c1;
  line-height: 1.85;
  font-size: 18px;
}

.about .eyebrow {
  color: var(--gold);
}

.topics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.topics span {
  border: 1px solid #555;
  padding: 10px 14px;
  font-size: 14px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
  padding: 35px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #73766e;
}

.foot-brand {
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
}

/* ==========================================================================
   9. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 760px) {
  header {
    padding: 22px 6%;
  }

  .edition {
    display: none;
  }

  nav {
    gap: 15px;
    font-size: 13px;
  }

  .brand {
    font-size: 25px;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .intro {
    padding: 55px 7% 40px;
  }

  h1 {
    font-size: 58px;
    letter-spacing: -2px;
  }

  .hero-image {
    margin: 0 6% 25px;
    min-height: 420px;
  }

  .strip {
    gap: 18px;
    font-size: 10px;
    letter-spacing: 1px;
    flex-wrap: wrap;
  }

  .section {
    padding: 55px 6%;
  }

  .section-head {
    display: block;
  }

  h2 {
    font-size: 36px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 280px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 55px 7%;
  }

  .about h2 {
    font-size: 38px;
  }

  footer {
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   10. SMALL MOBILE SCREENS
   ========================================================================== */
@media (max-width: 380px) {

  header {
    padding: 18px 5%;
  }

  .brand {
    font-size: 23px;
    letter-spacing: -1px;
  }

  nav {
    gap: 10px;
    font-size: 12px;
  }

  .intro {
    padding: 40px 6% 30px;
  }

  h1 {
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1.5px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
  }

  .hero-image {
    min-height: 300px;
  }

  .strip {
    gap: 12px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .section {
    padding: 40px 6%;
  }

  h2 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  .about h2 {
    font-size: 32px;
  }

  .tabs {
    gap: 6px;
  }

  .tabs button {
    padding: 9px 10px;
    font-size: 13px;
  }

  .card img {
    height: 220px;
  }

  h3 {
    font-size: 25px;
  }

  footer {
    padding: 28px 6%;
  }
}

/* ==========================================================================
   11. LANGUAGE SWITCH
   ========================================================================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
}

.language-switch button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #73766e;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .header-right {
    gap: 10px;
  }

  .edition {
    display: none;
  }

  .language-switch {
    gap: 6px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  header {
    gap: 10px;
  }

  .header-right {
    flex-shrink: 0;
  }
}

/* Prestanda/Tillgänglighet: Stäng av mjuk animation om besökaren valt det i Windows */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
