/* Eddie Bauer Europe landing. Measurements are taken from the Figma export
   (EddieBauer_landing2.pdf, 1366px frame) and are exact at that width. */

@font-face {
  /* Brand typeface, atipo Borna. Medium is the free weight from atipofoundry.com
     (webfont licence in /licenses). Add Borna-Regular.woff2 as a weight 400 face
     and move "Borna" to the front of --font once the full family is licensed. */
  font-family: "Borna";
  src: url("/fonts/Borna-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ink: #000;
  --ink-2: #181818;
  --graphite: #23262b;
  --stone: #dad8d5;
  --paper: #fbfbfb;
  --paper-2: #fcfcfc;
  --moss: #4c532c;
  --rule: #9a9a9a;
  --white: #fff;
  --gutter: 48px;
  --font-caps: "Borna", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/20px var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
a { color: inherit; }
.sr, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.h2 { font-size: 28px; line-height: 34px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center;
  height: 42px; padding: 0 17px 2px 16px;
  font: inherit; text-decoration: none; cursor: pointer;
  border: 1px solid var(--stone); border-radius: 0; background: none; color: var(--ink-2);
}
.btn::after {
  content: ""; margin-left: 8px;
  border-left: 4px solid currentColor; border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}
.btn--solid { height: 40px; background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.btn--light { color: var(--white); border-color: var(--stone); }
.btn:hover { background: rgba(0,0,0,.04); }
.btn--solid:hover { background: #000; }
.btn--light:hover { background: rgba(255,255,255,.08); }
.btn:focus-visible, .field:focus-visible, .topbar a:focus-visible { outline: 2px solid var(--graphite); outline-offset: 2px; }
.newsletter .btn:focus-visible, .newsletter .field:focus-visible { outline-color: var(--white); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 48px; background: var(--paper-2); border-bottom: 1px solid var(--stone);
  display: flex; align-items: center; justify-content: center;
}
.topbar__logo { position: absolute; left: 50%; top: 11px; margin-left: -75px; }
.topbar__logo img { width: 154px; height: 26px; }
.topbar__link {
  position: absolute; right: 21px; top: 12.75px;
  color: var(--ink-2); text-decoration: none;
}
.topbar__link:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; aspect-ratio: 1366 / 732; min-height: 520px; overflow: hidden; background: #3c6c82; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__title {
  position: absolute; left: 179px; top: 41.56%;
  color: var(--white); font: 500 40px/40px var(--font-caps); text-transform: uppercase;
}

/* Intro */
.intro { min-height: 450px; background: var(--paper); padding: 87.65px 0 60px 159px; }
.intro__inner { max-width: 517px; }
.intro .h2 { margin-bottom: 12.1px; }
.intro p { margin-bottom: 20px; }
.intro p:last-of-type { margin-bottom: 19.25px; }
.intro .btn { margin-left: -1px; }

/* Product lines */
.lines { background: var(--paper-2); padding: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; aspect-ratio: 679 / 732; overflow: hidden; color: var(--white); }
.tile picture, .tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__logo { position: absolute; }
.tile__logo--eb { left: 47px; top: 46px; width: 233px; height: 37px; }
.tile__logo--fa { left: 48px; top: 51px; width: 85px; height: 85px; }
.tile__title { position: absolute; left: 48px; font-size: 40px; line-height: 40px; }
.tile__text { position: absolute; left: 48px; }
.tile--main .tile__title { top: 45.315%; }
.tile--main .tile__text { top: 85.211%; width: 500px; }
.tile--fa .tile__title { top: 45.642%; }
.tile--fa .tile__text { top: 85.348%; width: 583px; }

/* Retailer inquiry */
.retailer {
  background: var(--paper); padding: 24px 68px 43px var(--gutter);
  display: grid; grid-template-columns: 1fr 588px; align-items: start;
}
.retailer .h2 { margin: 0.95px 0 12.2px; }
.retailer__copy p { max-width: 600px; }
.form { display: grid; gap: 7px; }
.field {
  display: block; width: 100%; height: 42px; margin: 0; padding: 0 12px;
  font: inherit; color: var(--ink-2); background: transparent;
  border: 1px solid var(--graphite); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--ink-2); opacity: 1; }
.field--area { height: 116px; padding-top: 9px; resize: vertical; }
.form__row { display: flex; align-items: center; gap: 16px; margin-top: 2px; margin-left: 1px; }
.form__note { font-size: 12px; line-height: 16px; color: #6b6b6b; }
.form__status { min-height: 20px; }
.form__status:empty { display: none; }
.field[aria-invalid="true"] { border-color: #b3261e; }

/* Newsletter */
.newsletter { position: relative; min-height: 318px; background: var(--moss); color: var(--white); padding: 44.95px var(--gutter) 60px; }
.newsletter__eyebrow { color: var(--stone); text-transform: uppercase; margin-bottom: 8.9px; }
.newsletter__title { font-size: 28px; line-height: 34px; max-width: 600px; margin-bottom: 23.15px; }
.newsletter .btn { margin-left: -1px; width: 129px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 600px; }
.nl-form .field { flex: 1 1 280px; }
.field--light { color: var(--white); border-color: var(--stone); }
.field--light::placeholder { color: var(--stone); }
.nl-form .btn { width: auto; margin-left: 0; }
.nl-form__note { flex-basis: 100%; font-size: 12px; line-height: 16px; color: var(--stone); }

/* Footer */
.footer { position: relative; height: 98px; background: var(--moss); color: var(--white); border-top: 1px solid var(--rule); }
.footer__logo { position: absolute; left: 47px; top: 34px; width: 216px; height: 35px; }
.footer__tag { position: absolute; left: 314px; top: 31.4px; font: 500 17px/17px var(--font-caps); text-transform: uppercase; }
.footer__copy { position: absolute; right: 49px; top: 42.05px; font-size: 12px; line-height: 12px; text-transform: uppercase; }

/* Narrow screens: the design only specifies 1366px, this is our interpretation. */
@media (max-width: 1100px) {
  .intro { padding-left: var(--gutter); }
  .hero__title { left: var(--gutter); }
  .tile__title { font-size: 32px; line-height: 34px; }
  .tile--main .tile__text, .tile--fa .tile__text { width: auto; right: 48px; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .topbar__link { right: 16px; }
  .topbar__logo img { width: 120px; height: 21px; }
  .topbar__logo { margin-left: -60px; top: 13px; }
  .topbar__link { font-size: 13px; }
  .hero { aspect-ratio: auto; height: 78vh; min-height: 480px; }
  .hero__title { top: auto; bottom: 40px; font-size: 32px; line-height: 34px; }
  .intro { min-height: 0; padding: 56px var(--gutter) 56px; }
  .lines { grid-template-columns: 1fr; padding: 8px 0; }
  .tile { aspect-ratio: 4 / 5; }
  .tile__logo--eb, .tile__logo--fa, .tile__title, .tile__text { left: var(--gutter); }
  .tile__logo--eb { top: 24px; width: 180px; height: auto; }
  .tile__logo--fa { top: 24px; width: 64px; height: 64px; }
  .tile--main .tile__title, .tile--fa .tile__title { top: 40%; }
  .tile--main .tile__text, .tile--fa .tile__text { top: auto; bottom: 28px; right: var(--gutter); }
  .retailer { grid-template-columns: 1fr; padding: 48px var(--gutter); gap: 28px; }
  .form__row { flex-wrap: wrap; }
  .newsletter { padding: 48px var(--gutter); min-height: 0; }
  .newsletter__title { font-size: 24px; line-height: 30px; }
  .footer { height: auto; display: grid; gap: 16px; padding: 32px var(--gutter); }
  .footer__logo, .footer__tag, .footer__copy { position: static; }
  .footer__logo { width: 180px; height: auto; }
}
