/* http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ----- Fonts ----- */
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans"), local("OpenSans"),
    url("../fonts/open-sans/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Light"), local("OpenSans-Light"),
    url("../fonts/open-sans/OpenSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Semibold"), local("OpenSans-Semibold"),
    url("../fonts/open-sans/OpenSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Bold"), local("OpenSans-Bold"),
    url("../fonts/open-sans/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Italic"), local("OpenSans-Italic"),
    url("../fonts/open-sans/OpenSans-Italic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans LightItalic"), local("OpenSans-LightItalic"),
    url("../fonts/open-sans/OpenSans-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans SemiboldItalic"), local("OpenSans-SemiboldItalic"),
    url("../fonts/open-sans/OpenSans-SemiboldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans BoldItalic"), local("OpenSans-BoldItalic"),
    url("../fonts/open-sans/OpenSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

/* ----- Splash Page ----- */
:root {
  /* Pink-ish theme */
  --tint-1: #0479bd;
  --tint-2: #035f94;
  --tint-3: #058ee0;
  --tint-4: #02456b;
  --tint-5: #012a42;

  --text-light: #f9fafb;
  --text-dark: #111827;
  --text-mid: #555;

  --accent-color: #f0ad23;

  font-size: 100%;

  --border-radius: 0.3rem;

  --content-padding: 2.5rem;
  --section-gap: 3rem;
  --gap: 1rem;

  --footer-height: 6rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  background-color: var(--tint-3);
  color: var(--text-light);
  min-height: 100%;

  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

a {
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid var(--tint-1);
  transition: border-bottom-color 0.5s ease-in;
}

a:hover {
  border-bottom-color: var(--tint-5);
}

figure {
  max-width: 100%;
  max-height: 100%;
}

figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: initial;
  object-fit: contain;
  border-radius: var(--border-radius);
}

/*
 * Layout
 */

main {
  margin: 0 auto;
  padding-top: 2.5rem;
  width: 100%;
  max-width: 1400px;
  min-width: 410px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: auto 40%;
  grid-template-rows: auto auto auto 1fr var(--footer-height);
  grid-template-areas:
    "header-img void"
    "header-img header"
    "thumbnails thumbnails"
    "newsletter newsletter"
    "footer footer";
  row-gap: var(--section-gap);
  column-gap: var(--gap);

  align-items: center;
  justify-items: center;
}

main .archies-world {
  display: block;
  grid-area: header-img;
}

/*
 * Header
 */

header {
  margin-bottom: 6rem;
  grid-area: header;
  align-self: flex-start;
  padding-right: var(--content-padding);
}

header h1 {
  font-size: 3.5rem;
  line-height: 3.8rem;
  text-align: left;
  font-weight: 600;
}

header h2 {
  margin-top: 0.7rem;
  font-size: 1.5rem;
  line-height: 1.8rem;
  font-weight: 400;
  text-align: left;
}

header h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  text-align: left;
}

/*
 * Thumbnails
 */

section.thumbnails {
  grid-area: thumbnails;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

section.thumbnails figure {
  max-width: 14rem;
}

/*
 * Newsletter 
 */

section.newsletter {
  grid-area: newsletter;
  padding: var(--content-padding);
  background-color: var(--tint-1);
  border-radius: var(--border-radius);
}

section.newsletter p {
  font-size: 1.2rem;
  margin-bottom: var(--gap);
}

section.newsletter form {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: var(--gap);
}

section.newsletter form fieldset label {
  display: block;
  padding-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 500;
}

section.newsletter form fieldset label em {
  font-weight: 300;
  font-style: normal;
}

section.newsletter form input {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0.6rem;
  background-color: var(--text-light);
  color: var(--text-dark);
  font-size: 1.2rem;
  border: none;
  border-radius: var(--border-radius);
}

section.newsletter form button {
  display: block;
  margin: 0.2rem 0 0;
  padding: 0.6rem;
  background-color: var(--accent-color);
  color: var(--text-light);
  font-size: 1.2rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
}

/*
 * Footer 
 */

footer {
  grid-area: footer;
  text-align: center;
  line-height: var(--footer-height);
  text-align: center;
}

@media (max-width: 1089px) {
  :root {
    --section-gap: 2rem;
  }

  main {
    grid-template-columns: auto;
    grid-template-areas:
      "header-img"
      "header"
      "thumbnails"
      "newsletter"
      "footer";
  }

  main header {
    margin: 5rem 0;
  }

  section.newsletter form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  section.newsletter form input {
    width: 100%;
  }

  section.newsletter form button {
    min-width: 50%;
  }
}
