:root {
  color: #12343b;
  background: #f4f8f7;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  background: #12343b;
  border: 1px solid #12343b;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  min-height: 50px;
  padding: 0 20px;
}

button:hover:not(:disabled) {
  background: #ed725f;
  border-color: #ed725f;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

input {
  background: #ffffff;
  border: 1px solid #b7cbca;
  color: #12343b;
  min-height: 50px;
  padding: 0 15px;
  width: 100%;
}

input:focus {
  border-color: #12343b;
  outline: 3px solid #bfe7ee;
  outline-offset: 1px;
}

main {
  margin: 0 auto;
  max-width: 920px;
  padding: 32px 20px 64px;
}

.page-header {
  background: #12343b;
  color: #ffffff;
  padding: 32px;
}

.brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  gap: 9px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: 24px;
  width: 24px;
}

.eyebrow {
  color: #416269;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

.page-header .eyebrow {
  color: #bfe7ee;
  margin-top: 54px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
  max-width: 560px;
}

h2 {
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: 0;
}

.intro {
  color: #d8e4e0;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 570px;
}

.connection-panel {
  background: #ffffff;
  border-top: 5px solid #ed725f;
  margin: -12px 20px 0;
  padding: 24px;
  position: relative;
}

.section-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.status {
  background: #f2cf63;
  color: #12343b;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 9px;
  white-space: nowrap;
}

.status-connected {
  background: #bfe7ee;
}

.status-error {
  background: #f9d5ce;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 28px 0 8px;
  text-transform: uppercase;
}

.join-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

#room-code {
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.detail,
.byte-count {
  color: #416269;
  line-height: 1.5;
}

.detail {
  margin: 16px 0 0;
}

.byte-count {
  font-size: 13px;
  margin-bottom: 0;
  text-align: right;
}

.photo-section {
  margin-top: 42px;
}

.empty-photo {
  align-items: center;
  background: #f7f0d9;
  border: 1px solid #e3d7aa;
  display: flex;
  justify-content: center;
  margin-top: 16px;
  min-height: 360px;
  padding: 28px;
  text-align: center;
}

.empty-photo p {
  color: #416269;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 340px;
}

#received-photo {
  background: #dce9e6;
  display: block;
  margin-top: 16px;
  max-height: 680px;
  object-fit: contain;
  width: 100%;
}

@media (max-width: 620px) {
  main {
    padding: 0 0 40px;
  }

  .page-header {
    padding: 26px 20px 38px;
  }

  .page-header .eyebrow {
    margin-top: 42px;
  }

  h1 {
    font-size: 40px;
  }

  .connection-panel,
  .photo-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .connection-panel {
    padding: 20px;
  }

  .join-row {
    grid-template-columns: 1fr;
  }

  .byte-count {
    display: none;
  }

  .empty-photo {
    min-height: 270px;
  }
}
