
/* Cores globais e apresentação base da página. */
:root {
  color-scheme: dark;
  --yellow: #eee923;
}

* {
  box-sizing: border-box;
}

/* Scroll suave quando permitido */
html {
  scrollbar-width: thin;
  scrollbar-color: #555 #181717;
}

html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

html::-webkit-scrollbar-track {
  background: #181717;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #181717;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href]:hover {
  color: var(--yellow);
}

/* Foco visível para navegar com o teclado. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}

/* O atalho para o conteúdo só aparece quando recebe foco. */
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 5;
  padding: 12px;
  background: #111;
}

.skip:focus {
  top: 12px;
}

/* Faixa amarela superior: assinatura e crédito. */
.strap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 5%;
  background: var(--yellow);
  color: #111;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

/* Cabeçalho: logótipo, navegação e ações. */
.header {
  min-height: 86px;
  padding: 15px 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #111;
}

/* Recorte visual do logótipo da imagem fornecida. */
.logo {
  display: block;
  flex: 0 0 100px;
  width: 100px;
  height: 54px;
  background: url('../img/the_cool_scarf_min.png') -60px -29px / 2048px 1152px no-repeat;
}

/* Menu horizontal em ecrãs maiores. */
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a,
.actions a {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Aspeto dos links desativados. */
a[aria-disabled="true"] {
  cursor: not-allowed;
  color: #bfbfbf;
}

/* Ações à direita do menu. */
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.create {
  border-bottom: 1px solid #666;
  padding: 10px 0;
}

.arrow {
  color: var(--yellow);
  margin-left: 20px;
}

.count {
  display: inline-grid;
  place-items: center;
  border: 1px solid #666;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-left: 7px;
}

/* Botão do menu móvel. */
.menu-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid #777;
  background: transparent;
  color: white;
  font: inherit;
  cursor: pointer;
}

/* Área principal ajustada ao espaço disponível. */
main {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #101010, #302d2c);
}

/* Fotografia à direita. */
.photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 45%;
  background: url('../img/the_cool_scarf_min.png') right bottom / auto 109% no-repeat;
  mask-image: linear-gradient(to right, transparent, black 24%);
}

/* Texto principal. */
.copy {
  width: 61%;
  padding: 80px 0 100px 5.5%;
}

h1 {
  margin: 0;
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(38px, 4.5vw, 92px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: .4px;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: #f3e500;
}

.rule {
  width: 72px;
  height: 3px;
  background: var(--yellow);
  margin: 65px 0 24px;
}

p {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 30px);
  line-height: 1.5;
}

/* Ecrãs largos. */
@media (min-width: 1800px) {
  .header {
    min-height: 72px;
  }
}

/* Tablets. */
@media (max-width: 1000px) {
  .header {
    flex-wrap: wrap;
    gap: 15px;
  }

  nav {
    gap: 14px;
  }

  .actions {
    display: none;
  }

  .copy {
    width: 70%;
  }
}

/* Telemóveis. */
@media (max-width: 650px) {
  .strap {
    font-size: 7px;
    letter-spacing: .7px;
    padding: 7px 4%;
  }

  .header {
    padding: 12px 5%;
    min-height: 78px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  nav a {
    padding: 10px 0;
  }

  nav[data-collapsed="true"] {
    display: none;
  }

  main {
    align-items: flex-start;
    padding-bottom: 310px;
  }

  .copy {
    width: 100%;
    padding: 48px 6% 25px;
  }

  h1 {
    font-size: clamp(33px, 8.5vw, 55px);
  }

  .rule {
    margin: 28px 0 20px;
    width: 48px;
  }

  p {
    font-size: 17px;
  }

  .photo {
    inset: auto 0 0;
    height: 320px;
    background-size: auto 155%;
    mask-image: linear-gradient(to bottom, transparent, black 28%);
  }
}

/* Movimento apenas quando permitido. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  button {
    transition: color .15s;
  }
}
