  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  html {
      overflow-x: hidden !important;
      overflow-y: scroll;
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      -moz-osx-font-smoothing: grayscale;
      -webkit-text-size-adjust: 100%;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
      text-wrap: pretty;
  }
  
:root {
    --lineHeight: 22.5px;
    --hairlineThickness: 1px;
    
    --bg: #FEFDF9;
    --fill: #BABABA;
    --text: #050505;
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
  }

  [data-theme="yellow"] { --bg: #FEFDF9; --fill: #FF7D0B; --text: #7C2410; }
  [data-theme="ochre"]  { --bg: #FEFDF9; --fill: #714c00; --text: #714c00; }
  [data-theme="red"]    { --bg: #FDFBFA; --fill: #F0665C; --text: #7C1B0E; }
  [data-theme="green"]  { --bg: #FDFDFD; --fill: #55B757; --text: #285040; }

  [data-lang="en"] [data-lang="es"],
  [data-lang="es"] [data-lang="en"] {
    display: none;
  }
  
  @font-face {
    font-family: 'Junicode';
    src: url('assets/font/Junicode.woff') format('woff2');
    font-style: normal;
    font-display: swap
  }

  @font-face {
      font-family: "Junicode";
      src: url("assets/font/Junicode-Italic.woff") format("woff");
      font-style: italic;
      font-display: swap
  }

  body {
    margin: 0 auto;
    padding: 0;
    font-family: 'Junicode';
    color: var(--text);
  }

  section.main {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.2s ease-out;
  }

  .layout {
    margin: 60px 0;
    padding: 120px 24px 80px 24px;
    height: fit-content;
    width: min(60%, 720px);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg);
    border-radius: 80px;
    gap: var(--space-2);
  }
  .top {
      margin: 0;
      padding: 0;
  }
  .middle-top {
    margin: 16px 0;
    padding: 12px;
    border-top: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    width: 80%;
  }

  .middle-bottom {    
      margin: 0;
      padding: 16px 0;
      width: 60%;
  }
.location {
    font-style: italic;
    margin-top: var(--space-3);
  }
  .bottom {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: clamp(1.5rem, 5vw, 4rem);
  }

  .link {
    font-size: clamp(0.875rem, 1.2vw, 1.05rem);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    color: var(--text);
    pointer-events: auto;
  }
  .lang-toggle {
    background: var(--bg);
    border: none;
    font-family: 'Junicode';
    font-size: 14px;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    margin: var(--space-3) 0;
    padding: 0;
  }
  h1 {
      font-style: italic;
      font-size: clamp(2.2rem, 5.5vw, 3.8rem);
      line-height: 1.15;
      letter-spacing: -0.04em;
      font-weight: 300;
      margin-bottom: var(--space-4);
    }
    
  h2 {
      font-style: italic;
      font-size: clamp(1rem, 2vw, 1.5rem);
      line-height: 1.4;
      font-weight: 300;
      letter-spacing: -0.04em;
      margin-bottom: var(--space-2);
    }
    
 h3 {
     font-style: italic;
     font-size: clamp(2rem, 5.5vw, 4.5rem);
     line-height: 1.2;
     font-weight: 300;
     letter-spacing: -0.04em;
 }
 
p {
    font-size: clamp(0.875rem, 1.2vw, 1.05rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    }
a {
    text-decoration: underline;
    color: var(--text);
} 
ul {
    text-align: right;
    padding: var(--space-3) 0;
}

li {
    padding: var(--space-1) 0;
    text-decoration: none;
    list-style: none;
}

@media (max-width: 640px) {
  .layout {
    width: calc(80% - 16px);
    margin: 48px 0;
    padding: 64px 8px 48px 8px;
    border-radius: 48px;
  }

  .middle-top {
    width: 60%;
  }

  .middle-bottom {
    width: 50%;
  }

  .bottom {
      margin-bottom: 32px;
  }
}