/* :root is where you'll make most of the changes */
/* Control/customize things like fonts, font sizes, colors,... */
/* Try couleur.io to replace colors with a different palette */

:root {
  /* --font-sans: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
    helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif; */

  --font-serif: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman,
    Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol;

  /* spacing */
  --spacer: 0.5rem;

  /* Base font size set to 22px.
  Default value = 16px, so 16 * 1.375 = 22px
  This calculator can help: https://borderleft.com/toolbox/rem/ */
  --base-font-size: 1.375rem;

  /* colors */
  --base-color: 0 0% 0%;
  --bg: white;
  --text-color: black;
}

body {
  font-family: var(--font-serif);
  font-size: var(--base-font-size);

  background-color: var(--bg);
  background-image: url(images/nnnoise.svg);
  color: var(--text-color);
}

main {
  scroll-snap-type: y proximity;
  height: 100vh;
  overflow-y: scroll;
}

section {
  height: 100vh;
  overflow: hidden;
  margin: 0;
  position: relative;

  scroll-snap-align: end;
}

section.photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
section.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
}

h1,
h2 {
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  line-height: 0.5;
}

h1 {
  font-size: clamp(3ch, 12vw + 1rem, 18ch);
  transform: translateY(-25%);

  mask: url(images/nnnoise-3.svg);
  mask-clip: no-clip;
  mask-mode: luminance;
}

a {
  text-decoration: underline;
  text-decoration-color: hsla(var(--base-color) / 25%);
  text-decoration-thickness: calc(var(--spacer) / 2.5);

  transition: text-decoration-color 0.2s;
}
a:hover {
  text-decoration: currentColor solid underline;
  text-decoration-color: hsla(var(--base-color) / 75%);
  text-decoration-thickness: calc(var(--spacer) / 2.5);
}

.section-title {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  -webkit-text-orientation: mixed;
  text-orientation: mixed;

  position: absolute;
}

h2 {
  font-size: calc(var(--base-font-size) * 2.5);
}

h3 {
  font-size: calc(var(--base-font-size) * 1.5);
}

.line {
  flex-grow: 1;
  margin: calc(var(--spacer) * 3) auto 0;
  width: 8px;
  background: var(--text-color);
}

.arrow-tip {
  margin-top: calc(var(--spacer) * -6);
}

.photo-grid {
  display: grid;
  grid-template-rows: minmax(2rem, 1fr) minmax(2rem, 1fr) minmax(2rem, 1fr);
  grid-template-columns: 1fr;
  grid-template-areas:
    'a'
    'b'
    'c';

  gap: calc(var(--spacer) * 1.5);
  max-width: 65vw;
  max-height: 75vh;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .photo-grid {
    grid-template-rows: minmax(2rem, 1fr) minmax(2rem, 1fr);
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      'a b b'
      'a c c';

    gap: calc(var(--spacer) * 1.5);
  }
}

.photo-grid img {
  object-fit: cover;

  width: 100%;
  height: 100%;
}

.photo-grid picture:nth-of-type(1) {
  grid-area: a;
}
.photo-grid picture:nth-of-type(2) {
  grid-area: b;
}
.photo-grid picture:nth-of-type(3) {
  grid-area: c;
}

.social-links a {
  transition: transform 0.2s;
}

.social-links a:hover {
  transition: transform 0.4s;
  transform: translateY(-2px);
}

.bottom-arrow {
  bottom: calc(var(--spacer) * 3);
  right: calc(var(--spacer) * 3);
  transform: rotate(180deg);
}

@media (max-width: 600px) {
  .me {
    width: 150px;
    height: 150px;
  }
  footer {
    margin-bottom: calc(var(--spacer) * 4);
  }
}
