@font-face {
    font-family: 'FivoSansModern-Regular';
    src: url('/FivoSansModern-Regular.otf');
    font-display: swap;
}

:root {
    --brand-orange: #ff8c0d;
    --brand-purple: #464d77;
    --brand-green: #36827f;
    --brand-blue: #00a0e9;
    --white: #fff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --gray-950: #1a1e23;
    --gray-1000: #0a0c0e;

    --colour-danger: red;
    --font-family-mono: monospace;
    --font-family-title: 'FivoSansModern-Regular', sans-serif;
    --font-family-sans:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-family-serif: Georgia, Cambria, 'Times New Roman', Times, serif;

    --line-height: 120%;
    --line-height-sm: 120%;
    --line-height-md: 140%;
    --line-height-lg: 145%;

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --spacing-base: 1rem;
    --spacing-sm: 4px;
    --spacing-md: 8px;
    --spacing-lg: 12px;
    --spacing-xl: 16px;
    --navbar-height: 75px;

    --font-size-sm: 0.875rem;
    --font-size: 1.12rem;
    --font-size-md: 1.25rem;
    --font-size-lg: 1.5rem;

    --btn-border: 0;
    --btn-padding: var(--spacing-sm);
    --btn-border-radius: 0.25rem;
    --btn-font-size: 1.08rem;
    --btn-text-decoration: none;
}

html {
    font-size: 16px;
    font-family: var(--font-family-sans);
    line-height: var(--line-height-md);
    color: var(--colour-scheme-text);
    background-color: var(--colour-scheme-background, black);
    transition: 0.3s ease;
    transition-property: background-color, color;
}

body {
    font-family: var(--font-family-sans);
    line-height: var(--line-height-md);
    min-height: 100vh;
    background-color: var(--colour-scheme-background, black);
    color: var(--colour-scheme-text);
    transition: 0.3s ease;
    transition-property: background-color, color;
}

.thomaswilson-container {
    --container-padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height) - calc(2 * var(--container-padding)));
    padding: var(--container-padding);
}

.thomaswilson-container .section {
    padding: 24px;
    width: 100%;
    max-width: 750px;
    font-size: 1.19rem;
    line-height: var(--line-height-md);
    padding-bottom: var(--spacing-base);
    padding-bottom: 2rem;
}

.thomaswilson-strapline .title {
    font-family: var(--font-family-title);
    font-size: var(--font-size-base);
    font-weight: 700;
    margin: 0;
}

.thomaswilson-strapline p {
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    letter-spacing: -0.25px;
    font-weight: 200;
}

@container (width < 500px) {
    .thomaswilson-strapline p {
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-title);
    font-weight: 600;
    margin: 0;
    color: var(--colour-scheme-text);
    padding-top: 12px;
    padding-bottom: 8px;
    line-height: var(--line-height);
    letter-spacing: 1.5px;
}

h2 {
    font-size: 2.25rem;
    padding-top: 0.7rem;
    padding-bottom: 0.5rem;
}

p,
li,
a,
blockquote {
    font-size: var(--font-size);
    line-height: var(--line-height-lg);
    font-family: var(--font-family-mono);
    margin: 0;
    color: var(--colour-scheme-text);
    padding: 4px 0;
    letter-spacing: 0px;
}

blockquote {
    border-style: solid;
    padding: 0.25rem 0 0.5rem 1rem;
    border-width: 0px;
    border-left: 4px solid var(--brand-orange);
    opacity: 0.85;
    max-width: 60ch;
}

ul,
ol {
    padding-left: var(--spacing-base);
}

.thomaswilson-button {
    border: var(--btn-border);
    padding: var(--btn-padding);
    border-radius: var(--btn-border-radius);
    font-size: var(--btn-font-size);
    text-decoration: var(--btn-text-decoration);
}

.thomaswilson-button.danger {
  color: var(--colour-danger);
  border: 1px solid var(--colour-danger);
}

.thomaswilson-button:hover {
    text-decoration: none;
    cursor: pointer;
}

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

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

a::after {
    content: url('/assets/icons/link.svg');
    margin-left: 3px;
}

sup a::after {
    content: none;
    margin-left: 1px;
}

a.no-icon::after {
    content: '';
    display: none;
}

a.breadcrumb {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

a.breadcrumb::after {
    content: '';
    display: none;
}

/* An Alert-like component*/
.alert {
    --colour-scheme-border: var(--gray-800);
    --font-size: var(--font-size-base);
    --colour-scheme-text: var(--gray-800);
    --colour-scheme-bg: var(--gray-100);
    padding: 8px;
    border: 1px solid var(--colour-scheme-border);
    border-radius: 4px;
    font-size: var(--font-size);
    letter-spacing: 0px;
    color: var(--colour-scheme-text);
    background-color: var(--colour-scheme-bg);
}

.alert.error {
    --colour-scheme-border: var(--red-800);
    --colour-scheme-text: var(--red-800);
    --colour-scheme-bg: var(--red-100);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-form .field label {
    font-size: var(--font-size);
    letter-spacing: 0px;
    color: var(--colour-scheme-text);
}
.admin-form .field input {
    padding: 8px;
    border: 1px solid var(--colour-scheme-border);
    border-radius: 4px;
    font-size: var(--font-size);
    letter-spacing: 0px;
    color: var(--colour-scheme-text);
    background-color: var(--colour-scheme-bg);
}

dialog.confirm-dialog {
    border: 1px solid var(--colour-scheme-border);
    border-radius: 4px;
    padding: 16px;
    background-color: var(--colour-scheme-background);
    background-color: var(--colour-scheme-background);
    color: var(--colour-scheme-text);
}

.confirm-dialog .delete-button {
  border: 1px solid var(--colour-danger);
  background-color: var(--colour-scheme-background);
  color: var(--colour-danger);
}

.delete-button:hover {
  background-color: #ffe3e3;
}

.delete-dialog::backdrop {
  background: rgb(0 0 0 / 0.3);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/** 
 * SECTION: CMS 
 */

.cms-form {
  --form-max-width: 760px;
  --form-border: var(--colour-scheme-border, var(--gray-300));
  --button-bg: var(--gray-900);
  --button-text: var(--white);

  width: min(100%, var(--form-max-width));
  padding: var(--spacing-base);
  border: 1px solid var(--form-border);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}>

.cms-form .field {
  gap: 0.4rem;
}

.cms-form :is(input[type="text"], textarea, input[type="file"]) {
  width: 100%;
  box-sizing: border-box;
  padding: var(--spacing-md) var(--spacing-base);
  border: 1px solid var(--form-border);
  border-radius: var(--border-radius-sm);
  background: var(--colour-scheme-bg);
  color: var(--colour-scheme-text);
}

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

.actions {
  display: flex;
  justify-content: flex-end;
}

.submit-button:hover {
  opacity: 0.92;
}

@media (max-width: 640px) {
  .cms-form {
    padding: 0.85rem;
    border-radius: 8px;
  }

  .actions {
    justify-content: stretch;
  }

  .submit-button {
    width: 100%;
  }
}

