@font-face {
  font-family: 'PolymathDisp';
  src: url('fonts/Polymath/PolymathDisp-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PolymathText';
  src: url('fonts/Polymath/PolymathText-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PolymathText';
  src: url('fonts/Polymath/PolymathText-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PolymathText', serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.logo-link {
  display: flex;
}

.logo {
  height: 2.2rem;
  width: auto;
}

.tab-buttons {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.tab {
  padding: 0.5rem 1.5rem;
  border: none;
  background: transparent;
  font-family: 'PolymathText', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  z-index: 0;
  transition: color 0.2s;
}

.tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 4px;
  z-index: -1;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}

.tab:hover {
  color: #333;
}

.tab:hover::before {
  background: #f0f0f0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.tab.active {
  color: #fff;
}

.tab.active::before {
  background: #333;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

main {
  padding: 2rem;
  flex: 1;
}

/* Shop grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 100%;
}

.shop-card {
  text-align: left;
}

.shop-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f0f0ee, #e4e4e2);
  margin-bottom: 1rem;
}

.shop-card h3 {
  font-family: 'PolymathText', serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #333;
}

.shop-card p {
  font-size: 0.9rem;
  color: #777;
}

.studio-content {
}

.studio-content h1 {
  margin-bottom: 3rem;
}

.studio-content p {
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.tab-content {
  display: none;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: left;
}

.tab-content.active {
  display: block;
}

.tab-content[data-tab="home"] {
  text-align: center;
  max-width: 100%;
  display: none;
}

.tab-content[data-tab="home"].active {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 8rem);
}

.home-logo {
  width: 650px;
  max-width: 100%;
  height: auto;
}

h1 {
  font-family: 'PolymathDisp', serif;
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

p {
  color: #777;
}
