/* Timeless Piercing & Jewelers: a clean copy of the Square Online look. Light grey ground, warm dark text,
   Fraunces Light headings, Poppins text, Yeseva One for navigation and buttons, pale blue primary buttons. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Yeseva One";
  src: url("../fonts/yesevaone-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ground: #ebedef;
  --panel: #f6f7f8;
  --ink: #463939;
  --black: #000000;
  --muted: #6a5d5d;
  --line: #cfd3d7;
  --blue: #99bde9;
  --blue-dark: #7fa8de;
  --head: "Fraunces", Georgia, serif;
  --body: "Poppins", system-ui, sans-serif;
  --label: "Yeseva One", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--black);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Header: centred logo over a centred menu, as on the current site. */

.site-header {
  padding: 28px 16px 8px;
  text-align: center;
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  width: 150px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
  margin-top: 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--label);
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Type */

.display {
  margin: 0 0 24px;
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}

.display-sm {
  font-size: clamp(30px, 4vw, 44px);
  text-align: left;
}

.studios .display-sm {
  text-align: center;
}

.h3-title {
  margin: 0 0 14px;
  font-family: var(--head);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
}

.prose {
  max-width: 46em;
}

.prose.center {
  text-align: center;
}

.prose h2 {
  margin: 1.6em 0 0.5em;
  font-family: var(--head);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
}

.prose h3 {
  margin: 1.4em 0 0.4em;
  font-family: var(--head);
  font-weight: 500;
  font-size: 22px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 600;
}

.prose details {
  margin: 0 0 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.prose summary {
  min-height: 52px;
  padding: 14px 18px;
  font-family: var(--label);
  font-size: 17px;
  cursor: pointer;
}

.prose details > :not(summary) {
  margin-left: 18px;
  margin-right: 18px;
}

.prose details[open] {
  padding-bottom: 8px;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.actions.center,
.hero .actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--label);
  font-size: 15px;
  color: var(--black);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--black);
}

.btn-outline {
  border: 1px solid var(--black);
}

.btn-outline:hover {
  background: #ffffff;
}

/* Home */

.hero {
  padding-top: 48px;
  padding-bottom: 56px;
  text-align: center;
}

.hero-text {
  max-width: 44em;
  margin: 0 auto;
  font-size: 19px;
}

.hero-text p {
  margin: 0 0 14px;
}

.studios {
  padding-bottom: 72px;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.studio {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}

.studio img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

.studio-name {
  font-family: var(--head);
  font-size: 24px;
}

.studio-address {
  font-size: 15px;
  color: var(--muted);
}

a.studio:hover .studio-name {
  text-decoration: underline;
}

.studio-book .btn {
  margin-top: 10px;
  align-self: flex-start;
}

/* Inner pages */

.page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.notice {
  margin: 0 auto 28px;
  max-width: 46em;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin: 32px 0;
}

.loc-photo {
  width: 100%;
  display: block;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.loc-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.loc-card p {
  margin: 0 0 8px;
}

.loc-name {
  margin: 0 0 10px;
  font-family: var(--head);
  font-weight: 400;
  font-size: 24px;
}

.hours {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 15px;
}

.hours th,
.hours td {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
}

.hours .is-closed td {
  color: var(--muted);
}

.mini-staff {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mini-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 180px;
}

.mini-person img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
}

.person-name {
  font-family: var(--head);
  font-size: 22px;
}

.policies {
  margin-top: 56px;
}

.person {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.person:first-of-type {
  border-top: 0;
}

.person-photo {
  width: 100%;
  display: block;
}

.person-role {
  margin: 0 0 4px;
  font-family: var(--label);
  font-size: 15px;
}

.facts {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}

.facts-inline {
  margin: -12px 0 14px;
  color: var(--muted);
}

.certs,
.portfolio {
  margin-top: 40px;
}

.certs ul {
  margin: 0 0 18px;
  padding-left: 22px;
  font-size: 15px;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pf-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 36px;
  font-size: 15px;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--label);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

/* Phones */

@media (max-width: 760px) {
  .studio-grid,
  .loc-grid,
  .split,
  .person,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-photo {
    max-width: 320px;
  }

  .nav a {
    padding: 0 8px;
    font-size: 14px;
  }

  .wrap {
    padding: 0 16px;
  }
}
