/* Surf Country — static site stylesheet */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Loved by the King";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lovedbytheking-latin.woff2") format("woff2");
}

:root {
  --ink: #1d1d1d;
  --text: rgba(29, 29, 29, .7);
  --red: #ea3d41;
  --link: #00d0ff;
  --rule: #ddd;
  --pad: 80px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Rubik", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .06em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2 { color: var(--ink); font-weight: 300; margin: 0; text-rendering: optimizeLegibility; }
h1 { font-size: 80px; line-height: 1; letter-spacing: .01em; margin-bottom: .45em; }
h2 { font-size: 40px; line-height: 1.4; letter-spacing: .05em; margin: .5em 0; }
h1 a { border-bottom: 1px solid rgba(29, 29, 29, .3); padding-bottom: .05em; transition: color .15s ease-out, border-color .15s ease-out; }
h1 a:hover { color: rgba(29, 29, 29, .6); border-color: rgba(29, 29, 29, .15); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
ul { margin: 0 0 1em; padding-left: 1.6em; }
ul li p { margin: 0 0 .5em; }
.center { text-align: center; }

.content p a, .content li a { color: var(--link); border-bottom: 1px solid rgba(0, 208, 255, .3); transition: color .15s ease-out, border-color .15s ease-out; }
.content p a:hover, .content li a:hover { color: rgba(0, 208, 255, .6); border-color: rgba(0, 208, 255, .15); }

/* Header */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px 80px;
}
.header nav { display: flex; gap: 16px; }
.header nav a {
  color: var(--red);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color .17s ease-in-out;
}
.header nav a:hover { color: rgba(234, 61, 65, .4); }
.header .nav-right { justify-content: flex-end; }
.header .logo img { width: 100px; }

/* Full-width banners */
.banner { width: 100%; object-fit: cover; }
.banner--hero { height: 416px; object-position: 0% 100%; }
.banner--strip { height: 250px; }
.banner--tall { height: 480px; }

/* Page content grid */
.content { padding: var(--pad); }
.content--after-banner { padding-top: 34px; }
.row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 34px; margin-bottom: 34px; }
.row > * { min-width: 0; }
.c1-6 { grid-column: 1 / 7; } .c7-12 { grid-column: 7 / 13; }
.c1-3 { grid-column: 1 / 4; } .c4-8 { grid-column: 4 / 9; } .c9-12 { grid-column: 9 / 13; }
.c1-8 { grid-column: 1 / 9; } .c4-9 { grid-column: 4 / 10; } .c10-12 { grid-column: 10 / 13; }
.square { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.wide { width: 100%; }
.spacer { height: 40px; }

hr { border: 0; height: 1px; background: var(--rule); margin: 34px 0; }

/* Map + video embeds */
.map { width: 100%; height: 190px; border: 0; filter: grayscale(1); }
.video { position: relative; padding-bottom: 75%; margin: 34px 0; background: #ddd; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Quote */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: "Loved by the King", cursive; font-size: 32px; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.quote figcaption { font-size: 12px; font-weight: 400; letter-spacing: .15em; line-height: 4; text-transform: uppercase; }
.pull { border-left: 1px solid var(--rule); margin: 1em 0 0; padding: 0; }
.pull p { margin: 0; }

/* Photo grid on the home page */
.gallery { display: grid; gap: 50px; padding: 50px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); padding-bottom: 0; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }

/* Footer */
.footer { padding: 50px var(--pad) 90px; text-align: center; }
.footer hr { width: 50%; max-width: 623px; background: #bbb; margin: 0 auto 34px; }
.footer .supporter { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 34px; align-items: start; max-width: 830px; margin: 0 auto 80px; }
.footer .supporter p { margin: 0; text-align: left; }
.footer .supporter img { width: 163px; }
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #222; }
.social svg { width: 28px; height: 28px; }
.footer .contact { max-width: 600px; margin: 0 auto; }
.footer .contact a { color: #000; border-bottom: 1px solid rgba(0, 0, 0, .3); margin-left: 10px; }
.footer .contact a:hover { color: rgba(0, 0, 0, .6); }

/* Tablet */
@media (max-width: 1000px) {
  :root { --pad: 40px; }
  h1 { font-size: 60px; }
  h2 { font-size: 32px; }
  .header { padding: 20px 40px; }
  .banner--hero { height: 320px; }
  .banner--tall { height: 360px; }
  .gallery { gap: 30px; padding: 30px; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  h1 { font-size: 44px; }
  h2 { font-size: 26px; }
  .header { grid-template-columns: 1fr; justify-items: center; row-gap: 10px; padding: 16px 20px; }
  .header .logo { order: -1; }
  .header .nav-left { display: none; }
  .header nav { flex-wrap: wrap; justify-content: center; }
  .banner--hero { height: 220px; }
  .banner--strip { height: 160px; }
  .banner--tall { height: 240px; }
  .content { padding: 30px var(--pad); }
  .row { display: block; margin-bottom: 0; }
  .row > * { margin-bottom: 28px; }
  .quote blockquote { font-size: 26px; }
  .gallery { gap: 20px; padding: 20px; }
  .gallery--3, .gallery--2 { grid-template-columns: 1fr; }
  .footer { padding-bottom: 50px; }
  .footer hr { width: 100%; }
  .footer .supporter { grid-template-columns: 1fr; justify-items: center; row-gap: 16px; margin-bottom: 50px; }
  .footer .contact a { display: inline-block; margin-left: 0; }
}
