/*! normalize.css v3.0.2 | MIT License | git.io/normalize */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

:root {
  --futura: "futura-pt", "Futura", "Century Gothic", sans-serif;
  --t-text-fontFamily: var(--futura);

  /* ----- Colors ----- */
  --black: #2d2a29;
  --blush: #fff3ee;
  --error: color-mix(in srgb, var(--blush), red, 35%);
  --green: #0f7557;

  /* ----- Grid ----- */
  --g-s: 480px;
  --g-m: 960px;
  --g-l: 1280px;

  /* ----- Spacing ----- */

  --b-space: 20px;
  --b-space-xs: calc(0.25 * var(--b-space));
  --b-space-s: calc(0.5 * var(--b-space));
  --b-space-l: calc(2 * var(--b-space));
  --b-space-xl: calc(4 * var(--b-space));

  /* ----- Layers ----- */

  --z-layer-base: 10;
  --z-layer-overlay: 20;
  --z-layer-nav: 30;
  --z-layer-modal: 40;
}

html {
  color: var(--black);
  font-family: var(--t-text-fontFamily);
  font-size: 14px;
  letter-spacing: 0.0625em;
  line-height: 1;
}
body {
  font-size: 16px;
  font-variant-ligatures: common-ligatures;
  font-weight: 300;
  text-rendering: optimizeLegibility;
}
html.home {
  height: 100%;
  overflow: hidden;

  body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 1px;
  }
}

* {
  box-sizing: border-box;
}

/* ----- Text ----- */

a {
  color: var(--green);
  text-decoration: none;
}
img {
  height: auto;
  max-width: 100%;
}
p {
  line-height: 1.75;
  margin-bottom: var(--b-space);
  margin-top: var(--b-space);
}
h1,
h2,
h3 {
  letter-spacing: 0.25em;
  line-height: 1.5;
  margin-bottom: var(--b-space);
  margin-top: var(--b-space);
  text-transform: uppercase;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 18px;
  font-weight: 100;
  letter-spacing: 0.3125em;
}

/* ----- Forms ----- */

[type="email"],
[type="number"],
[type="tel"],
[type="text"] {
  -webkit-appearance: none;
  background: var(--black);
  border: none;
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--black);
  color: white;
  display: inline-block;
  height: var(--b-space-l);
  outline: none;
  padding: var(--b-space-s);
  &:disabled {
    opacity: 0.4;
  }
}
[type="number"] {
  -moz-appearance: textfield;
  &::-webkit-inner-spin-button,
  &::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}
[type="submit"],
button,
.btn {
  -webkit-appearance: none;
  border-radius: 0;
  background-color: var(--green);
  border: none;
  color: white;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.1875em;
  line-height: 1.2;
  margin-left: auto;
  margin-right: auto;
  outline: none;
  padding-bottom: 1em;
  padding-left: 2.5em;
  padding-right: 2.5em;
  padding-top: 1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 250ms linear, background 250ms linear, color 250ms linear;
  width: auto;
  &:focus,
  &:hover {
    filter: color-mix(in srgb-linear, var(--green), white 15%);
  }
}
.btn--inv {
  background-color: var(--blush);
  color: var(--black);
  &:focus,
  &:hover {
    background-color: white;
  }
}
label {
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
textarea {
  border: 2px solid var(--black);
  font-size: 16px;
  font-weight: 500;
  height: 8em;
  letter-spacing: 0.0625em;
  line-height: 1.5;
  outline: none;
  padding: calc(1.5 * var(--b-space-s));
  transition: border 250ms;
  width: 100%;
  &:focus {
    border-color: var(--green);
  }
}

/* ----- Tables ----- */
table {
  margin-bottom: var(--b-space);
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--b-space);
  width: 75%;
}
td {
  border: 1px solid black;
  font-weight: 300;
  padding: 6px;
}
th {
  letter-spacing: 0.125em;
  text-transform: uppercase5;
}

/* -------------------------------------
/*   Components
/* ------------------------------------- */

/* ----- Cell ----- */

.cell {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--b-space);
  padding-right: var(--b-space);
  p {
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
  }
}
.cell--s {
  max-width: 720px;
}

/* ----- Forms ----- */

.form-pair {
  display: flex;
  margin-bottom: 1px;
  label {
    background: var(--black);
    color: rgba(white, 0.7);
    flex: none;
    font-size: 12px;
    height: var(--b-space-l);
    line-height: var(--b-space-l);
    overflow: hidden;
    padding-left: var(--b-space-s);
    white-space: nowrap;
    width: calc(1.75 * var(--b-space-xl));
    + input {
      box-shadow: none;
      flex: 1;
      height: var(--b-space-l);
      letter-spacing: 0.0625em;
    }
  }
}

.form-radio {
  position: absolute;
  right: 200%;
  + label {
    font-weight: 700;
    letter-spacing: 0.125em;
    line-height: 1;
    opacity: 0.7;
    position: relative;
    transition: opacity 150ms, color 150ms;
    vertical-align: middle;
    &::before {
      border-radius: 50%;
      box-shadow: inset 0 0 0 3px var(--black);
      content: "";
      display: inline-block;
      height: var(--b-space);
      margin-right: var(--b-space-s);
      transition: box-shadow 150ms ease-in;
      vertical-align: middle;
      width: var(--b-space);
    }
  }
  &:hover + label,
  &:focus + label,
  + labelhover {
    color: var(--green);
    &::before {
      box-shadow: inset 0 0 0 3px var(--green);
    }
  }

  &:checked {
    + label {
      opacity: 1;
      &::before {
        box-shadow: inset 0 0 0 8px var(--black);
      }
    }
    &:focus + label {
      &::before {
        box-shadow: inset 0 0 0 8px var(--green);
      }
    }
  }
}

.form-radio--block {
  right: 9999%;
  + label {
    box-shadow: 0 0 0 2px var(--black);
    cursor: pointer;
    display: block;
    height: var(--b-space-xl);
    opacity: 1;
    padding-bottom: calc(1.625 * var(--b-space));
    padding-top: calc(1.625 * var(--b-space));
    text-align: center;
    transition: box-shadow 150ms;
    &::before {
      display: none;
    }
  }
  &:hover,
  &:focus {
    + label {
      color: var(--green);
      box-shadow: 0 0 0 2px var(--green);
    }
  }
  &:checked {
    + label {
      background-color: var(--green);
      box-shadow: 0 0 0 2px var(--green);
      color: white;
    }
  }
}

.is-erroneous {
  position: relative;
  &::after {
    bottom: 0;
    box-shadow: inset 0 0 0 1px var(--error);
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
  }
  input,
  label {
    background-color: mix(var(--black), var(--error), 75%);
  }
  label {
    color: var(--error);
  }
}

/* ----- Modal ----- */
.modal {
  -webkit-overflow-scrolling: touch;
  bottom: 0;
  cursor: pointer;
  left: 0;
  opacity: 0;
  outline: 0;
  overflow: hidden;
  padding-left: var(--b-space);
  padding-right: var(--b-space);
  position: fixed;
  right: 0;
  top: 0;
  visibility: hidden;
  z-index: calc(var(--z-index-modal)+ 5);

  @media (width >= 960px) {
    padding-left: var(--b-space-l);
    padding-right: var(--b-space-l);
  }
}
.modal-inner {
  background: white;
  box-shadow: 0 0 0 2px var(--black);
  cursor: default;
  margin: var(--b-space) auto;
  max-width: 30em;
  overflow: hidden;
  position: relative;
  transform: translateY(10%);
  transition: transform 250ms cubic-bezier(0, 0.5, 0.5, 1);
  z-index: calc(var(--z-index-modal) + 6);

  @media (width >= 960px) {
    margin: calc(2 * var(--b-space) auto);
  }
}
.modal-screen {
  background: rgba(var(--blush), 0.6);
  bottom: 0;
  cursor: pointer;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 500ms, visibility 0ms 500ms;
  visibility: hidden;
  z-index: var(--z-index-modal);
}

/* States */

.is-modal-viewing {
  overflow: hidden;
  main {
    filter: blur(5px);
  }
  .modal {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .modal-inner {
    transform: translateY(0);
  }
  .modal-screen {
    opacity: 1;
    transition: opacity 500ms;
    visibility: visible;
  }
}
.modal.is-viewing {
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  visibility: visible;
}
.modal {
  .is-loading {
    position: relative;
    &::before {
      background-color: rgba(white, 0.98);
      bottom: 0;
      content: "";
      left: 0;
      position: absolute;
      right: 0;
      top: 0;
      z-index: var(--z-index-modal);
    }
    &::after {
      animation: spin 0.5s infinite linear;
      background-color: var(--blush);
      background-image: radial-gradient(
          circle calc(var(--b-space) - 6px),
          white 99%,
          transparent
        ),
        radial-gradient(circle, var(--black) 70.71%, transparent 70.71%);
      background-position: center center, center top, left center;
      background-repeat: no-repeat;
      background-size: 100%, auto 6px, 50% 100%;
      border-radius: 50%;
      content: "";
      height: var(--b-space-l);
      left: 50%;
      margin-left: calc(-1 * var(--b-space));
      margin-top: calc(-1 * var(--b-space));
      overflow: hidden;
      position: absolute;
      top: 50%;
      width: var(--b-space-l);

      z-index: calc(var(--z-index-modal + 1));
    }
  }
}

/* ----- Nav ----- */

.nav {
  left: 0;
  position: absolute;
  text-align: center;
  top: 0;
  transform: translateY(-50%);
  width: 100%;
  z-index: var(--z-layer-nav);

  a {
    background: white;
    box-shadow: 0 0 0 2px var(--green);
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    padding-bottom: var(--b-space-xs);
    padding-left: var(--b-space-s);
    padding-right: var(--b-space-s);
    padding-top: var(--b-space-xs);
    text-transform: uppercase;
    transition: box-shadow 250ms, color 250ms;
    &:focus,
    &:hover {
      color: var(--green);
      box-shadow: 0 0 0 2px var(--green);
    }
    &.is-selected {
      background-color: var(--green);
      color: white;
    }
  }
}
.nav-frame {
  box-shadow: 0 0 0 2px var(--green);
  padding-bottom: var(--b-space-l);
  padding-left: var(--b-space);
  padding-right: var(--b-space);
  padding-top: calc(1.5 * var(--b-space));
  position: relative;
  @media (width >= 480px) {
    padding-bottom: var(--b-space-l);
    padding-left: var(--b-space-l);
    padding-right: var(--b-space-l);
    padding-top: calc(1.5 * var(--b-space-l));
  }
}

/* -------------------------------------
/*   Modifiers
/* ------------------------------------- */
.modal--video {
  .modal-inner {
    background: none;
    bottom: var(--b-space-l);
    box-shadow: none;
    left: var(--b-space-l);
    margin: 0;
    max-width: none;
    padding: 0;
    position: fixed;
    right: var(--b-space-l);
    top: var(--b-space-l);
  }
}

/* -------------------------------------
/*   Animations
/* ------------------------------------- */

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* ----- Well ----- */

.well {
  margin-bottom: var(--b-space-xl);
  margin-top: var(--b-space-xl);
}
.well--xl {
  margin-bottom: var(--b-space-xl);
  margin-top: var(--b-space-xl);
  @media (width >= 480px) {
    margin-bottom: calc(2 * var(--b-space-xl));
    margin-top: calc(2 * var(--b-space-xl));
  }
}
.well--c {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

/* -------------------------------------
/*   Structures
/* ------------------------------------- */

/* ----- Hero ----- */

.hero {
  height: 100vh;
  /* overflow: hidden; */
  position: relative;
  transform-style: preserve-3d;
  width: 100vw;

  &::after {
    bottom: calc(1.5 * var(--b-space));
    box-shadow: inset 0 0 0 3px var(--black);
    content: "";
    left: calc(1.5 * var(--b-space));
    position: absolute;
    right: calc(1.5 * var(--b-space));
    top: calc(1.5 * var(--b-space));

    @media (width >= 480px) {
      bottom: calc(0.75 * var(--b-space-xl));
      left: calc(0.75 * var(--b-space-xl));
      right: calc(0.75 * var(--b-space-xl));
      top: calc(0.75 * var(--b-space-xl));
    }
  }

  img {
    height: auto;
    left: 50%;
    position: absolute;
    top: 45%;
    transform: translate(-50%, -50%);
    width: calc(8 * var(--b-space));
    z-index: 10;

    @media (width >= 480px) {
      width: calc(10 * var(--b-space));
    }

    @media (width >= 960px) {
      width: calc(12 * var(--b-space));
    }
  }
}

.hero-bg {
  background-image: url("/assets/ornament-tr.jpg"),
    url("/assets/ornament-bl.jpg");
  background-position: top right, bottom left;
  background-repeat: no-repeat;
  background-size: 50% auto, 42% auto;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateZ(-1px) scale(2);
  z-index: -1;

  @media (width >= 480px) {
    background-size: 42% auto, 36% auto;
  }

  @media (width >= 960px) {
    background-size: 34% auto, 29% auto;
  }
}

.hero-date {
  font-family: var(--t-text-fontFamily);
  font-size: 12px;
  font-weight: 300;
  left: 50%;
  letter-spacing: 0.5em;
  line-height: 1.5;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  top: 65%;
  transform: translate3d(-50%, -50%, -0.1px) scale(1.1);
  width: 50%;
  z-index: 10;

  @media (width >= 480px) {
    width: 100%;
  }

  @media (width >= 960px) {
    font-size: 14px;
  }
}

/* ----- Info ----- */
.info {
  background-color: var(--black);
  color: white;
  margin-top: 4 * var(--b-space);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
}
/* Submodules */

.info-col {
  margin-bottom: var(--b-space-l);
  margin-top: var(--b-space-l);
  width: 100%;
  @media (width >= 480px) {
    display: flex;
    margin-bottom: var(--b-space-xl);
    margin-left: -var(--b-space-l);
    margin-top: var(--b-space-xl);
  }
}
.info-cell {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--black);
}
.info-icn {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 128px;
  @media (width >= 480px) {
    box-sizing: content-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--b-space-l);
  }
}
.info-details {
  @media (width >= 480px) {
    padding-left: var(--b-space-l);
    flex: 1;
  }
  h3 {
    text-align: center;
    @media (width >= 480px) {
      text-align: inherit;
    }
  }
}

/* ----- Photos ----- */
.photos {
  max-width: 100%;
  /* overflow: hidden; */
  padding-bottom: var(--b-space-s);
  padding-left: var(--b-space-s);
  padding-right: var(--b-space-s);
  position: relative;
  transform-style: preserve-3d;

  @media (width >= 480px) {
    padding-bottom: 1.25 * var(--b-space-xl);
    padding-left: var(--b-space);
    padding-right: var(--b-space);
  }

  &::before {
    background-image: url("/assets/ornament-extra.jpg");
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: 25% auto;
    bottom: 25%;
    content: "";
    height: 50vh;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
    transform: translateZ(-2px) scale(3);
    transform-style: preserve-3d;
    z-index: -1;
    @media (width >= 480px) {
      height: 100vh;
    }
  }
}

.photo-row {
  margin-top: var(--b-space);
  margin-bottom: var(--b-space);
  @media (width >= 480px) {
    display: flex;
  }
  img {
    display: block;
    width: 100%;
  }
  > * {
    @media (width >= 480px) {
      flex: 1;
    }
  }
}
.photo-stack {
  img + img {
    margin-top: var(--b-space);
  }
  + .photo-tall {
    margin-top: var(--b-space);
    @media (width >= 480px) {
      margin-top: 0;
    }
  }
}
.photo-two {
  @media (width >= 480px) {
    padding-right: var(--b-space-s);
  }
  + .photo-two {
    margin-top: var(--b-space);
    @media (width >= 480px) {
      margin-top: 0;
      padding-left: var(--b-space-s);
      padding-right: 0;
    }
  }
}
.photo-stack--left {
  @media (width >= 480px) {
    padding-right: var(--b-space);
  }
}
.photo-stack--right {
  @media (width >= 480px) {
    padding-left: var(--b-space);
  }
}
.photo-tall {
  overflow: hidden;
  position: relative;
  img {
    @media (width >= 480px) {
      left: 50%;
      max-width: none;
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }
}

/* ----- Save The Date ----- */

.login {
  position: relative;
  transform: translateZ(0);
  z-index: 5;
  @media (width >= 960px) {
    display: flex;
  }
  h3 {
    line-height: 1.5;
    @media (width >= 480px) {
      line-height: 1.2;
    }
    span {
      display: block;
      letter-spacing: 0;
      height: 0;
      opacity: 0;
      @media (width >= 480px) {
        display: inline;
        height: auto;
        margin-left: 1em;
        margin-right: 1em;
        opacity: 1;
      }
    }
  }
  form {
    margin-top: var(--b-space-l);
    text-align: center;
    @media (width >= 480px) {
      margin-top: var(--b-space-l);
    }
  }
  [type="text"] {
    background-color: var(--black);
    border: none;
    box-shadow: none;
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5em;
    outline: none;
    text-transform: uppercase;
    vertical-align: top;
    width: 8 * var(--b-space);
    @media (width >= 960px) {
      width: calc(12 * var(--b-space));
    }
  }
  [type="submit"] {
    background: var(--black);
    height: var(--b-space-l);
    line-height: 1;
    padding-left: 1em;
    padding-right: 1em;
    transition: background 300ms ease-out;
  }
  [type="text"]:focus {
    + [type="submit"] {
      background: color-mix(in srgb-linear, var(--green), black 10%);
    }
  }
}
.login-left {
  background-color: var(--blush);
  flex: 1;
  padding-bottom: 1.25 * var(--b-space-xl);
  padding-left: var(--b-space-l);
  padding-right: var(--b-space-l);
  padding-top: var(--b-space-l);
  @media (width >= 960px) {
    padding-bottom: 1.75 * var(--b-space-xl);
    padding-top: 1.25 * var(--b-space-xl);
  }
}
.login-right {
  background-color: var(--black);
  color: white;
  flex: 1;
  padding-bottom: 1.25 * var(--b-space-xl);
  padding-left: var(--b-space-l);
  padding-right: var(--b-space-l);
  padding-top: var(--b-space-l);
  @media (width >= 960px) {
    padding-bottom: 1.75 * var(--b-space-xl);
    padding-top: 1.25 * var(--b-space-xl);
  }
}

/* ----- Registry ----- */
.registry {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--b-space-xl);
  margin-left: -var(--b-space);
}

/* Scaffolding */

.registry-amount {
  display: flex;
  margin-bottom: var(--b-space);
  margin-left: -var(--b-space-s);
  margin-top: var(--b-space-s);
  position: relative;
}
.registry-amount-custom {
  bottom: var(--b-space-s);
  position: absolute;
  right: var(--b-space);
  text-align: center;
  width: 4.5em;
  white-space: nowrap;
  @media (width >= 480px) {
    right: 1.25 * var(--b-space);
    width: 5.5em;
  }
  [type="number"] {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.125em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 3.5em;
    @media (width >= 480px) {
      width: 4.5em;
    }
    &.is-empty {
      background: transparent;
      box-shadow: inset 0 0 0 2px rgba(var(--black), 0.5);
    }
  }
}
.registry-amount-label {
  &.is-erroneous {
    color: var(--error);
    &::after {
      display: none;
    }
  }
}
.registry-amount-option {
  padding-left: var(--b-space-s);
  font-weight: 700;
  width: percentage(1 / 3);
  label {
    display: block;
  }
}
.registry-cta {
  box-shadow: 0 0 0 1px var(--green);
  color: var(--green);
  display: inline-block;
  font-size: 13px;
  padding: 0.75em 1.25em;
  transition: background-color 250ms, color 250ms;
  &:focus,
  &:hover {
    background-color: var(--green);
    color: white;
  }
}
.registry-detail {
  padding-bottom: var(--b-space-l);
  h4 {
    margin-top: var(--b-space);
    margin-bottom: var(--b-space-s);
  }
  textarea {
    margin-bottom: var(--b-space-l);
    margin-top: var(--b-space-s);
  }
}
.registry-detail-hidden {
  overflow: hidden;
  max-height: 0;
  &.is-showing {
    max-height: 45em;
    transition: max-height 300ms ease-out;
  }
}
.registry-detail-inner {
  max-height: 80em;
  overflow: hidden;
  padding-left: var(--b-space);
  padding-right: var(--b-space);
  transition: max-height 250ms;
  @media (width >= 480px) {
    padding-left: var(--b-space-l);
    padding-right: var(--b-space-l);
  }
  &.is-hidden {
    max-height: 0;
  }
}
.registry-image img {
  display: block;
}
.registry-item {
  padding-left: var(--b-space);
  @media (width >= 480px) {
    width: percentage(1 / 2);
  }
  @media (width >= 960px) {
    width: percentage(1 / 3);
  }
  &:hover .registry-item-inner {
    background-color: color-mix(in srgb-linear, var(--blush), #808080 30%);
  }
  h2 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.0625em;
    line-height: 1;
  }
  p {
    display: none;
    @media (width >= 480px) {
      display: block;
    }
  }
}
.registry-item-inner {
  padding-bottom: 1.5 * var(--b-space);
  padding-left: var(--b-space);
  padding-right: var(--b-space);
  padding-top: var(--b-space);
  img {
    display: block;
  }
  p {
    line-height: 1.4;
    margin-bottom: var(--b-space-l);
  }
}
.registry-gifts {
  background-color: var(--black);
  color: white;
  padding-bottom: var(--b-space-s);
  padding-left: var(--b-space);
  padding-right: var(--b-space);
  padding-top: var(--b-space-s);
  text-align: center;
}
.registry-progress {
  background-color: color-mix(in srgb-linear, var(--green), white 50%);
  min-height: var(--b-space-s);
  position: relative;
  &::after {
    background-color: var(--black);
    border-radius: 4px;
    bottom: 100%;
    color: white;
    content: attr(data-percent);
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 0.375em 0.75em;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity 250ms, visibility 0ms 250ms, transform 0ms 250ms;
    visibility: hidden;
  }
  &:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: opacity 250ms, transform 250ms;
    visibility: visible;
  }
}
.registry-progress-bar {
  background-color: var(--green);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: width 250ms cubic-bezier(0.6, 0, 0.4, 1) 1s;
  z-index: var(--z-index-overlay);
}
.registry-progress-funded {
  background-color: var(--black);
  color: white;
  padding-bottom: var(--b-space-s);
  padding-top: var(--b-space-s);
  text-align: center;
}
.registry-thanks {
  max-height: 0;
  overflow: hidden;
  padding-left: var(--b-space-l);
  padding-right: var(--b-space-l);
  transition: max-height 400ms;
  &.is-showing {
    max-height: 30em;
  }
}

/* States */
.is-completed {
  position: relative;
  &::after {
    box-shadow: 4px 4px 0 0 var(--green);
    content: "";
    height: var(--b-space-l);
    left: 50%;
    margin-top: 20.125%;
    position: absolute;
    top: 0;
    transform: rotate(45deg);
    width: var(--b-space);
  }
  img {
    filter: saturate(25%);
  }
  img,
  h2,
  p {
    opacity: 0.5;
  }
  .registry-cta {
    box-shadow: none;
    color: var(--black);
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
  }
}

/* ----- RSVP ----- */
.rsvp-form {
  h1 {
    margin-bottom: 0;
    margin-top: var(--b-space-l);
  }
  h4 {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.25em;
    margin-bottom: var(--b-space-l);
    text-align: center;
    text-transform: uppercase;
    br {
      display: none;
      @media (width >= 480px) {
        display: block;
      }
    }
  }
  ol {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5 * var(--b-space-l);
    max-width: 30em;
    width: 100%;
    @media (width >= 480px) {
      padding-left: 0;
    }
  }

  li {
    font-weight: 700;
    margin-bottom: var(--b-space);
    margin-top: var(--b-space);
    &::after {
      clear: both;
      content: "";
      display: table;
    }
  }

  [type="radio"] {
    position: absolute;
    left: -200%;
    + label {
      border: 1px solid var(--black);
      cursor: pointer;
      display: block;
      float: left;
      font-size: 12px;
      letter-spacing: 0.125em;
      margin-top: var(--b-space-xs);
      opacity: 0.5;
      padding: 4px 6px;
      @media (width >= 480px) {
        display: inline-block;
      }
      + * + label {
        @media (width >= 480px) {
          border-left-width: 0px;
        }
      }
      &:hover {
        border-color: var(--green);
        color: var(--green);
      }
    }
    &:checked + label {
      background: var(--green);
      border-color: var(--green);
      box-shadow: none;
      color: white;
      opacity: 1;
    }
    &:disabled + label {
      opacity: 0.25;
      cursor: default;
    }
    &:disabled:hover + label {
      color: var(--black);
      border-color: var(--black);
    }
    &:disabled:checked + label {
      background: var(--black);
      border-color: var(--black);
      color: white;
      opacity: 1;
    }
  }
  [type="submit"] {
    margin-top: var(--b-space-l);
    &.is-sending {
      opacity: 0.5;
    }
    &.is-updated {
      box-shadow: inset 0 0 0 3px var(--green);
      background: white;
      color: var(--green);
    }
  }
  .status {
    color: var(--green);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-top: var(--b-space-s);
    opacity: 0;
    text-transform: uppercase;
    transition: opacity 250ms linear, visibility 0ms linear 250ms;
    visibility: hidden;
    @media (width >= 480px) {
      margin-left: var(--b-space-s);
      margin-top: 0;
    }
    &.is-updated {
      opacity: 1;
      transition: opacity 250ms linear;
      visibility: visible;
    }
  }
  .btn {
    margin-top: var(--b-space-l);
  }
  fieldset {
    border: none;
    margin-bottom: 1.25 * var(--b-space-xl);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    width: 100%;
    @media (width >= 480px) {
      width: 30em;
    }
    input {
      display: block;
      margin: 0;
      width: 100%;
    }
  }
  .is-erroneous {
    color: var(--error);
    position: static;
    label {
      background: transparent;
      color: var(--black);
    }
    &::after {
      box-shadow: none;
      position: static;
    }
  }
}

/* ----- Story ----- */
.story {
  display: flex;
  font-size: 14px;
  letter-spacing: 0;
  margin-top: calc(2 * var(--b-space-xl));
  margin-bottom: calc(2 * var(--b-space-xl));
  transform: translateZ(0);

  @media (width >= 480px) {
    font-size: 16px;
    letter-spacing: 0.125em;
  }

  h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
  }
}

.story-left {
  flex: 1;

  p {
    line-height: 1.375;
    padding-right: var(--b-space-s);
    text-align: justify;

    @media (width >= 480px) {
      line-height: 2;
      padding-right: var(--b-space);
      text-align: right;
    }

    @media (width >= 960px) {
      padding-left: var(--b-space-l);
      padding-right: var(--b-space-l);
    }
  }
}

.story-right {
  flex: 1;

  p {
    line-height: 1.375;
    text-align: justify;
    padding-left: var(--b-space-s);

    @media (width >= 480px) {
      line-height: 2;
      padding-left: var(--b-space);
      text-align: left;
    }

    @media (width >= 960px) {
      padding-left: var(--b-space-l);
      padding-right: var(--b-space-l);
    }
  }
}

/* ----- Video ----- */
.video {
  box-shadow: 0 0 0 var(--b-space-s) var(--blush);
  height: 0;
  left: 50%;
  padding-top: 50%;
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0.1px);
  width: 75%;

  @media (width >= 480px) {
    box-shadow: 0 0 0 var(--b-space-l) var(--blush);
    padding-top: 28.125%;
    width: 50%;
  }

  iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 5;
  }
}

.video-play {
  background: white;
  color: var(--blush);
  cursor: pointer;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  transition: opacity 250ms linear;
  width: 100%;
  z-index: 10;
  img {
    cursor: pointer;
    height: 100%;
    left: 50%;
    opacity: 0.6;
    position: absolute;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 300ms linear, filter 300ms linear;
    width: autou;
    z-index: 15;
    @media (width >= 480px) {
      height: auto;
      width: 102%;
    }
  }
  &.is-hidden {
    opacity: 0;
    visibility: hidden;
  }
  &:hover img {
    opacity: 0.75;
  }
}

.video-icn {
  cursor: pointer;
  height: var(--b-space-xl);
  left: 50%;
  opacity: 1;
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: var(--b-space-xl);
  z-index: 20;
  svg {
    fill: none;
    stroke-linejoin: round;
    stroke-width: 12;
    stroke: var(--blush);
  }
}

.has-video {
  height: 100vh;
  min-height: 20 * var(--b-space);
  position: relative;
  transform: translateZ(0);
  z-index: 20;

  @media (width >= 480px) {
    margin-bottom: calc(2 * var(--b-space-xl));
    margin-top: calc(2 * var(--b-space-xl));
  }
}

/* -------------------------------------
/*   Tools
/* -------------------------------------*/

.bleed {
  height: 100vh;
  position: relative;
  overflow: hidden;
  width: 100%;

  img {
    display: block;
    height: 100%;
    left: 50%;
    max-width: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    @media (width >= 480px) {
      height: auto;
      width: 100%;
    }
  }
}
.db {
  display: block;
}
.ld15 {
  line-height: 1.5;
}
.mtl {
  margin-top: var(--b-space-l);
}
.mtxl {
  margin-top: var(--b-space-xl);
}
.tac {
  text-align: center;
}
.tar {
  text-align: right;
}
.tcg {
  color: var(--green);
}
.ttu {
  text-transform: uppercase;
}
.tr2 {
  letter-spacing: 0.25em;
}
