/* Lise Honoré — lisehonore.dk */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/sourcesans3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/sourcesans3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f7f4ef;
  --paper-deep: #efeae3;
  --ink: #1a1714;
  --ink-soft: #4f4a44;
  --bronze: #8c6a3b;
  --bronze-hover: #6f522c;
  --line: #d8d0c4;
  --header-h: 4.5rem;
  --content: 68rem;
  --gallery: 74rem;
  --gap: 0.7rem;
  --shadow: 0 1px 2px rgba(26, 23, 20, 0.06), 0 8px 24px rgba(26, 23, 20, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bronze-hover);
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.header-inner {
  width: min(100% - 2.5rem, var(--gallery));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: 8.75rem;
  height: auto;
}

.site-nav ul {
  display: flex;
  gap: 0.2rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
}

/* Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  width: min(100% - 2.5rem, 42rem);
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  line-height: 0;
}

.hero h1 img {
  width: min(18rem, 80vw);
  height: auto;
}

.hero-role {
  margin: 1.15rem 0 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.hero-work {
  margin: 2.75rem auto 0;
  width: min(100%, 28rem);
}

.hero-work img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

/* Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 3.5rem 0 4.5rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section-inner {
  width: min(100% - 2.5rem, var(--content));
  margin: 0 auto;
}

.section-gallery .section-inner {
  width: min(100% - 2rem, var(--gallery));
}

.section-title {
  margin: 0 0 2rem;
  font-family: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 2.4vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

/* Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.gallery::after {
  content: "";
  flex-grow: 999;
  height: 0;
}

.gallery a {
  position: relative;
  display: block;
  flex-grow: calc(var(--w) / var(--h) * 1000);
  flex-basis: calc(var(--w) / var(--h) * 16rem);
  overflow: hidden;
  background: var(--paper-deep);
  line-height: 0;
  text-decoration: none;
}

.gallery a:focus-visible {
  outline-offset: 2px;
  z-index: 1;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .gallery img {
    transition: none;
  }

  .gallery a:hover img,
  .gallery a:focus-visible img {
    transform: none;
  }
}

/* CV
   -------------------------------------------------------------------------- */

.section-cv {
  background: var(--paper-deep);
}

.cv-grid {
  display: grid;
  gap: 2.75rem 4rem;
}

@media (min-width: 800px) {
  .cv-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.cv-side {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.cv-block h3 {
  margin: 0 0 0.85rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.cv-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-block li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.cv-block li:last-child {
  border-bottom: 0;
}

/* Kontakt
   -------------------------------------------------------------------------- */

.kontakt-top {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 720px) {
  .kontakt-top {
    grid-template-columns: 11rem 1fr;
    gap: 3rem;
  }
}

.portrait {
  width: 11rem;
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.vcard {
  margin: 0;
}

.vcard p {
  margin: 0 0 0.85rem;
}

.vcard .fn-line {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.15rem;
}

.vcard .fn-line .role {
  display: block;
  margin-top: 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.vcard .adr a {
  color: inherit;
  text-decoration: none;
}

.vcard .adr a:hover,
.vcard .adr a:focus-visible {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.statement {
  margin: 2.5rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.7;
}

.keramik {
  margin: 3rem auto 0;
  width: min(100%, 34rem);
  display: block;
  box-shadow: var(--shadow);
}

/* Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.92);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  display: block;
  max-width: 92vw;
  max-height: calc(88vh - 2.5rem);
  width: auto;
  height: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-counter {
  margin-top: 0.85rem;
  color: rgba(247, 244, 239, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  padding: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  opacity: 1;
}

.lightbox-btn svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.4rem;
}

.lightbox-next {
  right: 0.4rem;
}

.lightbox-btn:disabled {
  visibility: hidden;
}

@media (min-width: 800px) {
  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

/* Footer spacing */
.site-end {
  height: 3rem;
}

@media (max-width: 639px) {
  :root {
    --header-h: 4rem;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .section-gallery .section-inner {
    width: min(100% - 1.5rem, var(--gallery));
  }

  .logo img {
    width: 7.25rem;
  }

  .site-nav ul {
    gap: 0.15rem 1rem;
  }

  .site-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .hero {
    padding: 2.25rem 0 1.5rem;
  }

  .hero-work {
    margin-top: 2rem;
  }

  .section {
    padding: 2.75rem 0 3.25rem;
  }

  .gallery a {
    flex-basis: calc(var(--w) / var(--h) * 9.5rem);
  }

  .statement {
    font-size: 1.05rem;
  }
}
