/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
     ========================================================================== */

/**
   * Remove the margin in all browsers.
   */

body {
  margin: 0;
}

/**
   * Render the `main` element consistently in IE.
   */

main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */

/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
     ========================================================================== */

/**
   * Remove the gray background on active links in IE 10.
   */

a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */

b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
   * Add the correct font size in all browsers.
   */

small {
  font-size: 80%;
}

/**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
     ========================================================================== */

/**
   * Remove the border on images inside links in IE 10.
   */

img {
  border-style: none;
}

/* Forms
     ========================================================================== */

/**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
   * Correct the inability to style clickable types in iOS and Safari.
   */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
   * Remove the inner border and padding in Firefox.
   */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */

legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */

progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */

textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */

[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
     ========================================================================== */

/*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */

details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */

summary {
  display: list-item;
}

/* Misc
     ========================================================================== */

/**
   * Add the correct display in IE 10+.
   */

template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */

[hidden] {
  display: none;
}

/* css reset from:https://andy-bell.co.uk/a-more-modern-css-reset/ */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: wrap;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* styles for OnePage */

/* fonts */

@font-face {
  font-family: "Sunflower";
  src: url(../fonts/Sunflower.otf) format("opentype");
  font-display: swap;
}

:root {
  /** body font size */
  --text-base-size: 1rem;
  --body-line-height: 1.3;
  --heading-line-height: 1.1;

  /** type scale */
  --step--2: clamp(0.78rem, calc(0.77rem + 0.03vw), 0.80rem);
  --step--1: clamp(0.94rem, calc(0.92rem + 0.11vw), 1.00rem);
  --step-0: clamp(1.13rem, calc(1.08rem + 0.22vw), 1.25rem);
  --step-1: clamp(1.25rem, calc(1.28rem + 0.27vw), 1.56rem);
  --step-2: clamp(1.62rem, calc(1.50rem + 0.58vw), 1.95rem);
  --step-3: clamp(1.94rem, calc(1.77rem + 0.87vw), 2.44rem);
  --step-4: clamp(2.23rem, calc(2.08rem + 1.25vw), 3.05rem);
  --step-5: clamp(2.80rem, calc(2.45rem + 1.77vw), 3.82rem);

  /** controling the spacing scale */
  --space-unit: 1rem;
  --space-xxxxs: calc(0.125 * var(--space-unit));
  --space-xxxs: calc(0.25 * var(--space-unit));
  --space-xxs: calc(0.275 * var(--space-unit));
  --space-xs: calc(0.5 * var(--space-unit));
  --space-sm: calc(0.75 * var(--space-unit));
  --space-md: calc(1.25 * var(--space-unit));
  --space-lg: calc(2 * var(--space-unit));
  --space-xl: calc(3.25 * var(--space-unit));
  --space-xxl: calc(5.25 * var(--space-unit));
  --space-xxxl: calc(8.5 * var(--space-unit));
  --space-xxxxl: calc(13.75 * var(--space-unit));
  --component-padding: var(--space-md);

  /** Line-height */
  --component-body-line-height: calc(var(--body-line-height) * var(--line-height-multiplier, 1));
  --component-heading-line-height: calc(var(--heading-line-height) * var(--line-height-multiplier, 1));
  --line-height-multiplier: 1;
  --text-vspace-multiplier: 1;

  /** Font weight */

  --font-weight-1: 100;
  --font-weight-2: 200;
  --font-weight-3: 300;
  --font-weight-4: 400;
  --font-weight-5: 500;
  --font-weight-6: 600;
  --font-weight-7: 700;
  --font-weight-8: 800;
  --font-weight-9: 900;

  /** Font stack */

  --regular: "Sunflower";

  /** Color setup, */

  --color-primary: rgba(8, 1, 21);
  --color-secondary: #f8f5eb;

  /* feedback colors */

  --color-warning-darker: hsl(46, 100%, 41%);
  --color-warning-dark: hsl(46, 100%, 51%);
  --color-warning: hsl(46, 100%, 61%);
  --color-warning-light: hsl(46, 100%, 71%);
  --color-warning-lighter: hsl(46, 100%, 81%);

  --color-success-darker: hsl(94, 48%, 36%);
  --color-success-dark: hsl(94, 48%, 46%);
  --color-success: hsl(94, 48%, 56%);
  --color-success-light: hsl(94, 48%, 66%);
  --color-success-lighter: hsl(94, 48%, 76%);

  --color-error-darker: hsl(349, 75%, 31%);
  --color-error-dark: hsl(349, 75%, 41%);
  --color-error: hsl(349, 75%, 51%);
  --color-error-light: hsl(349, 75%, 61%);
  --color-error-lighter: hsl(349, 75%, 71%);

}

/* scrollbar */
::-webkit-scrollbar {
  width: 1rem;
}

::-webkit-scrollbar-track {
  background: var(--color-primary); 
  border-inline-start: 1px solid var(--color-secondary);
}
 
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: whitesmoke; 
  border: 1px solid var(--color-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-primary)
}

main {
  max-width: 100dvw;
  overflow: hidden;
  margin-block-end: var(--space-xxxl);
}

h1 {
  font-family: var(--regular);
  font-size: var(--step-5);
  color: var(--color-secondary);
  transition-duration: 2s;
}

h1:hover {
  transform: scale(2);
  -webkit-transform: scale(2);
  -moz-transform: scale(2);
  -ms-transform: scale(2);
  -o-transform: scale(2);
}

h2 {
  font-family: var(--regular);
  font-size: var(--step-3);
  color: var(--color-secondary);
}

h3 {
  font-family: var(--regular);
  font-size: var(--step-2);
  color: var(--color-primary);
  text-wrap: wrap;
}

p {
  font-family: 'Roboto Mono', monospace;
  font-size: var(--step-0);
  color: var(--color-secondary);
  line-height: var(--body-line-height);
  text-wrap: wrap;
}

a {
  font-family: var(--regular);
  font-size: var(--step-1);
  text-decoration: none;
  scroll-behavior: smooth;
}

/* menu */

nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.mobile-open p {
  padding: var(--space-md);
  font-family: var(--regular);
  font-size: var(--step-2);
  color: var(--color-secondary);
  text-decoration-line: underline;
  -moz-text-decoration-line: underline;
}

.show {
  display: flex !important;
}

.menu-wrapper {
  position: absolute;
  top: 4rem;
  width: 100%;
  z-index: 100;
  gap: var(--space-md);
  display: none;
  flex-direction: column;
}

.menu {
  gap: var(--space-md);
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: var(--color-primary);
}

.menu > li {
  margin-inline: var(--space-md);
  font-family: var(--regular);
  font-size: var(--step-2);
  color: var(--color-secondary);
  list-style: none;
}

.menu > li > a {
  color: var(--color-secondary);
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-secondary);
}

.menu > li > a:hover {
  color: var(--color-secondary);
}


@media screen and (min-width: 800px) {
  .mobile-open {
    display: none;
  }

  .menu-wrapper {
    display: flex;
    flex-direction: column-reverse;
    top: 0;
    position: relative;
    align-items: center;
  }

  .menu {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0;
    position: relative;
    padding: 0;
    width: 80vw;
    border-bottom: 1px solid var(--color-secondary);
  }

  .menu > li {
    border-bottom: none;
    margin: 0;
    list-style: none;
    display: flex;
    flex: 1;
    height: 100px;
  }

  .menu li:hover .menu li {
    background-color: var(--color-secondary);
  }

  .menu li:hover a {
    color: var(--color-primary);
    background-color: var(--color-secondary);
  }

  .menu > li > a {
    color: var(--color-secondary);
    border-bottom: none;
    justify-content: center;
    align-items: center;
  }
}

.title-block,
.text-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-block,
.text-block,
.img-block {
  padding-block: var(--space-xxl);
}

.border-bottom {
  border-bottom: 1px solid var(--color-secondary);
}

.img-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.img-block p {
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: var(--space-lg);
}

:is(.light-background) p {
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: var(--space-lg)
}

.light-background {
  background-color: var(--color-secondary);
  margin-top: 2rem;
}

:is(.light-background) h2,
:is(.light-background) p {
  color: var(--color-primary);
  padding-block: var(--space-md);
}

.dark-background {
  background-color: transparent;
}

.images {
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: var(--space-md);
  width: 80vw;
}

figure {
  display: flex;
  flex-direction: column;
  position: relative;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-secondary);
  overflow: hidden;
  width: 0;
  height: 100%;
  transition: .5s ease;
}

:is(.light-background) .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  overflow: hidden;
  width: 0;
  height: 100%;
  transition: 1s ease;
  -webkit-transition: 1s ease;
  -moz-transition: 1s ease;
  -ms-transition: 1s ease;
  -o-transition: 1s ease;
}

figure:hover .overlay {
  width: 100%;
}

.text {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.text > p {
  color: var(--color-primary);
  font-size: var(--step--1);
  padding-block: var(--space-md);
}

:is(.light-background) p {
  color: var(--color-primary);
  font-size: var(--step--1);
}

:is(.light-background) .text > h3,
:is(.light-background) .text > p {
  color: var(--color-secondary);
}

footer {
  border-top: 1px solid var(--color-secondary);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 80vw;
  margin-left: auto;
  margin-right: auto;
}

footer a {
  color: var(--color-secondary);
  text-decoration: underline;
  padding-inline: 2rem;
}

footer a:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}


@media screen and (min-width: 768px) {
  .images {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 80dvw;
    margin-inline: auto;
  }
}