:root {
  --fic-red: #ff585d;
  --fic-yellow: #f2c75c;
  --fic-blue: #3eb1c8;
  --ink: #181818;
  --paper: #ffffff;
  --soft: #f3f2ef;
  --line: #d8d6d1;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1.25rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-220%);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.fic-stripe {
  width: 100%;
  height: 12px;
  display: grid;
  grid-template-columns: 46fr 31fr 23fr;
}

.fic-stripe span:nth-child(1) {
  background: var(--fic-blue);
}

.fic-stripe span:nth-child(2) {
  background: var(--fic-red);
}

.fic-stripe span:nth-child(3) {
  background: var(--fic-yellow);
}

.site-header {
  width: min(1240px, calc(100% - 2.5rem));
  min-height: 132px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.byblos-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 106px;
  height: 112px;
  flex: 0 0 auto;
  text-decoration: none;
}

.byblos-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--fic-red);
  -webkit-mask-image: url("./assets/proyecto-byblos.png");
  mask-image: url("./assets/proyecto-byblos.png");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.byblos-mark img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.header-status {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.15rem;
  background: var(--fic-yellow);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

main,
footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  min-height: 550px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 5vh, 3rem) 0 clamp(3rem, 7vh, 4.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 0.35rem;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 45px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--fic-red);
}

.brand-title {
  width: min(100%, 700px);
  margin: 0 0 1.7rem;
  line-height: 1;
}

.brand-title img,
.brand-title picture {
  display: block;
  width: 100%;
  height: auto;
}

.intro {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.08rem, 1.65vw, 1.3rem);
  line-height: 1.5;
}

.hero-geometry {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}

.hero-geometry .geo {
  position: absolute;
  display: block;
}

.hero-geometry .leaf {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  -webkit-mask-image: url("./assets/hoja-de-cedro-symbol.svg");
  mask-image: url("./assets/hoja-de-cedro-symbol.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.geo-blue {
  z-index: 1;
  width: 62%;
  height: 80%;
  top: 4%;
  right: 2%;
  background: var(--fic-blue);
  transform: rotate(1deg);
}

.geo-yellow {
  z-index: 2;
  width: 72%;
  height: 20%;
  top: 15%;
  left: 0;
  background: var(--fic-yellow);
  transform: rotate(-2deg);
}

.geo-red {
  z-index: 3;
  width: 56%;
  height: 50%;
  left: 8%;
  bottom: 0;
  background: var(--fic-red);
  transform: rotate(3deg);
}

.leaf-coral {
  z-index: 4;
  width: 65%;
  top: 1%;
  left: -2%;
  background: var(--fic-red);
  transform: rotate(-17deg);
}

.leaf-paper {
  z-index: 5;
  width: 68%;
  top: 9%;
  right: -5%;
  background: var(--paper);
  transform: rotate(9deg);
}

.leaf-ink {
  z-index: 6;
  width: 60%;
  left: 17%;
  bottom: -3%;
  background: var(--ink);
  transform: rotate(-5deg);
}

.leaf-yellow {
  z-index: 7;
  width: 43%;
  right: -1%;
  bottom: 1%;
  background: var(--fic-yellow);
  transform: rotate(16deg);
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--fic-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.project {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 3rem 5rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  color: var(--fic-red);
}

.project-copy h2,
.issue-details h2,
.development h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.project-copy > p {
  max-width: 780px;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.project-actions {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  border-top: 1px solid var(--ink);
}

.project-actions article {
  padding: 1.4rem 1.5rem 0 0;
}

.project-actions article + article {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.project-actions span {
  display: inline-block;
  margin-bottom: 2.7rem;
  color: var(--fic-red);
  font-size: 0.8rem;
  font-weight: 900;
}

.project-actions article:nth-child(2) span {
  color: var(--fic-blue);
}

.project-actions article:nth-child(3) span {
  color: #ad7d00;
}

.project-actions h3 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.project-actions p {
  margin-bottom: 0;
}

.issue {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

.issue-cover {
  margin: 0;
}

.issue-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  box-shadow: 18px 18px 0 var(--fic-blue);
}

.issue-cover figcaption {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.issue-details {
  align-self: center;
}

.issue-details dl {
  margin: 2rem 0;
  border-top: 1px solid var(--ink);
}

.issue-details dl div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

dt {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.issue-note {
  padding-left: 1rem;
  border-left: 5px solid var(--fic-red);
}

.development {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.development h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.development ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.development li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

footer {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 3rem;
  align-items: center;
  padding-block: 3rem;
  border-top: 14px solid var(--fic-red);
}

.footer-lead {
  display: flex;
  flex-direction: column;
}

.footer-lead span,
.footer-status {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-lead strong {
  color: var(--fic-red);
  font-size: 1.5rem;
}

footer p {
  margin-bottom: 0;
}

.footer-status {
  justify-self: end;
  color: var(--fic-blue);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-geometry {
    width: min(100%, 600px);
    min-height: 470px;
    margin-inline: auto;
  }

  .project,
  .issue,
  .development,
  footer {
    grid-template-columns: 1fr;
  }

  .project {
    gap: 1rem;
  }

  .project-actions {
    grid-column: 1;
  }

  .issue {
    gap: 4rem;
  }

  .development {
    align-items: start;
  }

  footer {
    gap: 1.25rem;
  }

  .footer-status {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-copy-rise 650ms ease-out both;
  }

  .hero-geometry {
    animation: hero-geometry-reveal 780ms cubic-bezier(0.18, 0.8, 0.25, 1) both;
  }
}

@keyframes hero-copy-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes hero-geometry-reveal {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
}

@media (max-width: 560px) {
  .fic-stripe {
    height: 9px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 2rem, var(--max));
  }

  .site-header {
    min-height: 104px;
  }

  .byblos-mark {
    width: 78px;
    height: 88px;
  }

  .header-status {
    padding: 0.72rem 0.9rem;
    font-size: 0.68rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .brand-title {
    width: min(78vw, 300px);
  }

  .hero-geometry {
    min-height: 350px;
  }

  .project-actions {
    grid-template-columns: 1fr;
  }

  .project-actions article {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
  }

  .project-actions article + article {
    padding-left: 0;
    border-left: 0;
  }

  .project-actions span {
    margin-bottom: 1rem;
  }

  .issue-cover img {
    box-shadow: 9px 9px 0 var(--fic-blue);
  }

  .development {
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
