/*
  Bill Dugan personal site
  Designed from the supplied reference image.
  No framework or external dependencies.

  Font note:
  The site uses a condensed system-font stack so it works immediately
  without a CDN. If you later add IBM Plex Sans Condensed .woff2 files,
  add an @font-face rule above the body rule and make it the first family.
*/

:root {
  --green: rgb(128, 204, 176);
  --blue: rgb(145, 204, 208);
  --text: rgb(153, 153, 153);
  --white: #fff;
  --content-max: 780px;
  --accordion-max: 1000px;
  --intro-side: clamp(28px, 13.9vw, 150px);
  --body-font: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue Condensed", "Roboto Condensed", "Liberation Sans Narrow", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body-font);
  font-stretch: condensed;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.top-bar {
  height: 20px;
  background: var(--green);
}

.intro {
  background: var(--white);
}

.intro-inner {
  width: min(calc(100% - 2 * var(--intro-side)), var(--content-max));
  margin: 0 auto;
  padding: 84px 0 92px;
}

.monogram {
  display: block;
  width: 112px;
  height: 124px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 83px;
}

.intro-copy {
  margin: 0;
  font-size: clamp(24px, 2.23vw, 30px);
  line-height: 1.27;
  letter-spacing: 0.0092340em;
  color: var(--text);
}

.panel {
  background: var(--blue);
  min-height: 590px;
  padding: 63px 24px 54px;
  display: flex;
  flex-direction: column;
}

.accordion-wrap {
  width: min(100%, var(--accordion-max));
  margin: 0 auto;
}

.accordion-item {
  margin: 0;
}

.accordion-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: clamp(31px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  width: 100%;
  padding: 8px 0;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

.accordion-trigger:hover,
.accordion-trigger:focus-visible {
  opacity: .78;
}

.accordion-trigger:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 5px;
}

.triangle {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--white);
  flex: 0 0 auto;
  transition: transform .2s ease;
}

.accordion-trigger[aria-expanded="true"] .triangle {
  transform: rotate(90deg);
}

.accordion-panel {
  overflow: hidden;
  color: var(--white);
}

.accordion-panel[hidden] {
  display: none;
}

.panel-content {
  width: 90%;
  max-width: 900px;
  margin: 4px auto 22px;
  padding: 4px 12px 10px 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: .01em;
}

.panel-content h2,
.panel-content h3 {
  font-weight: 400;
  margin: 0 0 4px;
  line-height: 1.15;
}

.panel-content h2 { font-size: 26px; }
.panel-content h3 { font-size: 19px; margin-top: 25px; }
.panel-content p { margin: 0 0 14px; }
.panel-content ul { margin: 0 0 18px; padding-left: 20px; }
.panel-content li { margin: 0 0 8px; }

.meta {
  opacity: .85;
  margin-bottom: 15px !important;
}

.small-note {
  font-size: 17px;
  opacity: .9;
}

.panel-content a,
.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.75);
}

.panel-content a:hover,
.footer a:hover { opacity: .72; }

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-list a {
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,.5);
}

.contact-content p:first-child {
  font-size: 26px;
}

.footer {
  width: min(100%, 816px);
  margin: auto auto 0;
  padding-top: 190px;
  text-align: center;
  color: var(--white);
}

.footer-rule {
  height: 1px;
  background: rgba(255,255,255,.9);
  margin-bottom: 20px;
}

.footer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .015em;
}

.footer a { border-bottom: 0; }

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

@media (max-width: 1199px) {
  :root { --intro-side: 11vw; }
  .intro-inner { padding-top: 70px; padding-bottom: 78px; }
  .monogram { margin-bottom: 70px; }
  .footer { padding-top: 150px; }
}

@media (max-width: 767px) {
  :root { --intro-side: 28px; }
  .top-bar { height: 12px; }
  .intro-inner {
    padding: 50px 0 56px;
  }
  .monogram {
    width: 78px;
    height: 88px;
    margin-bottom: 48px;
  }
  .intro-copy {
    font-size: 23px;
    line-height: 1.26;
    letter-spacing: .0095em;
  }
  .panel {
    min-height: 560px;
    padding: 42px 24px 34px;
  }
  .accordion-wrap { width: 100%; }
  .accordion-trigger {
    font-size: 32px;
    gap: 14px;
  }
  .triangle {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 15px;
  }
  .panel-content {
    width: 92%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
  }
  .footer {
    padding-top: 110px;
  }
  .footer p {
    font-size: 14px;
  }
}

@media (max-width: 479px) {
  :root { --intro-side: 23px; }
  .intro-inner { padding-top: 42px; }
  .monogram { margin-bottom: 42px; }
  .intro-copy { font-size: 18px; }
  .panel { padding-left: 20px; padding-right: 20px; }
  .accordion-trigger { font-size: 30px; }
  .panel-content {
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
  }
  .footer p { font-size: 13px; }
}

/* v9: accordion labels sized to match the main intro */
.accordion-trigger {
  font-size: 30px !important;
}

@media (max-width: 1199px) {
  .accordion-trigger { font-size: 27px !important; }
}

@media (max-width: 767px) {
  .accordion-trigger { font-size: 23px !important; }
}

@media (max-width: 479px) {
  .accordion-trigger { font-size: 20px !important; }
}

/* v9: adding for the video elements */
.video-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* v9: visible medium emphasis for the name */
.intro strong {
  font-weight: 600;
}

/* v9: copyright belongs below the footer rule */
.footer .copyright {
  display: inline;
  margin-right: 0.2em;
}


/* Internal portfolio / video page */
.video-grid {
  width: min(calc(100% - 2 * var(--intro-side)), var(--content-max));
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px 0 110px;
}

.video-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 110px;
}

.video-item--reverse {
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr);
}

.video-item--reverse .video-media {
  grid-column: 2;
  grid-row: 1;
}

.video-item--reverse .video-copy {
  grid-column: 1;
  grid-row: 1;
}

.video-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.08));
}

.play-button {
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 25px solid #fff;
  position: relative;
  z-index: 1;
  margin-left: 5px;
}

.video-placeholder-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  z-index: 1;
  opacity: .9;
}

.video-copy {
  color: var(--text);
  padding-top: 0;
}

.video-copy h2 {
  margin: -4px 0 2px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 600;
  color: var(--text);
}

.video-date {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.2;
}

.video-copy p:not(.video-date) {
  margin: 0;
  font-size: 19px;
  line-height: 1.28;
}

.internal-footer-panel {
  min-height: 260px;
  padding-top: 40px;
}

.internal-footer-panel .footer {
  padding-top: 0;
  width: min(100%, 816px);
}

@media (max-width: 1199px) {
  .video-grid {
    width: calc(100% - 2 * var(--intro-side));
    max-width: none;
    padding-bottom: 80px;
  }

  .video-item {
    gap: 26px;
    margin-bottom: 85px;
  }

  .video-copy h2 { font-size: 27px; }
  .video-copy p:not(.video-date) { font-size: 18px; }

  .internal-footer-panel {
    min-height: 230px;
  }
}

@media (max-width: 767px) {
  .video-grid {
    width: calc(100% - 2 * var(--intro-side));
    padding-top: 0;
    padding-bottom: 55px;
  }

  .video-item,
  .video-item--reverse {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 62px;
  }

  .video-item--reverse .video-media,
  .video-item--reverse .video-copy {
    order: initial;
  }

  .video-copy h2 { font-size: 23px; }
  .video-date { font-size: 14px; margin-bottom: 10px; }
  .video-copy p:not(.video-date) {
    font-size: 18px;
    line-height: 1.3;
  }

  .internal-footer-panel {
    min-height: 180px;
    padding: 30px 24px 34px;
  }
}

@media (max-width: 479px) {
  .video-grid {
    width: calc(100% - 2 * var(--intro-side));
  }

  .video-item,
  .video-item--reverse {
    margin-bottom: 48px;
  }

  .video-copy h2 { font-size: 20px; }
  .video-copy p:not(.video-date) { font-size: 17px; }

  .internal-footer-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
}
