/* Your Oyster: vintage printed-directory look */

:root {
  --paper: #F1E9D6;
  --paper-light: #F8F2E3;
  --paper-dark: #D9CDB0;
  --ink: #1E1A14;
  --ink-soft: #2E2820;
  --muted: #5A5040;
  --rule: #7A6F58;
  --red: #A32A1F;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at top, #F7F0DF, var(--paper) 55%, #E8DEC4);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 24px;
  padding: 16px 0 24px;
  border-top: 4px double var(--ink);
  border-bottom: 1px solid var(--ink);
}

.logo { display: block; flex: none; }

.masthead-text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  text-align: center;
}

.masthead h1 {
  margin: 0;
  font-family: 'Old Standard TT', Georgia, serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0;
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}

.masthead-spacer { flex: 0 0 96px; }

/* Country picker */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.picker label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.picker select {
  min-height: 44px;
  min-width: 260px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
}

.count {
  margin: 0;
  font-style: italic;
  color: var(--muted);
}

/* Listing */

.listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px dotted var(--rule);
}

.photo-frame {
  flex: 0 0 360px;
  max-width: 100%;
  padding: 8px;
  background: var(--paper-light);
  border: 1px solid var(--ink);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
  filter: sepia(0.15);
}

.photo-placeholder {
  height: 450px;
  background-color: var(--paper-dark);
  background-image: radial-gradient(#8A7F68 1px, transparent 1.3px);
  background-size: 5px 5px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.photo-placeholder span {
  padding: 0 8px;
  background: var(--paper-light);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.listing-body {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-country {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.listing-title {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}

.listing-title h2 {
  margin: 0;
  font-family: 'Old Standard TT', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
}

.stamp {
  display: inline-block;
  padding: 1px 8px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.bio {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 12px;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 var(--paper-dark);
}

.label.dashed {
  border: 1px dashed var(--rule);
  box-shadow: none;
}

.label-key {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-value {
  font-style: italic;
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
}

.button:hover { background: var(--paper-light); }

.button.primary {
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.button.primary:hover { background: #3A3328; }

.button:focus-visible,
.picker select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.empty {
  margin: 0;
  padding: 32px 0;
  text-align: center;
  font-style: italic;
  border-top: 1px dotted var(--rule);
  border-bottom: 1px dotted var(--rule);
}

.footer {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  text-align: center;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Phones */

@media (max-width: 700px) {
  .page { padding: 28px 16px 48px; gap: 28px; }
  .masthead { justify-content: center; }
  .masthead-spacer { display: none; }
  .masthead h1 { font-size: 42px; }
  .tagline { font-size: 18px; }
  .picker, .picker select { width: 100%; min-width: 0; }
  .photo-frame { flex-basis: 100%; }
  .photo-frame img, .photo-placeholder { height: 380px; }
  .listing-title h2 { font-size: 28px; }
}
