/* Oghma - socle : éléments HTML nus (remplace Pico CSS). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--oghma-ink);
  background: var(--oghma-bg);
  font-family: var(--oghma-font);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--oghma-ink);
  font-family: var(--oghma-font-display);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--oghma-steel);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--oghma-navy);
}

hr {
  border: 0;
  border-top: 1px solid var(--oghma-line);
  margin: 1.5rem 0;
}

small {
  font-size: 0.8125rem;
}

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

code,
kbd,
pre {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.875em;
}

code {
  padding: 0.125em 0.4em;
  border-radius: 6px;
  color: var(--oghma-navy);
  background: rgba(var(--oghma-steel-rgb), 0.1);
}

pre {
  margin: 0 0 1em;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(var(--oghma-steel-rgb), 0.08);
}

pre code {
  padding: 0;
  background: none;
}

dl {
  margin: 0 0 1em;
}

dt {
  color: var(--oghma-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

dd {
  margin: 0 0 0.75em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

label {
  display: block;
  font-weight: 600;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(var(--oghma-navy-rgb), 0.16);
  border-radius: 12px;
  color: var(--oghma-ink);
  background: #ffffff;
  font: inherit;
  letter-spacing: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--oghma-gold);
  box-shadow: 0 0 0 3px rgba(var(--oghma-gold-rgb), 0.3);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--oghma-gold-deep);
}

button {
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--oghma-gold-deep);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}
