/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

:root {
  --text-color: #11203F;
  --focus-color: #11203F;
}

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

html {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.46;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  display: block;
}

p,
ul,
li,
h1,
h2,
h3 {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #11203F;
  outline-offset: 4px;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Wayra Luma's custom styles
   ========================================================================== */

html {
  background-image: radial-gradient(
    ellipse 60% 70% at 78% 24%,
    #ffffff 0%,
    #fce6b5 100%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

main {
  width: 100%;
  margin: 0 auto;
}

p,
li {
  font-size: 1.2rem;
  line-height: 2rem;
}

p {
  margin-bottom: 16px;
}

li {
  padding-left: 0.35rem;
}

strong {
  font-weight: 600;
}

.section {
  margin-top: 128px;
}

.section-heading {
  font-size: 1.05rem;
  line-height: 1.365rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: #0000FF;
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card {
  padding: 48px 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
}

.text-block {}

.hero,
.who-we-help,
.how-we-work,
.contact {
  width: min(100% - 64px, 720px);
  margin-left: auto;
  margin-right: auto;
}

.what-we-do,
.selected-work {
  width: min(100% - 64px, 1180px);
  margin-left: auto;
  margin-right: auto;
}

/* Hero */

.hero {
  padding-top: 48px;
  position: relative;
}

.logo {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FCE6B5;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #0000FF;
  margin-bottom: 24px;
}

.contact-link {
  position: absolute;
  top: 54px;
  right: 16px;
  color: #0000FF;
  font-size: 0.875rem;
  line-height: 1.46;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-link:hover {
  background-color: #F1D5F3;
}

.hero-title {
  font-size: 4.2rem;
  line-height: 4.62rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-copy {
  font-size: 1.65rem;
  line-height: 2.31rem;
  font-weight: 400;
}

.hero-accent {
  color: #0000FF;
  text-decoration: none;
}

.hero-accent:hover {
  color: #F1D5F3;
}

/* What We Do */

.service-grid {
  grid-template-columns: repeat(2, 1fr);
}

.service-heading {
  font-size: 1.5rem;
  line-height: 1.95rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.service-card ul {
  padding-left: 1em;
}

/* Selected Work */

.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.work-heading {
  font-size: 1.375rem;
  line-height: 1.7875rem;
  font-weight: 500;
  margin-bottom: 16px;  
}

.work-labels {
  padding: 1.225rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.225rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #59647A;
}

/* How We Work */

.how-we-work-items {
  margin-top: 48px;
}

/* Contact */


.contact-list {
  display: flex;
  gap: 64px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0;
  padding: 0;
  font-size: 1.44rem;
}

.contact-list span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
}

.contact-list a {
  color: #0000FF;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.contact-list a:hover {
  color: #0000FF;
  background-color: #F1D5F3;;
  text-decoration-thickness: 0.12em;
}

/* Footer */

.site-footer {
  margin: 0 auto;
  padding: 24px 0 32px;
  /*background: #FDEECE;*/
  margin-top: 256px;
}

.footer-copyright {
  font-size: 0.875rem;
  line-height: 1.225rem;
  display: block;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

/* Responsive */

@media (max-width: 1024px) {
  .service-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero,
  .who-we-help,
  .how-we-work,
  .contact,
  .what-we-do,
  .selected-work {
    width: calc(100% - 32px);
  }

  .hero-title {
    font-size: 3rem;
    line-height: 3.3rem;
  }

  .contact-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

