@font-face {
  font-family: "Tema Philosopher";
  src: url("../fonts/philosopher-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tema Philosopher";
  src: url("../fonts/philosopher-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tema Petit Formal Script";
  src: url("../fonts/petit-formal-script.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tema Alex Brush";
  src: url("../fonts/alex-brush.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.tema-experience {
  --tema-ink: #171717;
  --tema-muted: #5f665f;
  --tema-line: rgba(25, 25, 25, 0.12);
  --tema-surface: #ffffff;
  --tema-soft: #f4f6f2;
  --tema-accent: #a87231;
  --tema-steel: #d8d2c8;
  color: var(--tema-ink);
  margin-inline: auto;
  max-width: 1240px;
  padding: clamp(48px, 7vw, 104px) clamp(16px, 4vw, 40px);
}

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

.tema-experience__intro {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 56px);
  max-width: 760px;
}

.tema-experience__intro--compact {
  margin-bottom: 20px;
}

.tema-experience__intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.tema-experience__lookup-cta {
  align-items: center;
  border-bottom: 1px solid rgba(168, 114, 49, 0.42);
  color: var(--tema-ink);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 32px;
  text-decoration: none;
  transition: border-color 360ms cubic-bezier(0.32, 0.72, 0, 1), color 360ms cubic-bezier(0.32, 0.72, 0, 1), transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
}

.tema-experience__lookup-cta:hover,
.tema-experience__lookup-cta:focus-visible {
  border-color: var(--tema-ink);
  color: var(--tema-accent);
  outline: none;
  transform: translateY(-1px);
}

.tema-experience__eyebrow {
  color: var(--tema-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.tema-experience h1,
.tema-experience h2 {
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.tema-experience h1 {
  font-size: clamp(2.4rem, 6vw, 5.7rem);
}

.tema-experience h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.tema-experience p {
  color: var(--tema-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  margin: 0;
}

.tema-panel {
  background: var(--tema-surface);
  border: 1px solid var(--tema-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 18, 15, 0.08);
  padding: clamp(20px, 3vw, 34px);
}

.tema-engraving__grid,
.tema-warranty__grid {
  align-items: start;
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.24fr);
}

.tema-warranty {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.tema-lookup {
  padding-top: 24px;
  scroll-margin-top: calc(var(--tema-fixed-base-offset, 0px) + var(--tema-fixed-header-height, 0px) + var(--tema-fixed-subheader-height, 0px) + 24px);
}

.tema-lookup:focus {
  outline: none;
}

.tema-field,
.tema-choice-group,
.tema-warranty__form {
  display: grid;
  gap: 10px;
}

.tema-engraving__controls {
  display: grid;
  gap: 20px;
}

.tema-experience label,
.tema-choice-group legend {
  color: var(--tema-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.tema-experience input[type="text"],
.tema-experience select {
  appearance: none;
  background: #f9faf7;
  border: 1px solid var(--tema-line);
  border-radius: 8px;
  color: var(--tema-ink);
  font: inherit;
  min-height: 54px;
  padding: 0 16px;
  transition: border-color 420ms cubic-bezier(0.32, 0.72, 0, 1), background-color 420ms cubic-bezier(0.32, 0.72, 0, 1), transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
}

.tema-experience input[type="text"]:focus,
.tema-experience select:focus {
  background: #ffffff;
  border-color: rgba(168, 114, 49, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.tema-field__hint {
  color: var(--tema-muted);
  font-size: 0.84rem;
}

.tema-choice-grid {
  display: grid;
  gap: 10px;
}

.tema-choice,
.tema-segmented label {
  cursor: pointer;
  display: block;
  margin: 0;
}

.tema-choice input,
.tema-segmented input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.tema-choice span,
.tema-segmented span,
.tema-sample-serials button,
.tema-demo-serials button {
  align-items: center;
  background: #f9faf7;
  border: 1px solid var(--tema-line);
  border-radius: 8px;
  color: var(--tema-ink);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  transition: background-color 420ms cubic-bezier(0.32, 0.72, 0, 1), border-color 420ms cubic-bezier(0.32, 0.72, 0, 1), transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
}

.tema-choice input[name="font_key"] + span {
  text-transform: none;
}

.tema-choice input:checked + span,
.tema-segmented input:checked + span {
  background: #191817;
  border-color: #191817;
  color: #ffffff;
  transform: translateY(-1px);
}

.tema-segmented {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.is-font-philosopher {
  font-family: "Tema Philosopher", Georgia, serif;
}

.is-font-petit-formal {
  font-family: "Tema Petit Formal Script", cursive;
  font-size: 1.15em;
}

.is-font-alex-brush {
  font-family: "Tema Alex Brush", cursive;
  font-size: 1.28em;
}

.tema-engraving__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tema-engraving__meta span,
.tema-result-kicker {
  background: #f1eee9;
  border-radius: 999px;
  color: #65461f;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.tema-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  justify-content: center;
  min-height: 52px;
  padding: 0 10px 0 20px;
  text-decoration: none;
  transition: transform 520ms cubic-bezier(0.32, 0.72, 0, 1), background-color 520ms cubic-bezier(0.32, 0.72, 0, 1);
}

.tema-button span:last-child {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: transform 520ms cubic-bezier(0.32, 0.72, 0, 1);
  width: 34px;
}

.tema-button:hover {
  transform: translateY(-2px);
}

.tema-button:hover span:last-child {
  transform: translateX(2px);
}

.tema-button--primary {
  background: var(--tema-accent);
  color: #ffffff;
}

.tema-button--dark {
  background: var(--tema-ink);
  color: #ffffff;
}

.tema-form-feedback {
  color: var(--tema-muted);
  font-size: 0.92rem;
  min-height: 24px;
}

.tema-form-feedback.is-success {
  color: #246b43;
}

.tema-form-feedback.is-error {
  color: #a22c29;
}

.is-loading {
  opacity: 0.68;
  pointer-events: none;
}

.tema-engraving__preview-panel {
  background: linear-gradient(135deg, #ffffff, #f5f7f4);
}

.tema-engraving__preview-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tema-engraving__preview-head > span {
  background: #191817;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  padding: 8px 12px;
}

.tema-engraving__preview-shell {
  background: #eee8de;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.tema-engraving-preview {
  display: block;
  height: auto;
  width: 100%;
}

.tema-engraving-preview text {
  fill: #201d18;
  paint-order: stroke;
  stroke: rgba(246, 240, 231, 0.52);
  stroke-width: 0.9;
}

.tema-engraving__result--preview {
  background: #ffffff;
  border: 1px solid var(--tema-line);
  margin-top: 16px;
  padding: clamp(18px, 2.2vw, 26px);
}

.tema-engraving__result--preview[hidden] {
  display: none;
}

.tema-engraving__result--preview .tema-result-helper {
  max-width: none;
}

.tema-result-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 0;
}

.tema-result-list div {
  border-top: 1px solid var(--tema-line);
  padding-top: 12px;
}

.tema-result-list dt {
  color: var(--tema-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tema-result-list dd {
  color: var(--tema-ink);
  font-weight: 800;
  margin: 3px 0 0;
}

.tema-inline-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tema-lookup__form {
  display: grid;
  gap: 14px;
}

.tema-lookup__result {
  margin-top: 20px;
}

.tema-result-reference {
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0;
  margin-top: 10px;
  word-break: break-word;
}

.tema-result-helper {
  color: var(--tema-muted);
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 58ch;
}

.tema-engraving-preview [data-preview-product-image] {
  opacity: 0.95;
}

.tema-engraving-preview [data-preview-blade],
.tema-engraving-preview [data-preview-handle],
.tema-engraving-preview [data-preview-finger] {
  opacity: 0;
}

.tema-engraving-preview [data-preview-axis] {
  stroke: #111111;
  stroke-width: 1;
  opacity: 0.28;
}

.tema-engraving-preview [data-preview-tip],
.tema-engraving-preview [data-preview-screw] {
  fill: #171717;
  stroke: #ffffff;
  stroke-width: 4px;
}

.tema-engraving-preview [data-preview-screw-inner] {
  fill: #ffffff;
}

.tema-engraving-preview [data-preview-zone] {
  stroke: #9b7a42;
  stroke-width: 2px;
  opacity: 0.9;
}

.tema-sample-serials,
.tema-demo-serials {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.tema-sample-serials button,
.tema-demo-serials button {
  border: 1px solid var(--tema-line);
  color: var(--tema-ink);
  font: inherit;
  text-align: left;
}

.tema-sample-serials button span,
.tema-demo-serials button span {
  color: var(--tema-muted);
  font-size: 0.82rem;
  margin-left: 12px;
}

.tema-warranty-card {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.tema-warranty-card__media {
  align-items: center;
  aspect-ratio: 1;
  background: #f1eee7;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}

.tema-warranty-card__media img {
  height: 100%;
  object-fit: contain;
  padding: clamp(18px, 3vw, 34px);
  width: 100%;
}

.tema-warranty-card__media span {
  color: var(--tema-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tema-warranty-card__body {
  align-content: center;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  padding-top: clamp(20px, 3vw, 30px);
}

.tema-warranty-card__topline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tema-warranty-status,
.tema-warranty-serial {
  align-items: center;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  min-height: 34px;
  padding: 0 12px;
  text-transform: uppercase;
}

.tema-warranty-serial {
  background: #f3f1eb;
  color: var(--tema-muted);
}

.tema-warranty-card h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.9;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.tema-warranty-card__body > p {
  color: var(--tema-muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.55;
  margin: 0;
  max-width: 58ch;
}

.tema-warranty-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.tema-warranty-facts div {
  border-top: 1px solid var(--tema-line);
  padding: 16px 0 0;
}

.tema-warranty-facts div + div {
  border-left: 1px solid var(--tema-line);
  padding-left: clamp(18px, 3vw, 32px);
}

.tema-warranty-facts dt {
  color: var(--tema-muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tema-warranty-facts dd {
  color: var(--tema-ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 850;
  line-height: 1.05;
  margin: 8px 0 0;
}

.tema-warranty-card__cta {
  align-items: center;
  background: var(--tema-ink);
  color: #fff;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 850;
  gap: 16px;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 8px 0 20px;
  text-decoration: none;
  width: fit-content;
}

.tema-warranty-card__cta span[aria-hidden="true"] {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.tema-warranty-card.is-active .tema-warranty-status {
  background: #e7f5ec;
  color: #1f6d42;
}

.tema-warranty-card.is-expired .tema-warranty-status {
  background: #f8e8df;
  color: #9a3b1f;
}

.tema-warranty-card.is-unknown .tema-warranty-status {
  background: #edf0f4;
  color: #59616c;
}

.tema-warranty-card--unknown {
  display: block;
  justify-self: stretch;
  width: 100%;
}

.tema-warranty-card--unknown .tema-warranty-card__body {
  max-width: 720px;
}

.tema-warranty-card--unknown h2 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 0.98;
}

.tema-warranty-unknown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tema-warranty-unknown-actions button,
.tema-warranty-unknown-actions a {
  align-items: center;
  border: 1px solid var(--tema-line);
  color: var(--tema-ink);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.tema-warranty-unknown-actions a {
  background: var(--tema-ink);
  border-color: var(--tema-ink);
  color: #fff;
}

@media (max-width: 860px) {
  .tema-engraving__grid,
  .tema-warranty__grid,
  .tema-warranty-card {
    grid-template-columns: 1fr;
  }

  .tema-warranty-facts {
    grid-template-columns: 1fr;
  }

  .tema-warranty-facts div + div {
    border-left: 0;
    padding-left: 0;
  }

  .tema-inline-form {
    grid-template-columns: 1fr;
  }

  .tema-button {
    width: 100%;
  }

  .tema-result-list {
    grid-template-columns: 1fr;
  }
}
